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

76
3. Run vgmodify in change mode to decrease the maximum VG size to 64 TB.
# vgmodify -a -S 64t vg1
Reconfiguration of physical volume "/dev/disk/disk46" for the
requested maximum volume group size 67108864 MB succeeded.
Previous number of extents: 25533
Number of extents after reconfiguration: 25582
Physical volume "/dev/disk/disk46" was changed.
The maximum volume group size for "/dev/vg1" has been
decreased from 268435456 MB to 67108864 MB.
Volume Group configuration for /dev/vg1 has been saved in
/etc/lvmconf/vg1.conf
Reconfiguration of physical volume "/dev/disk/disk47" for the
requested maximum volume group size 67108864 MB succeeded.
Previous number of extents: 38333
Number of extents after reconfiguration: 38382
Physical volume "/dev/disk/disk47" was changed.
Volume Group configuration for /dev/vg1 has been saved in
/etc/lvmconf/vg1.conf
4. Verify the results.
# vgdisplay –v vg1
--- Volume groups ---
VG Name /dev/vg1
...
PE Size (Mbytes) 8
Total PE 63964
Alloc PE 51133
Free PE 12831
...
VG Version 2.1
VG Max Size 64t
VG Max Extents 8388608
--- Logical volumes ---
LV Name /dev/vg1/lvol1
LV Status available/syncd
LV Size (Mbytes) 409064
Current LE 51133
Allocated PE 51133
Used PV 2
--- Physical volumes ---
PV Name /dev/disk/disk46
PV Status available
Total PE 25582
Free PE 49
...
PV Name /dev/disk/disk47
PV Status available
Total PE 38382
Free PE 12782
LVM vgmodify Messages for Version 2.x volume groups
This section lists the messages reported by the vgmodify command on version 2.x volume groups.
For additional information, see vgmodify(1M).