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

26
The physical volume "/dev/rdsk/c4t2d0" is ready to be prepared for
contraction to 51200 MB.
The physical volume "/dev/rdsk/c4t2d0" can be prepared for
contraction to 40003 MB without having to move any physical extents
on it.
The physical volume "/dev/rdsk/c4t2d0" can be prepared for
contraction to a minimum size of 40003 MB after freeing up the last
7501 physical extents.
An update to the Volume Group IS required
Review complete. Volume group not modified
Note: You can prepare the physical volume for the DLC operation without having to move any
physical extents on it.
3. Perform the actual operation in change mode. For offline vgmodify, deactivate the volume
group before performing this operation.
# vgchange -a n vg01 # For offline mode only
Volume group "vg01" has been successfully changed.
Run vgmodify without the –a option.
# vgmodify -C 51200m vg01 /dev/rdsk/c4t2d0 #offline mode
For online vgmodify, enter the following:
# vgmodify -a -C 51200m vg01 /dev/rdsk/c4t2d0 # online mode
The output for either command is as follows:
"/dev/rdsk/c4t2d0" size changed from 71687369 to 52428800kb
Volume Group configuration for /dev/vg01 has been saved in
/etc/lvmconf/vg01.conf
For offline mode, activate the volume group after the actual DLC operation.
# vgchange -a y vg01 # offline mode only
Activated volume group
Volume group "vg01" has been successfully changed.
4. Verify the results.
# vgdisplay 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 1
Act PV 1
Max PE per PV 17501
VGDA 2
PE Size (Mbytes) 4
Total PE 12799
Alloc PE 10000
Free PE 2799
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 ---