[linux-lvm] using lvconvert for mirroring

ben scott benscott at nwlink.com
Sat Aug 18 18:24:03 UTC 2007


I have been playing with lvconvert but I can't quite figure out what it is 
doing.  If I start with this:

	Debian# lvs -o +devices
	  LV    VG   Attr   LSize Origin Snap%  Move Log Copy%  Devices
	  lvol0 vg1  -wima- 7.81G                               /dev/hde2(0)

Then run:

	Debian# lvconvert -m1 vg1/lvol0

I get this:

Debian# lvs -o +devices
	  LV    VG   Attr   LSize Origin Snap%  Move Log        Copy%  Devices                         
	  lvol0 vg1  mwima- 7.81G                    lvol0_mlog   2.75 lvol0_mimage_0			          
(0),lvol0_mimage_1(0)

So my first question is how do I find out where the mirror really is? I have 
also tried specifying the physical volume at the end of the command to put 
the mirror on a different pv but then I get this error message:

	Debian# lvconvert -m1 vg1/lvol0 /dev/hdg1
	  Not enough PVs with free space available for parallel allocation.
	  Consider --alloc anywhere if desperate.

Thank you for any insight.




More information about the linux-lvm mailing list