HP-UX System Administrator's Guide: Logical Volume Management (762803-001, March 2014)

information. If a physical volume was accidentally initialized as bootable, you can convert the disk
to a nonbootable disk and reclaim LVM metadata space.
CAUTION: The boot volume group requires at least one bootable physical volume. Do not convert
all of the physical volumes in the boot volume group to nonbootable, or your system will not boot.
To change a disk type from bootable to nonbootable, follow these steps:
1. Use vgcfgrestore to determine if the volume group contains any bootable disks.
2. Run vgmodify twice, once with the -B n and once without it. Compare the available values
for max_pe and max_pv.
3. Choose new values for max_pe and max_pv. Review the values by running vgmodify with
the new settings and the -r option.
4. Deactivate the volume group.
5. Commit the changes by running vgmodify without the -r option.
6. Activate the volume group. Run the vgcfgrestore or pvdisplay commands to verify that
the disk type has changed.
For example, to convert any bootable disks in volume group vg, follow these steps:
1. Check if any physical volumes in vg01 are bootable as follows:
# vgcfgrestore -l -v -n vg01
Volume Group Configuration information in "/etc/lvmconf/vg01.conf"
VG Name /dev/vg01
---- Physical volumes : 1 ----
PV Type Size (kb) Start (kb) PVkey
c2t1d0 Bootable 35566480 2912 0
max_pv 16 max_pe 1085 max_lv 255
2. To determine which values of max_pe and max_pv are available, run the following command:
# vgmodify -t -B n vg01 /dev/rdsk/c2t1d0
Current Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 1085
PE Size (Mbytes) 32
VGRA Size (Kbytes) 208
VGRA space (Kbytes) without PE renumbering 2784
VGRA space (Kbytes) PE renumbering lower 32768
Volume Group optimized settings (no PEs renumbered):
max_pv(-p) max_pe(-e) Disk size (Mb)
5 65535 2097122
6 56828 1818498
...
255 1276 40834
Compare the values if the disk is made non-bootable, and if it is not. Enter the following
command:
# vgmodify -t vg01
Current Volume Group settings:
Max LV 255
Max PV 16
Max PE per PV 1085
PE Size (Mbytes) 32
VGRA Size (Kbytes) 208
VGRA space (Kbytes) without PE renumbering 768
VGRA space (Kbytes) PE renumbering lower 768
Volume Group optimized settings (no PEs renumbered):
max_pv(-p) max_pe(-e) Disk size (Mb)
88 Administering LVM