[GRLUG] RAID recovery

L. V. Lammert lvl at omnitec.net
Thu Mar 6 09:49:47 EST 2014


Greg,

> Do this first to see the status of /dev/md0 (and any other md raid
> devices):
>
>         cat /proc/mdstat
>
Of course, ..

> First make sure the drives are indeed failed and removed from the array:
>
>         mdadm --manage /dev/md0 --fail /dev/sdb2
>         mdadm --manage /dev/md0 --remove /dev/sdb2
>         mdadm --manage /dev/md0 --fail /dev/sdd2
>         mdadm --manage /dev/md0 --remove /dev/sdd2
>
> You have to re-add the drives back into the array, first.
>
>         mdadm --manage /dev/md0 --add /dev/sdb2
>         mdadm --manage /dev/md0 --add /dev/sdd2
>
> Then you can "watch cat /proc/mdstat" until things finish.
>
Bingo - that's the part that is buried in the HowTos I have seen, ..
thanks for confirming!

	Lee


More information about the grlug mailing list