Where ARRAY is the ID of the array like /dev/md2 and DEVICE is a partition of that array like sdc2 or sdd2.Ĭhange the size of the RAID1 to two disks: mdadm -grow ARRAY -n 2Ĭhange the type of array from RAID1 to RAID5: mdadm -grow ARRAY -l 5 To do so, repeatedly execute: mdadm ARRAY -fail DEVICE Upgrading an N-disk RAID1 to an N-disk RAID5 is possible, though a bit tedious: You can, from a rescue system, overwrite the RAID superblock and use the -assume-clean option to avoid a rebuild, but you need to use the same superblock version as before (use mdadm -examine … on one of the component devices to find out). ¹ That is tricky, because there is no good way to reduce the number of disks. Set the new number of disks ( -grow … -n4).Add the extra disks to the RAID-5 as spares ( -grow … -add …).Convert the array you want to switch to RAID-5 ( -grow … -l5). Run a consistency check on all devices ( /usr/share/mdadm/checkarray …).There is no migration path from RAID-1 to RAID-5, except for the special case with two disks, where RAID-1 conveniently is the same as RAID-4 and RAID-5 (because the parity of a single bit is the bit itself), so the migration code just changes the RAID level without touching the data.Īfter converting to RAID-5, you can add more disks to the array - this migration path exists.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |