HP-UX Reference (11i v2 07/12) - 1M System Administration Commands N-Z (vol 4)
v
vgmodify(1M) vgmodify(1M)
0 Successful completion.
>0 Error condition occurred.
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
Verbosely review (do not change) the impact of optimizing the volume group settings:
vgmodify -v -r -o /dev/vg02
Verbosely apply the changes that will result from optimizing the volume group settings:
vgmodify -v -o /dev/vg02
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
WARNINGS
• Changing the type of a bootable physical volume will prevent booting from this device and, therefore,
may create an unbootable system.
• Do not restore a physical volume from a backup file (lvmconf) produced prior to the latest
vgmodify
changes. Doing so will result in attempts to attach the device to the volume group failing and may lead
to activation failures. If there is any doubt about the configuration in the lvmconf file, use vgcfgre-
store -lv -f /etc/lvmconf/VG.conf
to view the settings in the file.
• If the vgmodify command is interrupted prior to completing its operation then restoration to all phy-
sical volumes in the volume group may be required. Use the restore script to accomplish this (see the
Remarks section for more information).
FILES
/etc/lvmconf/VG.conf
Holds the latest (new) configuration for the volume group.
/etc/lvmconf/VG.conf.old
If vgmodify completes successfully, this file contains the same new configuration as
/etc/lvmconf/VG.conf.Ifvgmodify was interrupted, this file contains the previous (old)
configuration.
632 Hewlett-Packard Company − 4 − HP-UX 11i Version 2: December 2007 Update