Sunday 23 December 2012

mdadm RAID creation

Here comes the fun part!! Let's create the RAID...

A good read on partition alignment.

chunk size = stripe size = minimum size that can be written to the disk

I wil use parted for the for the partitioning and alignment. Do the following for each drive.



And here we go:


The RAID array starts in degraded mode with a spare drive. The spare drive is added to the array at the end and the array can then perform at full speed



and then we create the new partition on the newly created device

'stride' is the amount of data written to each disk and 'stripe width' is the stride length * number of active drives. 4 in my case as the fifth drive is a parity drive. There are many calculators available, just google for on.


Remember to add the new device in fstab if you would like it to be mounted automatically.



add this line to /etc/fstab in my case:

No comments:

Post a Comment