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

27
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 12799
Free PE 2799
Allocated PE 10000
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On
Proactive Polling On
After the DLC operation, Total PE is reduced from 17501 to 12799 and Free PE on the
volume group is reduced from 7501 to 2799.
Performing DLC on a physical volume with allocated extents
This example assumes a volume group that has a disk of size 73 GB, and you want to determine if
you can contract the physical volume can to 50 GB from the LVM end.
1. Review the current configuration.
# vgdisplay -v vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 17501
VGDA 4
PE Size (Mbytes) 4
Total PE 35002
Alloc PE 14000
Free PE 21002
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 1120064m
VG Max Extents 280016
# pvdisplay –v /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 3501
Allocated PE 14000
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On