On Fri, Feb 20, 2009 at 3:15 PM, Stephen Leonard Character Stephen.Character@alorica.net wrote:
I have a server set up with 4hdd using software raid. I have /boot on a raid1 on md0 , / on raid5 on md1, and swap on raid0 on md2. If one of my drives die, how to I recover?
First, put the swap also on RAID1, you don't want part of your memory to become unavailable is a drive dies. Using RAID has no use then.
If a drive dies nothing will happen, your system will continue to keep running (if you put your swap on raid1 that is). But make sure you configure mdadm to send you a mail when that happens, so you know a drive is gone.
For recovery, just replace the disk, repartition it and re-add the partitions to the raid arrays and your are done. The disks will resync and then everything is back to how it was.
Regards, Tim