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

18
2. Use online vgmodify in review mode to review the effect of the change in disk size.
# vgmodify –r -a -E vg1
"/dev/rdisk/disk43" size changed from 52428800 to 71687369kb
An update to the Volume Group IS required
Review complete. Volume group not modified
3. Use online vgmodify to change the disk size.
# vgmodify -a -E vg1
"/dev/rdisk/disk43" size changed from 52428800 to 71687369kb
4. Verify the change.
# vgdisplay vg1
--- Volume groups ---
VG Name /dev/vg1
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 0
Open LV 0
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 25535
VGDA 2
PE Size (Mbytes) 4
Total PE 17500
Alloc PE 12799
Free PE 4701
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 1634240m
VG Max Extents 408560
The amount of disk space increased by the number of physical extents allocated on the disk
from 12799 to 17500.
Performing online DLE when some additional disk space can be allocated
This example assumes you have a 50 GB disk belonging to volume group vg1 that has its max_PE per
PV value set to 13900. The disk size was increased to 68 GB using the relevant disk utilities.
1. Review current volume group parameters.
# vgdisplay vg1
--- Volume groups ---
VG Name /dev/vg1
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 0
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 13900
VGDA 2
PE Size (Mbytes) 4
Total PE 12799
Alloc PE 12799
Free PE 0
Total PVG 0
Total Spare PVs 0