[linux-lvm] LV mirror extents on same physical device

James Hawtin oolon at ankh.org
Sat Feb 22 10:37:17 UTC 2014

Ok I am not really sure what you are trying to do with madm, from what I 
can see you want to move data from pv on md1 to a pv on md2, this is 
really easy to do.

#pvcreate /dev/md2
#vgextend VolGroup00 /dev/md2
# Stop the old pv getting lvs created on it
pvchange -x n /dev/md1
# Whole thing in one go
pvmove -v /dev/md1 /dev/md2
# One at a time
pvmove -v -n rootlv /dev/md1 /dev/md2
vgreduce VolGroup00 /dev/md2

Your done.


More information about the linux-lvm mailing list