LVM Volume Group Dynamic LUN Expansion (DLE) and Contraction (DLC) (September 2009)

34
Preview the pvmove operation.
# pvmove -p -n /dev/vg01/lvol2 /dev/dsk/c4t2d0 /dev/dsk/c4t1d0
--- Preview of the Relocation Operation ---
Source PV Source PE Destination PV Destination PE
/dev/dsk/c4t2d0 14000 /dev/dsk/c4t1d0 0
/dev/dsk/c4t2d0 14001 /dev/dsk/c4t1d0 1
/dev/dsk/c4t2d0 14002 /dev/dsk/c4t1d0 2
/dev/dsk/c4t2d0 14003 /dev/dsk/c4t1d0 3
/dev/dsk/c4t2d0 14004 /dev/dsk/c4t1d0 4
/dev/dsk/c4t2d0 14005 /dev/dsk/c4t1d0 5
/dev/dsk/c4t2d0 14006 /dev/dsk/c4t1d0 6
/dev/dsk/c4t2d0 14007 /dev/dsk/c4t1d0 7
*Entries deleted for brevity
/dev/dsk/c4t2d0 15994 /dev/dsk/c4t1d0 1994
/dev/dsk/c4t2d0 15995 /dev/dsk/c4t1d0 1995
/dev/dsk/c4t2d0 15996 /dev/dsk/c4t1d0 1996
/dev/dsk/c4t2d0 15997 /dev/dsk/c4t1d0 1997
/dev/dsk/c4t2d0 15998 /dev/dsk/c4t1d0 1998
/dev/dsk/c4t2d0 15999 /dev/dsk/c4t1d0 1999
Perform the actual pvmove operation.
# pvmove -n /dev/vg01/lvol2 /dev/dsk/c4t2d0 /dev/dsk/c4t1d0
Transferring logical extents of logical volume "/dev/vg01/lvol2"...
Physical volume "/dev/dsk/c4t2d0" has been successfully moved.
Volume Group configuration for /dev/vg01 has been saved in
/etc/lvmconf/vg01.conf
4. Verify the results of the pvmove operation.
# pvdisplay /dev/dsk/c4t2d0
--- Physical volumes ---
PV Name /dev/dsk/c4t2d0
VG Name /dev/vg01
PV Status available
Allocatable yes
VGDA 2
Cur LV 1
PE Size (Mbytes) 4
Total PE 17501
Free PE 5501
Allocated PE 12000
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On
Proactive Polling On
# pvdisplay /dev/dsk/c4t1d0
--- Physical volumes ---
PV Name /dev/dsk/c4t1d0
VG Name /dev/vg01
PV Status available
Allocatable yes
VGDA 2
Cur LV 1
PE Size (Mbytes) 4
Total PE 17501
Free PE 15501
Allocated PE 2000
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On
Proactive Polling On