Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

How can I save data off a crashed RAID 1?


  • Please log in to reply
10 replies to this topic

#1 Ravenbar

Ravenbar

  • Members
  • 125 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:NY
  • Local time:11:51 PM

Posted 06 December 2016 - 09:39 PM

I set up a software raid consisting of (2) 320Gb drives, with monthly backups to a third disk..

 

Night before last I heard a ticking coming from the computer and sure enough I'd lost one of the disks. From my understanding the last disk should have kept on running alone. However, the entire raid seems to have vanished.

 

It's at the end of the monthly cycle so a months worth of data is missing. Probably going to set up a weekly or even daily backup when I get this straightened out.

 

I found a place that said to remount the remaining disk using the following command

sudo mdadm --create /dev/md1 -l 1 -n 2 /dev/sde missing

However wheni I attempt it, I get a

mdadm: cannot open /dev/sde: Device or resource busy

response. If I attempt to unmount SDE, I'm told it isn't mounted.


Edited by Ravenbar, 06 December 2016 - 09:41 PM.

Desktops: "John2" Custom, Gigabyte F2A88Xm-D3H, AMD 6A-5400K Trinity 3.6Ghz Dual-Core APU, 16Gb DDR3  HyperX Fury 1866Mhz RAM, 120Gb Crucial Force LS SSD OS) Linux Mint 17.3, 320Gb Raid1 array consisting of (1) Seagate ST320LT020-9YG14 & (1) Fujitsu MZH2320B

Francisco: HP pavilion p7-1080t upgraded with 16Gb ram. Windows 7. Used only for Gaming

Server.GaltsGulch: HP Elite 8300 Small Form Factor, i7-3770, 16Gb ram, Kingston SSDNow 120Gb SSD, 3Tb storage HDD, Fedora Linux/Avahi, Headless

 


BC AdBot (Login to Remove)

 


#2 Ravenbar

Ravenbar
  • Topic Starter

  • Members
  • 125 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:NY
  • Local time:11:51 PM

Posted 06 December 2016 - 09:44 PM

If I go into Disks and attempt to mount the array there I get and error of:

Error starting RAID array: Command-line `mdadm --assemble  --scan --uuid "d9f08904:461b7701:9c695cbb:b685b4a8"' exited with non-zero exit status 2:  (udisks-error-quark, 0)

Desktops: "John2" Custom, Gigabyte F2A88Xm-D3H, AMD 6A-5400K Trinity 3.6Ghz Dual-Core APU, 16Gb DDR3  HyperX Fury 1866Mhz RAM, 120Gb Crucial Force LS SSD OS) Linux Mint 17.3, 320Gb Raid1 array consisting of (1) Seagate ST320LT020-9YG14 & (1) Fujitsu MZH2320B

Francisco: HP pavilion p7-1080t upgraded with 16Gb ram. Windows 7. Used only for Gaming

Server.GaltsGulch: HP Elite 8300 Small Form Factor, i7-3770, 16Gb ram, Kingston SSDNow 120Gb SSD, 3Tb storage HDD, Fedora Linux/Avahi, Headless

 


#3 technonymous

technonymous

  • Members
  • 2,516 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:08:51 PM

Posted 06 December 2016 - 11:50 PM

You might have your command (dev/sde) wrong if all you have is 2 disks. Typically your drives will be something like sda1 + sdb1 = md0 & sda2 + sdb2 = md1.

 

Try following steps below to identify the bad drive IE: cat /proc/mdstat

 

https://www.howtoforge.com/replacing_hard_disks_in_a_raid1_array



#4 Ravenbar

Ravenbar
  • Topic Starter

  • Members
  • 125 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:NY
  • Local time:11:51 PM

Posted 07 December 2016 - 07:26 PM

You might have your command (dev/sde) wrong if all you have is 2 disks. Typically your drives will be something like sda1 + sdb1 = md0 & sda2 + sdb2 = md1.

 

Try following steps below to identify the bad drive IE: cat /proc/mdstat

 

https://www.howtoforge.com/replacing_hard_disks_in_a_raid1_array

The article seems oriented towards replacing the failed drive. I'm simply trying to mount the remaining drive to recover the data.


Desktops: "John2" Custom, Gigabyte F2A88Xm-D3H, AMD 6A-5400K Trinity 3.6Ghz Dual-Core APU, 16Gb DDR3  HyperX Fury 1866Mhz RAM, 120Gb Crucial Force LS SSD OS) Linux Mint 17.3, 320Gb Raid1 array consisting of (1) Seagate ST320LT020-9YG14 & (1) Fujitsu MZH2320B

Francisco: HP pavilion p7-1080t upgraded with 16Gb ram. Windows 7. Used only for Gaming

Server.GaltsGulch: HP Elite 8300 Small Form Factor, i7-3770, 16Gb ram, Kingston SSDNow 120Gb SSD, 3Tb storage HDD, Fedora Linux/Avahi, Headless

 


#5 technonymous

technonymous

  • Members
  • 2,516 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:08:51 PM

Posted 08 December 2016 - 04:59 AM

Need a software to read it. Like UFS reader.



#6 Ravenbar

Ravenbar
  • Topic Starter

  • Members
  • 125 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:NY
  • Local time:11:51 PM

Posted 10 December 2016 - 10:20 AM

Came to realization yesterday. I really only need to recover one file off the disk. A *.xhb(Homebank) file going back over a year.

 

I've got Foremest running the command:

sudo foremeost -i /dev/sde -T *.xhb -o /dev/sda1/saved

That should search /dev/sde for all *.xhb files and dump them into the saved directory on /dev/sda1


Desktops: "John2" Custom, Gigabyte F2A88Xm-D3H, AMD 6A-5400K Trinity 3.6Ghz Dual-Core APU, 16Gb DDR3  HyperX Fury 1866Mhz RAM, 120Gb Crucial Force LS SSD OS) Linux Mint 17.3, 320Gb Raid1 array consisting of (1) Seagate ST320LT020-9YG14 & (1) Fujitsu MZH2320B

Francisco: HP pavilion p7-1080t upgraded with 16Gb ram. Windows 7. Used only for Gaming

Server.GaltsGulch: HP Elite 8300 Small Form Factor, i7-3770, 16Gb ram, Kingston SSDNow 120Gb SSD, 3Tb storage HDD, Fedora Linux/Avahi, Headless

 


#7 Ravenbar

Ravenbar
  • Topic Starter

  • Members
  • 125 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:NY
  • Local time:11:51 PM

Posted 10 December 2016 - 11:42 AM

That's wierd. Copying off af a 320Gb drive onto a mostly empty 1Tb drive, I get a

fn=/dev/sda1_Sat_Dec_10_10_04_13_2016/zip/392205327.zip bytes=27160576
foremost: Error writing file

foremost: audit.txt: No space left on device


Desktops: "John2" Custom, Gigabyte F2A88Xm-D3H, AMD 6A-5400K Trinity 3.6Ghz Dual-Core APU, 16Gb DDR3  HyperX Fury 1866Mhz RAM, 120Gb Crucial Force LS SSD OS) Linux Mint 17.3, 320Gb Raid1 array consisting of (1) Seagate ST320LT020-9YG14 & (1) Fujitsu MZH2320B

Francisco: HP pavilion p7-1080t upgraded with 16Gb ram. Windows 7. Used only for Gaming

Server.GaltsGulch: HP Elite 8300 Small Form Factor, i7-3770, 16Gb ram, Kingston SSDNow 120Gb SSD, 3Tb storage HDD, Fedora Linux/Avahi, Headless

 


#8 Ravenbar

Ravenbar
  • Topic Starter

  • Members
  • 125 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:NY
  • Local time:11:51 PM

Posted 10 December 2016 - 11:47 AM

Trying it again using the dame command except substituting the /media/ link to the output drive rather than the /dev/.


Desktops: "John2" Custom, Gigabyte F2A88Xm-D3H, AMD 6A-5400K Trinity 3.6Ghz Dual-Core APU, 16Gb DDR3  HyperX Fury 1866Mhz RAM, 120Gb Crucial Force LS SSD OS) Linux Mint 17.3, 320Gb Raid1 array consisting of (1) Seagate ST320LT020-9YG14 & (1) Fujitsu MZH2320B

Francisco: HP pavilion p7-1080t upgraded with 16Gb ram. Windows 7. Used only for Gaming

Server.GaltsGulch: HP Elite 8300 Small Form Factor, i7-3770, 16Gb ram, Kingston SSDNow 120Gb SSD, 3Tb storage HDD, Fedora Linux/Avahi, Headless

 


#9 Ravenbar

Ravenbar
  • Topic Starter

  • Members
  • 125 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:NY
  • Local time:11:51 PM

Posted 10 December 2016 - 03:49 PM

That plan recovered some data but not the file I wanted.

 

I've fiddled around with testdisk and managed to somehow get Dolphin to show the drive. However It won't mount it, giving the error:

An error occurred while accessing 'Home', the system responded: The requested operation has failed: Error mounting /dev/sde1 at /media/ravenbar/Raid Disk 1: Command-line `mount -t "ext2" -o "uhelper=udisks2,nodev,nosuid" "/dev/sde1" "/media/ravenbar/Raid Disk 1"' exited with non-zero exit status 32: mount: wrong fs type, bad option, bad superblock on /dev/sde1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so 

result of running dmesg | tail:

  642.497688] EXT4-fs (sde1): mounting ext2 file system using the ext4 subsystem
[  642.502276] EXT4-fs (sde1): ext4_check_descriptors: Block bitmap for group 1 not in group (block 0)!
[  642.502280] EXT4-fs (sde1): group descriptors corrupted!


Edited by Ravenbar, 10 December 2016 - 03:51 PM.

Desktops: "John2" Custom, Gigabyte F2A88Xm-D3H, AMD 6A-5400K Trinity 3.6Ghz Dual-Core APU, 16Gb DDR3  HyperX Fury 1866Mhz RAM, 120Gb Crucial Force LS SSD OS) Linux Mint 17.3, 320Gb Raid1 array consisting of (1) Seagate ST320LT020-9YG14 & (1) Fujitsu MZH2320B

Francisco: HP pavilion p7-1080t upgraded with 16Gb ram. Windows 7. Used only for Gaming

Server.GaltsGulch: HP Elite 8300 Small Form Factor, i7-3770, 16Gb ram, Kingston SSDNow 120Gb SSD, 3Tb storage HDD, Fedora Linux/Avahi, Headless

 


#10 Ravenbar

Ravenbar
  • Topic Starter

  • Members
  • 125 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:NY
  • Local time:11:51 PM

Posted 10 December 2016 - 08:47 PM

I've given up on recovering the data. I spent the last couple hours(less than I expected) recreating the data in the only file I really needed.


Desktops: "John2" Custom, Gigabyte F2A88Xm-D3H, AMD 6A-5400K Trinity 3.6Ghz Dual-Core APU, 16Gb DDR3  HyperX Fury 1866Mhz RAM, 120Gb Crucial Force LS SSD OS) Linux Mint 17.3, 320Gb Raid1 array consisting of (1) Seagate ST320LT020-9YG14 & (1) Fujitsu MZH2320B

Francisco: HP pavilion p7-1080t upgraded with 16Gb ram. Windows 7. Used only for Gaming

Server.GaltsGulch: HP Elite 8300 Small Form Factor, i7-3770, 16Gb ram, Kingston SSDNow 120Gb SSD, 3Tb storage HDD, Fedora Linux/Avahi, Headless

 


#11 technonymous

technonymous

  • Members
  • 2,516 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:08:51 PM

Posted 11 December 2016 - 09:36 AM

try these commands in shell

 

 

mdadm --assemble --scan


or,

mdadm --assemble --scan --run

check if md0 or md1 active..

 

 

cat /proc/mdstat

 

 

mount it

 

 

mount /dev/md0 /mnt/md0_recovery


Edited by technonymous, 11 December 2016 - 09:37 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users