From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30759 invoked by alias); 9 Feb 2011 22:24:56 -0000 Received: (qmail 30742 invoked by uid 9478); 9 Feb 2011 22:24:55 -0000 Date: Wed, 09 Feb 2011 22:24:00 -0000 Message-ID: <20110209222455.30740.qmail@sourceware.org> From: jbrassow@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/man pvmove.8.in Mailing-List: contact lvm2-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: lvm2-cvs-owner@sourceware.org X-SW-Source: 2011-02/txt/msg00031.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: jbrassow@sourceware.org 2011-02-09 22:24:55 Modified files: man : pvmove.8.in Log message: bug 659264: more examples for pvmove Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/man/pvmove.8.in.diff?cvsroot=lvm2&r1=1.4&r2=1.5 --- LVM2/man/pvmove.8.in 2011/02/09 17:42:15 1.4 +++ LVM2/man/pvmove.8.in 2011/02/09 22:24:55 1.5 @@ -95,12 +95,37 @@ .SH EXAMPLES To move all logical extents of any logical volumes on -.B /dev/hda4 -to free physical extents elsewhere in the volume group, giving verbose -runtime information, use: +.B /dev/sdb1 +to free physical extents elsewhere in the volume group, use: .sp -\ pvmove -v /dev/hda4 +\ pvmove /dev/sdb1 +.P +Additionally, the destination device can be specified. .sp +\ pvmove /dev/sdb1 /dev/sdc1 +.P +It is possible to perform the action on a single logical volume (instead of all +the logical volumes that might be on the source device), like this: +.sp +\ pvmove -n lvol1 /dev/sdb1 /dev/sdc1 +.P +Rather than moving the contents of the entire device, it is possible to +move a range of extents. +.sp +\ pvmove /dev/sdb1:1000-1999 +.P +It is possible to move the range of extents to a specific location (as long +as the location has sufficent free extents) - even on the same device. +.sp +\ pvmove /dev/sdb1:1000-1999 /dev/sdc1 +.sp +\ pvmove /dev/sdb1:1000-1999 /dev/sdb1:0-999 +.P +A specific logical volume in a range of extents can also be picked out and +moved. +.sp +\ pvmove -n lvol1 /dev/sdb1:1000-1999 /dev/sdc1 .SH SEE ALSO .BR lvm (8), .BR vgconvert (8) +.BR pvs (8) \ No newline at end of file