HP-UX Reference (11i v2 07/12) - 1M System Administration Commands N-Z (vol 4)

v
vgmodify(1M) vgmodify(1M)
Change a physical volume type from boot to non-boot or vice versa (see pvcreate(1M)
-B). Note that
making a physical volume non-bootable will increase the space available on that device for LVM
configuration data. However, even a single bootable physical volume in the volume group will restrict
the max_pv and max_pe settings available.
All the physical volumes associated with the volume group must be available for the
vgmodify command
to succeed.
The volume group can be active when reporting the configuration (
-r) or displaying a table of available set-
tings (
-t). The volume group must be de-activated before
vgmodify can perform any configuration
changes (see vgchange(1M)).
If the command is interrupted before it completes, recovery steps might be required. See the Remarks sec-
tion for details.
Options and Arguments
The
vgmodify command recognizes the following options and arguments:
vg_name The path name of a volume group.
pv_path The character (raw) device path name of a physical volume that will become
bootable or non-bootable based on the -B option. If type changes are not
required then the pv_path list must be empty and the -B option must not be
used.
-B bootable Make the physical volumes specified in the pv_paths list bootable or non-
bootable. bootable can have one of the following values:
y Change pv_path list from non-bootable to bootable.
n Change pv_path list from bootable to non-bootable.
See the description of the -B option in pvcreate(1M).
Making a physical volume non-bootable will increase the space available on that
device for LVM configuration data. However to fully use that space all the physi-
cal volumes in the volume group should be non-bootable. A single bootable phy-
sical volume in the volume group will restrict the available configuration set-
tings.
A physical volume can only be made bootable if either all extents on it are
unused or it was previously converted from a bootable device and the space is
still unused.
If a physical volume is being made bootable then use lvlnboot and mkboot
to complete the process (see lvlnboot(1M) and mkboot(1M)).
-e max_pe Set the maximum number of physical extents that can be allocated from any of
the physical volumes in the volume group (see vgcreate(1M))
-e).
The maximum number of physical extents can range from the current highest
physical extent in use on any physical volume in the volume group (1 if none in
use) up to 65535.
The
-t option displays a table of possible max_pe values for vg_name.
-l max_lv Set the maximum number of logical volumes that the volume group is allowed to
contain (see vgcreate(1M) -l).
The maximum number of logical volumes can range from the current highest
logical volume number in use (1 if none in use) to 255.
Note that changing this value has little impact on the size of the LVM
configuration data.
-n Allow renumbering of physical extents on physical volumes. This only applies to
physical volumes that have allocated extents. By default, physical extent
numbers will be unchanged by vgmodify.
Renumbering physical extents changes the allocation of the first physical extent,
if it is free, from user to LVM configuration data and vice-versa. This will often
have a considerable impact on the space available for the LVM configuration data
630 Hewlett-Packard Company 2 HP-UX 11i Version 2: December 2007 Update