5.4.16.3. Converting an LVM RAID1 Logical Volume to an LVM Linear Logical Volume
You can convert an existing RAID1 LVM logical volume to an LVM linear logical volume with the
lvconvert command by specifying the -m0 argument. This removes all the RAID data subvolumes and all the RAID metadata subvolumes that make up the RAID array, leaving the top-level RAID1 image as the linear logical volume.
The following example displays an existing LVM RAID1 logical volume.
The following command converts the LVM RAID1 logical volume
my_vg/my_lv to an LVM linear device.
lvconvert -m0 my_vg/my_lv lvs -a -o name,copy_percent,devices my_vg
# lvconvert -m0 my_vg/my_lv
# lvs -a -o name,copy_percent,devices my_vg
LV Copy% Devices
my_lv /dev/sde1(1)
When you convert an LVM RAID1 logical volume to an LVM linear volume, you can specify which physical volumes to remove. The following example shows the layout of an LVM RAID1 logical volume made up of two images:
/dev/sda1 and /dev/sdb1. In this example, the lvconvert command specifies that you want to remove /dev/sda1, leaving /dev/sdb1 as the physical volume that makes up the linear device.