LVM Volume Group Dynamic LUN Expansion (DLE) and Contraction (DLC) (September 2009)
63
The maximum volume group size for "/dev/vg1" has been
increased from 512000 MB to 8388608 MB.
Volume Group configuration for /dev/vg1 has been saved in
/etc/lvmconf/vg1.conf
4. Run vgdisplay –v to view the results.
# vgdisplay –v vg1
--- Volume groups ---
VG Name /dev/vg1
...
PE Size (Mbytes) 8
Total PE 76792
Alloc PE 51196
Free PE 25596
...
VG Version 2.1
VG Max Size 8t
VG Max Extents 1048576
--- Logical volumes ---
LV Name /dev/vg1/lvol1
LV Status available/syncd
LV Size (Mbytes) 204784
Current LE 25598
Allocated PE 51196
Used PV 2
--- Physical volumes ---
PV Name /dev/disk/disk46
PV Status available
Total PE 38396
Free PE 12798
...
PV Name /dev/disk/disk47
PV Status available
Total PE 38396
Free PE 12798
The number of extents for the second PV was increased from 25602 to 25604 when two
extents were removed from the first PV. After both PVs were reconfigured, vgmodify then
increased the maximum VG size to 8 TB, and automatically expanded the second PV from
25604 extents to 38396 extents.
5. Extend the logical volume using the free extents shown in the previous step.
# lvextend –l 38396 /dev/vg1/lvol1
Logical volume "/dev/vg1/lvol1" has been successfully extended.
Volume Group configuration for /dev/vg1 has been saved in
/etc/lvmconf/vg1.conf
6. Run vgdisplay –v to verify the LV expansion.
# vgdisplay –v vg1
/dev/vg1
--- Volume groups ---
VG Name /dev/vg1
...
PE Size (Mbytes) 8
Total PE 76792
Alloc PE 76792
Free PE 0
...