[SATLUG] 1st Q? - RAID5 quit working - Attempting recovery #1

David Labens adlabens at swbell.net
Thu Aug 20 18:32:43 CDT 2009


Ok, I've tried to mark the /dev/sdc1 as failed:

root at RCH-SERVER:/# mdadm --fail /dev/md0 /dev/sdc1
mdadm: cannot get array info for /dev/md0

root at RCH-SERVER:/# mdadm --fail /dev/md/0 /dev/sdc1
mdadm: cannot get array info for /dev/md/0


& I've tried to remove it:

root at RCH-SERVER:/# mdadm --remove /dev/md0 /dev/sdc1
mdadm: cannot get array info for /dev/md0

root at RCH-SERVER:/# mdadm --remove /dev/md/0 /dev/sdc1
mdadm: cannot get array info for /dev/md/0



So, I'm unable to mark the /dev/sdc1 (or /dev/sdc) as failed or removed.


And, I ran:

root at RCH-SERVER:/# cat /proc/mdstat

Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : inactive sde1[0](S) sdc1[4](S) sdb1[2](S) sda1[1](S)
      976783360 blocks super 1.0

unused devices: <none>

And ...

root at RCH-SERVER:/# mdadm --assemble --scan

mdadm: /dev/md/0 assembled from 2 drives - not enough to start the array.


Can I just remove /dev/sdc and replace it with the new drive, then run:
sfdisk -d /dev/sdb | sfdisk --force /dev/sdc (to copy the partition layout), 

and then run:
mdadm --manage /dev/md0 --add /dev/sdc1 (& not touch the system until it's finished)



????? - Or is there something else that I'm missing?

THANKS!!!
David Labens

San Antonio, TX


More information about the SATLUG mailing list