Changes

Talk:Software RAID on Linux

1,212 bytes added, 05:23, 19 February 2017
/* Set up RAID 1 with fdisk - 2/18/2017 */
The following lines were added (+) and removed (-):
== Set up RAID 1 with fdisk - 2/18/2017 ==Each drive is the same size.  Each drive needs to have identical partitions created.  Using fdisk create a small partition of less than 1GB and use the remaining space for the second partition.  Due this for each drive.  The starting block will likely be at 2048, which is fine.  Ensure that you use the same starting block and ending block on both.  When specifying the ending block in fdisk new partition creation, you can specify the starting block as 2048 and then for the ending block specify a size in megabytes.  Use the format beginning with the + sign.  For 840MB enter "+840" when it asks for the ending block.If you have 2 drives, /dev/sda and /dev/sdb fdisk /dev/sdaCreate Partitions with fdisk* d - delete any existing partitions* n - create a new partition fdisk /dev/sdbCreate Partitions with fdisk* d - delete any existing partitions* n - create a new partitionOnce again using fdisk go back into each drive and change the "type" of the partitions to Now use fdisk to convert partitions to a type needed for building the RAID array fdisk /dev/sda* t - change the partition type to "fd".  You can get a list of available types
Bureaucrat, administrator
16,192
edits