Redhat 9.0 Rebuild raid 5 array

Mark Farmer farmerma at cromwell.co.uk
Mon Oct 11 12:27:04 UTC 2004


Brian McGrew wrote:
> I've got the following:
> 
> Personalities : [raid1] [raid5] 
> read_ahead 1024 sectors
> md2 : active raid5 hde1[0] hdf1[1] hdg1[2](F) hdh1[3]
>       468864768 blocks level 5, 64k chunk, algorithm 0 [4/3] [UU_U]
>       
> md1 : active raid1 hda3[0] hdb3[1](F)
>       34901120 blocks [2/1] [U_]
>       
> md0 : active raid1 hda1[0] hdb1[1]
>       1052160 blocks [2/2] [UU]
>       
> unused devices: <none>
> 
> I know that one of the drives in md2 is failing.  Once I replace it, how to I rebuild the array?
> 
> -brian

raidhotremove will allow you to remove the failed disk
raidhotadd will put the new disk into the array.

If I remember correctly, the array will rebuild itself once the new disk is added.

man -k raid will give you some man pages to read for more info.

Usefull tip: watch cat /proc/mdstat will allow you to monitor it's progress with 2 second 
updates ;-)

-- 
Mark Farmer
Linux System Administrator




More information about the redhat-list mailing list