HP-UX 11i v3 vgmodify.1m (2011 09) Manpage
v
vgmodify(1M) vgmodify(1M)
• When used with the -r option, the
-S option reports if the volume can be reconfigured to the specified
volume group size. If not, it displays the number of extents that need to be freed up on each physical
volume before the volume group size can be reconfigured. In addition it reports the largest volume
group size possible for each physical volume, and the largest volume group size possible when remov-
ing free extents.
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.
>0 Error condition occurred.
EXAMPLES
Examples For a Volume Group Version 1.0
The volume group version 1.0
/dev/vg02 is deactivated in the following examples.
Review the effect of setting a maximum of 6 physical volumes in the volume group:
vgmodify -p 6 -r /dev/vg02
Set a maximum of 4000 physical extents per physical volume and a maximum of 50 physical volumes, and
take advantage of extent renumbering if possible:
vgmodify -p 50 -e 4000 -n /dev/vg02
Show a table of optimal possible settings for the volume group:
vgmodify -t /dev/vg02
Show a table of optimal possible settings for the volume group taking advantage of extent renumbering if
possible:
vgmodify -t -n /dev/vg02
Show a table of optimal possible settings for the volume group, making the physical volume
/dev/rdsk/c1t2d0
non-bootable:
vgmodify -t -B n /dev/vg02 /dev/rdsk/c1t2d0
Review (do not change) the effect of choosing a maximum of 16 physical volumes, 8000 physical extents
per physical volume, while making /dev/rdsk/c1t2d0 non-bootable (these values were selected from
the table above) and be verbose:
vgmodify -p 16 -e 8000 -v -r -B n /dev/vg02 /dev/rdsk/c1t2d0
Apply the settings just reviewed:
vgmodify -p 16 -e 8000 -v -B n /dev/vg02 /dev/rdsk/c1t2d0
If the vgmodify command is interrupted, restore the new configuration to all physical volumes in the
volume group by entering:
/etc/lvmconf/vg02_restore /etc/lvmconf/vg02.conf
The volume group version 1.0 /dev/vg02 is activated in the following examples.
Add extents to the physical volume
/dev/rdsk/c2t2d0 that has been expanded by dynamic LUN
expansion:
vgmodify -a -E /dev/vg02 /dev/rdsk/c2t2d0
Use the review option to determine if the physical volume /dev/rdsk/c2t2d0 can be prepared for
LUN contraction to 4000 MB:
vgmodify -a -r -C 4000 /dev/vg02 /dev/rdsk/c2t2d0
6 Hewlett-Packard Company − 6 − HP-UX 11i Version 3: September 2011