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

68
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 51133
Free PE 12737
...
PV Name /dev/disk/disk47
PV Status available
Total PE 51133
Free PE 12737
4. Expand the logical volume to make use of the additional extents.
# lvextend –l 51133 /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
5. Verify the LV expansion.
# vgdisplay –v vg1
--- Volume groups ---
VG Name /dev/vg1
...
PE Size (Mbytes) 8
Total PE 102266
Alloc PE 102266
Free PE 0
...
VG Version 2.1
VG Max Size 256t
VG Max Extents 33554432
--- Logical volumes ---
LV Name /dev/vg1/lvol1
LV Status available/syncd
LV Size (Mbytes) 409064
Current LE 51133
Allocated PE 102266
Used PV 2
--- Physical volumes ---
PV Name /dev/disk/disk46
PV Status available
Total PE 51133
Free PE 0
...
PV Name /dev/disk/disk47
PV Status available
Total PE 51133
Free PE 0
Online DLC examples
Online DLC requiring pvmove
In the previous examples, for a volume group with two PVs, you increased the LUN sizes from 200
GB to 300 GB to 400 GB, increased the maximum VG size from 500 GB to 8 TB to 128 TB to 256
TB, and increased the logical volume size from 204784 MB to 307168 MB to 409064 MB. In this