LVM Volume Group Dynamic LUN Expansion (DLE) and Contraction (DLC) (September 2009)
62
38396 free 00000
38397 free 00000
2. Run online vgmodify in review mode to verify if the physical volumes can be reconfigured to
the new (larger) maximum VG size 8TB.
# vgmodify -r -a -E -S 8t vg1
Physical volume "/dev/disk/disk46" requires reconfiguration to be
provisioned to the requested maximum volume group size 8388608 MB.
Current number of extents: 38398
Number of extents after reconfiguration: 38396
The physical volume "/dev/disk/disk46" can be reconfigured to the
new maximum volume group size 3623256 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.
Physical volume "/dev/disk/disk46" was not changed.
Physical volume "/dev/disk/disk47" requires reconfiguration to be
provisioned to the requested maximum volume group size 8388608 MB.
Current number of extents: 25602
Number of extents after reconfiguration: 25602
The physical volume "/dev/disk/disk47" can be reconfigured to the
new maximum volume group size 268435456 MB without removing free
extents from the end of the physical volume.
The physical volume "/dev/disk/disk47" can be reconfigured to the
new maximum volume group size 268435456 MB by removing free
extents from the end of the physical volume.
Physical volume "/dev/disk/disk47" was not changed.
The output shows you can increase the maximum VG size from 500 GB to 8 TB by removing
the last two extents (which are free) from the first PV. No extents need to be removed from the
second PV.
The output also shows you can increase the maximum VG size to the maximum VG size value
(256 TB) supported for an extent size of 8 MB by removing additional free extents from the
first PV.
Finally, the output shows you can increase the maximum VG size from 512000 MB to
3623256 MB without removing any free extents from the first PV.
3. Run online vgmodify in change mode to reconfigure all of the physical volumes to the new
(larger) maximum VG size of 8 TB.
# vgmodify -a -E -S 8t vg1
Reconfiguration of physical volume "/dev/disk/disk46" for the
requested maximum volume group size 8388608 MB succeeded.
Previous number of extents: 38398
Number of extents after reconfiguration: 38396
Physical volume "/dev/disk/disk46" was changed.
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 8388608 MB succeeded.
Previous number of extents: 25604
Number of extents after reconfiguration: 25604
Physical volume "/dev/disk/disk47" was changed.