188.8.131.52. Changing Mirrored Volume Configuration
You can convert a logical volume from a mirrored volume to a linear volume or from a linear volume to a mirrored volume with the
lvconvert command. You can also use this command to reconfigure other mirror parameters of an existing logical volume, such as
When you convert a logical volume to a mirrored volume, you are basically creating mirror legs for an existing volume. This means that your volume group must contain the devices and space for the mirror legs and for the mirror log.
If you lose a leg of a mirror, LVM converts the volume to a linear volume so that you still have access to the volume, without the mirror redundancy. After you replace the leg, you can use the
command to restore the mirror. This procedure is provided in Section 6.3, “Recovering from LVM Mirror Failure”