LVM Volume Group Dynamic LUN Expansion (DLE) and Contraction (DLC) (September 2009)
42
Cur PV 3
Act PV 3
Max PE per PV 21756
VGDA 6
PE Size (Mbytes) 4
Total PE 15354
Alloc PE 3000
Free PE 12354
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 2001552m
VG Max Extents 500388
The Max PV and Max PE per PV are as requested.
Optimizing the metadata space
Run vgmodify in review mode, with and without the –a option. The -a option enables the
vgmodify command to run when the volume group is active (online vgmodify).
1.
# vgmodify –r -o vg02
Current Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 5119
PE Size (Mbytes) 4
VGRA Size (Kbytes) 736
New configuration requires max_pes are increased from 5119 to 6652
The current and new Volume Group parameters differ.
An update to the Volume Group IS required
New Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 6652
PE Size (Mbytes) 4
VGRA Size (Kbytes) 896
Review complete. Volume group not modified
Using –o increases the max_pes from 5119 to 6652 as the VGRA size is increased from
736 to 896KB.
2. Modify the volume group.
For offline mode, deactivate the volume group before performing the actual operation and
run vgmodify command without the –a option.
# vgchange -a n vg02 # For offline mode only
Volume group "vg02" has been successfully changed.
# vgmodify -o vg02 # Offline mode
or
# vgmodify -a -o vg02 # Online mode
Current Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 5119
PE Size (Mbytes) 4