PDA

View Full Version : Linux Software RAID?



kevin11951
February 23rd, 2009, 01:09 AM
If i am running a RAID 5 setup with three 250GB discs, and one dies while the server is running, and i take out the drive and replace it, again while the server is on, will it start to copy the files back and go on with its life like nothing happened? just trying to understand how software raid works.

Biochem
February 23rd, 2009, 03:11 AM
I never had to do it yet (crossing fingers and toes).

But, I think you have to mark the new drive as a spare. Then it will automatically be pickup and used to fix the array.

kevin11951
February 23rd, 2009, 04:02 AM
I never had to do it yet (crossing fingers and toes).

But, I think you have to mark the new drive as a spare. Then it will automatically be pickup and used to fix the array.

how do you mark the drive as a "spare"?

Biochem
March 2nd, 2009, 03:52 PM
I usually use evms in ncurse of gui mode for that kind of things.
But be careful there is a bug in evms that prevent booting in some configuration. I always remove it after use

ssam
March 2nd, 2009, 04:45 PM
http://linux-raid.osdl.org/index.php/Reconstruction

you need to tell mdadm that the new disk is the replacement. also you may need to shutdown (unless you have hot swappable hardware).

there are some people who think raid 5 is a bad thing, as it can't recover from 2 failed drives. as you put more drives in a raid5 array you raise the risk of having multiple failures at once. also as disks get bigger the rebuild time gets longer, and the window for a second failure gets bigger.
http://www.baarf.com/
http://blogs.zdnet.com/storage/?p=162