HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)
v
vgmodify(1M) vgmodify(1M)
on each physical volume and, therefore, the possible settings for the volume
group parameters.
No user data is moved during that process, only the LVM numbering of physical
extents changes.
When the first extent is being reallocated from user to LVM configuration data,
the physical extent numbers are decreased. This will only occur if the first
extent is free. For example a logical volume using physical extents 10 to 20 from
a physical volume that has its first extent reallocated to LVM configuration data
will use the physical extents 9 to 19 after the modification. User data is not
moved.
When the first extent is being reallocated from LVM configuration to user data,
the physical extent numbers are increased. For example a logical volume using
physical extents 10 to 20 from a physical volume that has its first extent re-
allocated to user data will use the physical extents 11 to 21 after the
modification. User data is not moved.
Not all configurations allow renumbering. If this is the case then an error will be
reported and a recommendation to rerun without the
-n option will be given.
-o Optimize the volume group settings. The maximum number of extents and phy-
sical volumes are adjusted upwards, where possible, to make full use of the space
reserved on each physical volume for the LVM configuration data.
This option cannot be used in conjunction with -l, -p, -n, -t,or
-e.
-p max_pv 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 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.
-t 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.
-t is normally used to obtain the arguments for future vgmodify command
-e and/or -p options.
-v Verbose. Be verbose in reporting.
EXTERNAL INFLUENCES
Environment Variables
LANG determines the language in which messages are displayed.
If LANG is not specified or is null, it defaults to "C" (see lang(5)).
If any internationalization variable contains an invalid setting, all internationalization variables default to
"C" (see environ(5)).
RETURN VALUE
vgmodify returns one of the following values:
0 Successful completion.
HP-UX 11i Version 3: February 2007 − 3 − Hewlett-Packard Company 643