HP-UX 11i v3 vgmodify.1m (2011 09) Manpage
v
vgmodify(1M) vgmodify(1M)
-p max_pv Applicable to volume groups version 1.0 only. Set the maximum number of
physical volumes that the volume group is allowed to contain (see
vgcreate (1M) -p). The maximum number of physical volumes can range from
the current number of physical volumes in the volume group to 255.
The
-t option displays a table of possible max_pv values for vg_name .
-R vg_conf_file Applicable to volume groups version 1.0 only. Recover from a previous
vgmo-
dify that either failed or was interrupted. The configuration in the
vg_conf_file will be restored onto the pv_path list given.
-r Report the effect of the other options being used. No changes will be made to
the volume group.
This option can be used on an active volume group.
-S vg_size Only applicable to volume groups version 2.0 and higher. Changes the max-
imum size of the volume group. The unit for vg_size is specified as a suffix.
The recognized values for the suffix are
m (megabytes), g (gigabytes), t (tera-
bytes), and
p (petabytes). If no suffix is supplied, then
m (megabytes) is
assumed. A vg_size of 512 terabytes would be specified as 512t. Only whole
numbers are accepted.
-t Applicable to volume groups version 1.0 only. Produce a table showing the
optimal possible settings (max_pe , max_pv, and maximum disk size) for the
volume group.
This option can be used with and without
-n to see a complete list of possible
optimal settings. In certain cases the optimal settings will not be influenced
by the extent renumbering (-n) and a suitable message will then be reported.
Where adjacent max_pv values allow the same highest max_pe , only the
highest max_pv is displayed; therefore, there may be gaps in the table. It is
still possible to set a lower max_pv or max_pe than shown in the table but
some of the LVM configuration space will not be used.
This option can be used with
-a to see a list of optimal settings applicable
when configuration parameters need to be modified while the volume group is
activated. See the Remarks for Volume Groups Version 1.0 section below.
-t is normally used to obtain the arguments for future vgmodify command
-e and/or -p options.
-v Applicable to volume groups version 1.0 only. Verbose. Be verbose in report-
ing.
Remarks for Volume Groups Version 1.0
• This command can be run on volume groups version 1.0 that are deactivated or activated in stan-
dalone or exclusive mode only. The command will fail on volume groups activated in shared mode.
• If vgmodify of a volume group is interrupted while it is committing the configuration changes onto
the disks, it may be necessary to re-apply the configuration to all the physical volumes. The
/etc/lvmconf/VG_restore script or the -R option must be used to accomplish this. For a deac-
tivated volume group, to apply the new configuration using the restore script enter the following:
/etc/lvmconf/VG_restore /etc/lvmconf/VG.conf
Or to apply the old/original configuration, enter the following:
/etc/lvmconf/VG_restore /etc/lvmconf/VG.conf.old
For an activated volume group, the configuration file used with the restore script, or with the -R
option, should correspond to the configuration of the volume group before vgmodify was run.
• The root/boot volume group must be booted into maintenance mode before making changes (see
boot (1M)).
• If a volume group has any cluster lock physical volume, all reconfiguration and disk resize operations
will fail, with one exception. A disk resize operation on a physical volume in an activated volume
group will succeed if that specific physical volume does not have a cluster lock.
4 Hewlett-Packard Company − 4 − HP-UX 11i Version 3: September 2011