This process takes a long time, and it varies based on the size and type of array you created. In your case, that means making sure the two drives are in sync. When an array is first created, it automatically will begin initializing (also known as rebuilding). # mdadm -C /dev/md0 -l1 -n2 /dev/sda1 /dev/sdb1 Use the following command to create the /dev/md0 array from /dev/sda1 and /dev/sdb1: #Linux softraid setup which drives are mirrors software#The md stands for multiple disks, and /dev/mdX is the standard naming convention for software RAID devices. Now, you can use your newly created partitions (/dev/sda1 and /dev/sdb1) to create a RAID 1 array called /dev/md0. Use sfdisk to copy the partition table from /dev/sda to /dev/sdb, then verify that the partition tables are identical: This is especially true if you are creating an array using more than two disks. You could create the partition manually using fdisk, but it's easier to copy it using sfdisk. Now, you need to create an identical partition on /dev/sdb. If you are just testing RAID, you can create a smaller partition, so the creation process does not take as long: Use fdisk to create one partition on /dev/sda, and set its type to “Linux RAID autodetect”. Here, you are going to create a RAID 1 array using two additional disks, /dev/sda and /dev/sdb.īefore you can create your first RAID array, you need to partition your disks. Many people like to add a couple drives to their computer for extra file storage, and mirroring (RAID 1) is an excellent way to protect that data.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |