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

16
# vgmodify -v –r –a –E vg1
Volume Group configuration for /dev/vg1 has been saved in
/etc/lvmconf/vg1.conf
"/dev/rdisk/disk4154" size changed from 314572800 to 492830720kb
"/dev/rdisk/disk4154" size is limited by the maximum extents per PV
to 491520000.
An update to the Volume Group IS required
Review complete. Volume group not modified
6. Perform the actual DLE operation in change mode.
# vgmodify –a –E vg1
"/dev/rdisk/disk4154" size changed from 314572800 to 492830720kb
"/dev/rdisk/disk4154" size is limited by the maximum extents per PV
to 491520000.
# vgdisplay vg1
--- Volume groups ---
VG Name /dev/vg1
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 0
Max PV 50
Cur PV 1
Act PV 1
Max PE per PV 30000
VGDA 2
PE Size (Mbytes) 16
Total PE 30000
Alloc PE 19199
Free PE 10801
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 24000000m
VG Max Extents 1500000
The total number of extents on the disk increased to 30000, which is also the max_PE per PV
configured for the volume group.
Determining the physical volumes for online dynamic LUN expansion
To determine the physical volumes on which you can perform an online DLE operation, follow these
steps:
1. Run vgmodify –v –r –a -E vgname. Any disks that were resized since pvcreate was
run on them are reported as follows:
“/dev/rdsk/c0t0d0" size changed from 16777216 to 100000000kb
If there is insufficient space to allocate all the disk space on any device, a message similar to
the following appears:
"/dev/rdsk/c0t4d2" size is limited by the maximum extents per PV to
56934400.
If you want to change the volume group configuration parameters, follow the guidelines in the
Volume group configuration changes se
ction.
2. Use online vgmodify in review mode.