Changes

From Amahi Wiki
Jump to: navigation, search
1,203 bytes added ,  02:40, 31 January 2011
no edit summary
That is it! Enjoy your new large storage array!
 
 
= How to Add New Drives to An Existing Raid5 =
 
As i had to find out adding a drive to a Raid5 is easy.
 
Adding the drive to the Raid
*<blockquote>mdadm --add /dev/md# /dev/sd# (# is the number of the drive you adding)
 
Growing The Raid
*<blockquote>mdadm --grow --raid-devices=# /dev/md$ (# is the total number of the drives in the array and $ is the raid array )
 
Now we let the Raid array rebuild and we can watch it reshape by Typing
*<blockquote>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.
 
*<blockquote>nano /etc/mdadm.conf
 
Here we change the number of total drives you have in your array
It should look similar to this
 
Mdadm.conf written out by anaconda
MAILADDR root
ARRAY /dev/md0 level=raid5 num-devices=10 UUID=4cc02637:e3832bed:bfe78010:bc810f
(where num-devices= needs to be changed to the actual number of drives you have in the array)
 
Save and close nano
 
Reboot the machine after reshape has finished and you made the changes to make sure the machine boots correctly
21

edits