Splitting a mirror with LVM
I'm running Red Hat Enterprise Linux ES release 4 (Nahant Update 6).
I've created a mirror of a Logical Volume with this command:
# lvconvert -m1 --corelog /dev/datavg/data /dev/dm-16
Now I've this:
# lvs -a -o name,copy_percent,devices
LV Copy% Devices
data 100.00 data_mimage_0(0),data_mimage_1(0)
What I want to do is to remove the copy of that LV from my PV dm-11, dm-10 and dm-14.
I tried this:
# lvconvert -m0 /dev/datavg/data /dev/dm-10 /dev/dm-11 /dev/dm-14
No free extents on physical volume "/dev/dm-10"
No free extents on physical volume "/dev/dm-11"
No mirror images found using specified PVs.
What did I do wrong? My goal was to remove devices dm-10, dm-11 and dm-14 from my VG, so I decided to extend the VG with dm-16 and mirror my data LV to that device, then split that mirror from the other devices. The FS is mounted and need to stay online...