Hi Guys,
I have a mirrored LVM volume, and wish to break the mirror leaving only copy1 (effectively removing copy 0).
Here's the config:
# lvs -a -o +devices
lvdata vg01 mwi-ao 2.19T lvdata_mlog 100.00 lvdata_mimage_0(0),lvdata_mimage_1(0)
[lvdata_mimage_0] vg01 iwi-ao 2.19T /dev/dm-15(0)
[lvdata_mimage_0] vg01 iwi-ao 2.19T /dev/dm-12(0)
[lvdata_mimage_0] vg01 iwi-ao 2.19T /dev/dm-14(0)
[lvdata_mimage_0] vg01 iwi-ao 2.19T /dev/dm-13(0)
[lvdata_mimage_1] vg01 iwi-ao 2.19T /dev/dm-18(0)
[lvdata_mimage_1] vg01 iwi-ao 2.19T /dev/dm-19(0)
[lvdata_mimage_1] vg01 iwi-ao 2.19T /dev/dm-20(0)
[lvdata_mimage_1] vg01 iwi-ao 2.19T /dev/dm-21(0)
[lvdata_mlog] vg01 lwi-ao 4.00M /dev/dm-22(0)
# lvconvert -m0 vg01/lvdata
I think running the above example command will convert the mirror to a linear volume running on copy 0. Any ideas how I can do the same, but leave it running on copy 1?
Thanks in advance.
---------- Post updated at 03:26 AM ---------- Previous update was at 01:59 AM ----------
i figured it out cheers. You need to specify the devices you wish to remove from the mirror, after the lvconvert command.
# lvconvert -m0 vg01/lvdata /dev/dm-12 /dev/dm-13 /dev/dm-14 /dev/dm-15
lvs -a -o +devices
lvdata vg01 -wi-ao 2.19T /dev/dm-18(0)
lvdata vg01 -wi-ao 2.19T /dev/dm-19(0)
lvdata vg01 -wi-ao 2.19T /dev/dm-20(0)
lvdata vg01 -wi-ao 2.19T /dev/dm-21(0)