foreverbion.blogg.se

Linux softraid setup which drives are mirrors
Linux softraid setup which drives are mirrors










linux softraid setup which drives are mirrors

You'll need to shrink whatever the partition contains as well.

linux softraid setup which drives are mirrors

  • If the block device is a disk containing partitions, shrink the partition that comes last (this may not be the partition with the highest number).
  • You must ensure that the last 128kB from the block device are unused, to make room for the superblock. (In some setups, you may have enough space to put the superblock at the beginning, but that's more complicated and risk-prone so I go into that.) There are several metadata formats, you must use one that puts the metadata at the end of the disk. The RAID volume will initially be in a degraded state with all but one components missing.įirst, you need to shrink the volume a bit, to make room for mdraid metadata (the superblock).

    #LINUX SOFTRAID SETUP WHICH DRIVES ARE MIRRORS SOFTWARE#

    Objective: make that block device a component of an mdraid (Linux software RAID) RAID-1 (mirroring) volume. a partition containing an LVM physical volume.

    linux softraid setup which drives are mirrors

    a disk containing one or more partitions.Boot from a liveCD/liveUSB such as Parted or SystemRescueCD.Īssumption: you have a block device that contains something Linux recognizes, for example: It's possible in some cases but requires extra care. I highly recommend not doing any of the manipulations on a live system. You need to be a bit careful, but this is not dangerous¹ if you are very careful not to mistype anything and it doesn't leave any gotchas in the setup.












    Linux softraid setup which drives are mirrors