HP-UX System Administrator's Guide: Logical Volume Management (5900-3028, March 2013)

Max PV 16
Max PE per PV 1016
PE Size (Mbytes) 32
VGRA Size (Kbytes) 176
Review complete. Volume group not modified
The expanded physical volume requires 3051 physical extents to use all its space, but the
current max_pe value limits this to 1016.
3. To determine the optimal values for max_pv and max_pe, run vgmodify -t, with and
without the -n as follows:
# vgmodify -t vg32
Current Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 1016
PE Size (Mbytes) 32
VGRA Size (Kbytes) 176
VGRA space (Kbytes) without PE renumbering 896
VGRA space (Kbytes) PE renumbering lower 32768
Volume Group optimized settings (no PEs renumbered):
max_pv(-p) max_pe(-e) Disk size (Mb)
2 53756 1720193
3 35836 1146753
4 26876 860033
...
28 3836 122753
30 3580 114561
32 3324 106369
35 3068 98177
38 2812 89985
...
255 252 8065
The table shows that without renumbering physical extents, a max_pv of 35 or lower permits
a max_pe sufficient to accommodate the increased physical volume size.
# vgmodify -v -t -n vg32
Volume Group configuration for /dev/vg32 has been saved in
/etc/lvmconf/vg32.conf
Current Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 1016
PE Size (Mbytes) 32
VGRA Size (Kbytes) 176
VGRA space (Kbytes) on all Physical Volumes:
PV current -n
/dev/rdisk/disk6 896 32768
/dev/rdisk/disk5 896 32768
Summary 896 32768
Volume Group optimized settings (PEs renumbered lower):
max_pv(-p) max_pe(-e) Disk size (Mb)
61 65535 2097152
62 65532 2097056
63 64252 2056096
...
251 16124 516000
252 16048 513568
255 15868 507808
Moving and Reconfiguring Your Disks 79