Recovering from a failed hard drive running Software Raid 1 - Mirror HowTo
John H. Bennett III bennett at thebennetthome.com
Problem: One of your disks in
your raid 1 array has failed and you need to replace it and re-set up
Solution: Follow this HowTo
|Replace your failed hard dive with one
that is of equal or greater size. Partition this drive exactly like
the active one.
See add extra hard disk howto located at http://www.contribs.org/contribs/mblotwijk/HowToGuides/AddExtraHardDisk.htm
For a raid
device you will also need to change your partition type to FD - Linux
raid auto, for all partitions that were created.
Command (m for help): t
Also make your first partition bootable
Command (m for help): a
Don't forget to write the changes to the disk.
From the fdisk menu:
Command (m for help): w
Or try the following method below:
|Add your raid devices back to your system
according to the settings in /etc/raidtab
raidhotadd /dev/md0 /dev/sdb1
Here is a sample /etc/raidtab file:
It should tell you that the /dev/md0, /dev/md1, and /dev/md2 devices haves been started, that the mirror is being reconstructed, and an ETA of the completion of the reconstruction.
Notes: You can also run these commands to get a status of your raid devices:
mdadm --detail /dev/mdx
lsraid -a /dev/mdx
x = drive number