6.12. Converting a mirrored LVM device to a RAID1 logical volume
You can convert an existing mirrored LVM device with a segment type mirror to a RAID1 LVM device. To perform this operation, use the lvconvert command with the --type raid1 argument. This renames the mirror subvolumes named mimage to RAID subvolumes named rimage.
In addition, it also removes the mirror log and and creates metadata subvolumes named rmeta for the data subvolumes on the same physical volumes as the corresponding data subvolumes.
Procédure
View the layout of a mirrored logical volume my_vg/my_lv:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Convert the mirrored logical volume my_vg/my_lv to a RAID1 logical volume:
lvconvert --type raid1 my_vg/my_lv
# lvconvert --type raid1 my_vg/my_lv Are you sure you want to convert mirror LV my_vg/my_lv to raid1 type? [y/n]: y Logical volume my_vg/my_lv successfully converted.Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Vérification
Verify if the mirrored logical volume is converted to a RAID1 logical volume:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow