[CentOS] Software Raid Recovery
Tim Verhoeven
tim.verhoeven.be at gmail.com
Fri Feb 20 14:40:02 UTC 2009
On Fri, Feb 20, 2009 at 3:15 PM, Stephen Leonard Character
<Stephen.Character at 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
--
Tim Verhoeven - tim.verhoeven.be at gmail.com - 0479 / 88 11 83
Hoping the problem magically goes away by ignoring it is the
"microsoft approach to programming" and should never be allowed.
(Linus Torvalds)
More information about the CentOS
mailing list