I tried that, in that I installed the operating system on the first hard drive in your system. Now we add two more virtual storage of 10 GB size (sdb and sdc) that each contain a partition. When you create new partitions, they should be applied on top of a Linux RAID devices (0xFD in cfdisk or fdisk). This step makes the administrator's life easier. The two new partitions are to be combined into a RAID 1 array. In this example, you call the following command as a user with root privileges:
mdadm - create / dev/md0 - level = 1 - raid-devices = 2 / dev/sdb1 / dev/sdc1
This now creates the RAID array md0 as RAID level 1 with the two partitions / dev/sdb1 and / dev/sdc1. If everything goes well, with your command cat / the proc / mdstat to verify. With watch cat / proc / mdstat command, the system every two seconds from the RAID and you can even monitor visually. Now, although the mirror is produced but not yet formatted. You can device / dev/md0 just treat this, if it were a physical storage device. In our example, we can format the RAID 1 array as a filesystem ext4: mkfs.ext4 / dev/md0. Do you want to RAID array automatically on system start, you must customize the file mdadm.conf which our case in the / etc / is on. Call the command: mdadm - examine - scan on and enter the result in the configuration file. You can also do this with the same command can be done, but it should then check: mdadm - examine - scan>> / etc / mdadm.conf.
Bookmarks