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

66
increased from 8388608 MB to 134217728 MB.
Volume Group configuration for /dev/vg1 has been saved in
/etc/lvmconf/vg1.conf
6. Verify the increased maximum VG size.
# vgdisplay –v vg1
--- Volume groups ---
VG Name /dev/vg1
...
PE Size (Mbytes) 8
Total PE 102332
Alloc PE 76792
Free PE 25540
...
VG Version 2.1
VG Max Size 128t
VG Max Extents 16777216
--- Logical volumes ---
LV Name /dev/vg1/lvol1
LV Status available/syncd
LV Size (Mbytes) 307168
Current LE 38396
Allocated PE 76792
Used PV 2
--- Physical volumes ---
PV Name /dev/disk/disk46
PV Status available
Total PE 51166
Free PE 12770
...
PV Name /dev/disk/disk47
PV Status available
Total PE 51166
Free PE 12770
Online reprovisioning without DLE
In the previous examples, for a volume group with two PVs, you increased the LUN sizes from 200
GB to 30 0GB to 400 GB, increased the maximum VG size from 500 GB to 8 TB to 128 TB, and
increased the logical volume size from 204784 MB to 307168 MB. In this example, you want to
increase the maximum VG size from 128 TB to 256 TB. Because there are free extents at the ends of
the PVs (which can be verified with pvdisplay –v), you can do the reprovisioning without DLE.
1. Run online vgmodify in review mode to verify you can increase the maximum VG size from
128 TB to 256 TB through reprovisioning (-S) without DLE.
# vgmodify -r -a -S 256t vg1
Physical volume "/dev/disk/disk46" requires reconfiguration to be
provisioned to the requested maximum volume group size 268435456
MB.
Current number of extents: 51166
Number of extents after reconfiguration: 51133
The physical volume "/dev/disk/disk46" can be reconfigured to the
new maximum volume group size 135712104 MB without removing free
extents from the end of the physical volume.
The physical volume "/dev/disk/disk46" can be reconfigured to the
new maximum volume group size 268435456 MB by removing free
extents from the end of the physical volume.