LVM Volume Group Dynamic LUN Expansion (DLE) and Contraction (DLC) (September 2009)
30
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 16300
Allocated PE 1201
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On
Proactive Polling On
The last 1201 extents were moved from physical volume /dev/dsk/c4t2d0 to
/dev/dsk/c4t1d0.
5. Run vgmodify in review mode.
# vgmodify -r -C 51200 vg01 /dev/rdsk/c4t2d0 # Offline mode
or
# vgmodify -a -r -C 51200 vg01 /dev/rdsk/c4t2d0 #Online mode
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 51199 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 51199 MB after freeing up the last
4702 physical extents .
An update to the Volume Group IS required
Review complete. Volume group not modified
The physical volume is ready to be prepared for DLC.
6. 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.
# vgmodify -C 51200 vg01 /dev/rdsk/c4t2d0 #Offline mode
or
# vgmodify -a -C 51200 vg01 /dev/rdsk/c4t2d0 #Online mode
"/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.
7. 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