LVM Volume Group Dynamic LUN Expansion (DLE) and Contraction (DLC) (September 2009)
31
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 30300
Alloc PE 14000
Free PE 16300
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 /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 12799
Free PE 0
Allocated PE 12799
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On
Proactive Polling On
After the DLC operation, Total PE is reduced from 17501 to 12799.
Performing DLC on a physical volume that has holes
This example assumes a volume group that has a 73 GB disk with the first initial extents allocated and
the last few extents allocated. You want to determine if the physical volume size can be contracted 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 2
Open LV 2
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