![]() ![]() -n 2  - the total number of drives, which can be classified as spare, active, or missing a ‘missing’ drive requires the additional option -f to work.Mdadm -create /dev/md0 -n 2 -level=1 /dev/sda1 /dev/sdb1 What you need to do is create a partition in the drives (using fdisk or Parted) with partition type set to ‘ fd,’ the Linux Software RAID auto-detect.Īfter creating a partition in each relevant drive (sda1, sdb1), you can now create the array: You can use full drives as parts of a RAID array but this should be avoided if you want to make the drives bootable. Also, if a device needs to be removed from the array, remember to mark it first as ‘faulty’ before you remove it. The RAID layer just avoids reading/writing them. Note that faulty disks still appear and behave as members of the array. ![]() If no spare disk is available, then the array runs in 'degraded' mode. Your system can now run for some time even with a faulty disk as the spare takes its place. ![]() Once a device failure is detected, that device is marked as ‘faulty’ and the set starts reconstruction immediately on the first hot spare available. In a RAID implementation, there are spare disks or hot spares that do not take part in the RAID set until one of the active disks fail. They can be "built" from a number of other block devices. Software RAID devices should be seen as ordinary disks or disk partitions. You can place a file system on a RAID device, just like on any other block device. Note that the RAID layer does not touch the file system layer at all. Linux Software RAID is a block device that can work on most other devices—SATA, USB, IDE, SCSI, or a combination of these. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |