Changes

From Amahi Wiki
Jump to: navigation, search
6 bytes removed ,  06:11, 12 May 2013
m
= How to Add New Drives to An Existing Raid5 =
As i I had to find out, adding a drive to a Raid5 RAID 5 is easy.
Adding the drive to the RaidRAID
mdadm --add /dev/md# /dev/sd# (# is the number of the drive you adding)
Growing The RaidRAID
mdadm --grow --raid-devices=# /dev/md$
(# is the total number of the drives in the array and $ is the raid array RAID)
Now we let the Raid array RAID rebuild and we can watch it reshape by Typingtyping:
watch cat /proc/mdstat
It will take a couple hours for the drive to reshape (PLEASE do not reboot the machine during the reshaping process)
After the reshape finished successfully , we need to make sure that the mdadm.conf has the correct drive number in it.
nano /etc/mdadm.conf
Mdadm.conf written out by anaconda
MAILADDR root
ARRAY /dev/md0 level=raid5 num-devices=10 XX UUID=4cc02637:e3832bed:bfe78010:bc810f(where num-devices= XX needs to be changed to the actual number of drives you have in the array)
Save and close nano: [ctrl+x]
Reboot the machine after the reshape has finished and you made the changes to make sure the machine boots correctly