Linux 101 : RAID devices - mdadm, RAID-1 -
For our example, we will use two disk partitions for our "/dev/md0" RAID device, "/dev/sdb1" and "/dev/sdb2", as we can see below:
To persist through a reboot, we would need to add an entry for our RAID device in the "/etc/fstab" file as below:
After we are done, we could unmount our device, stop it and remove it from the system, using the below commands:
We create our RAID-1 device "md0" using the below command:
To persist through a reboot, we would need to add an entry for our RAID device in the "/etc/fstab" file as below:
We can also add the details of our RAID device to the "/etc/mdadm.conf" file, to ensure its correct reconstruction after a reboot:
Comments