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

22
84 1276 5105
* Entries deleted for brevity
5. Review the configuration for a max_pv of 20. The max_pv values up to 70 provide for a
sufficient number of max_pes for the current largest disk.
# vgmodify -r -p 20 -e 5372 -v vg04
Volume Group configuration for /dev/vg04 has been saved in
/etc/lvmconf/vg04.conf
Current Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 1023
PE Size (Mbytes) 4
VGRA Size (Kbytes) 208
The current and new Volume Group parameters differ.
"/dev/rdsk/c5t0d0" size changed from 4194304 to 6000000kb
Physical Volume "/dev/rdsk/c6t0d0" the current and new settings
differ
An update to the Volume Group IS required
New Volume Group settings:
Max LV 255
Max PV 20
Max PE per PV 5372
PE Size (Mbytes) 4
VGRA Size (Kbytes) 896
Review complete. Volume group not modified
6. Deactivate the volume group in preparation for the modification.
# vgchange -a n vg04
Volume group "vg04" has been successfully changed.
7. Use vgmodify in change mode to change the configuration.
# vgmodify -p 20 -e 5372 -v vg04
Performing "vgchange -a y -l -p -s vg04" to collect data
Activated volume group
Volume group "vg04" has been successfully activated.
Volume Group configuration for /dev/vg04 has been saved in
/etc/lvmconf/vg04.conf
Deactivating Volume Group "vg04"
Volume group "vg04" has been successfully deactivated.
Current Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 1023
PE Size (Mbytes) 4
VGRA Size (Kbytes) 208
The current and new Volume Group parameters differ.
"/dev/rdsk/c5t0d0" size changed from 4194304 to 6000000kb
Physical Volume "/dev/rdsk/c6t0d0" the current and new settings
differ
An update to the Volume Group IS required
New Volume Group settings:
Max LV 255
Max PV 20
Max PE per PV 5372
PE Size (Mbytes) 4
VGRA Size (Kbytes) 896