Very simple guide to Linux software RAID

To create a new RAID 1 array with 2 partitions, use the following command:

mdadm --create --level=1 --raid-devices=2 /dev/md0 /dev/hda1 /dev/hdc1

To reassemble the same array, use the following command:

mdadm --assemble /dev/md0 /dev/hda1 /dev/hdc1

To create a new RAID 1 array with 2 partitions, but having only 1 available use the following command:

mdadm --create /dev/md0 --level=1 --raid-devices=2 missing /dev/hda1

Last updated: 24/08/2008