HP-UX System Administrator's Guide: Logical Volume Management (5900-3028, March 2013)
The table shows that if physical extents are renumbered, all values of max_pv permit a max_pe
large enough to accommodate the increased physical volume size.
For this example, select a max_pv of 10, which permits a max_pe value of 10748.
4. Preview the changes by using the -r option to vgmodify as follows:
# vgmodify -p 10 -e 10748 -r vg32
Current Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 1016
PE Size (Mbytes) 32
VGRA Size (Kbytes) 176
The current and new Volume Group parameters differ.
"/dev/rdisk/disk6" size changed from 4194304 to 100000000kb
An update to the Volume Group IS required
New Volume Group settings:
Max LV 255
Max PV 10
Max PE per PV 10748
PE Size (Mbytes) 32
VGRA Size (Kbytes) 896
Review complete. Volume group not modified
5. Deactivate the volume group as follows:
# vgchange -a n vg32
Volume group "vg32" has been successfully changed.
6. Commit the new values as follows:
# vgmodify -p 10 -e 10748 vg32
Current Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 1016
PE Size (Mbytes) 32
VGRA Size (Kbytes) 176
The current and new Volume Group parameters differ.
"/dev/rdisk/disk6" size changed from 4194304 to 100000000kb
An update to the Volume Group is required
New Volume Group settings:
Max LV 255
Max PV 10
Max PE per PV 10748
PE Size (Mbytes) 32
VGRA Size (Kbytes) 896
New Volume Group configuration for "vg32" has been saved in
"/etc/lvmconf/vg32.conf"
Old Volume Group configuration for "vg32" has been saved in
"/etc/lvmconf/vg32.conf.old"
Starting the modification by writing to all Physical Volumes
Applying the configuration to all Physical Volumes from
"/etc/lvmconf/vg32.conf"
Completed the modification process.
New Volume Group configuration for "vg32" has been saved in
"/etc/lvmconf/vg32.conf.old"
Volume group "vg32" has been successfully changed.
80 Administering LVM