HP-UX 11i v3 vgmodify.1m (2011 09) Manpage
v
vgmodify(1M) vgmodify(1M)
Apply the LUN contraction setting that was just reviewed:
vgmodify -a -C 4000 /dev/vg02 /dev/rdsk/c2t2d0
Examples For a Volume Group Version 2.0 or Higher
The volume group version 2.0 /dev/vg03 is activated in the following examples.
Add extents to the physical volume
/dev/rdisk/disk10
that has been expanded by dynamic LUN
expansion:
vgmodify -a -E /dev/vg03 /dev/rdisk/disk10
Prepare physical volume
/dev/rdisk/disk10
for LUN contraction to size 4000 MB:
vgmodify -a -C 4000 /dev/vg03 /dev/rdisk/disk10
Use the review option to determine if the volume group size can be increased to 256 terabytes:
vgmodify -a -r -S 256t /dev/vg03
Apply the volume group size increase that was just reviewed:
vgmodify -a -S 256t /dev/vg03
Increase the maximum size of the volume group to 256 terabytes, and also check if any physical volumes
have been expanded by a dynamic LUN expansion:
vgmodify -a -E -S 256t /dev/vg03
Decrease the volume group size to 2 terabytes, to free up extents on the physical volumes:
vgmodify -a -S 2t /dev/vg03
WARNINGS
• Applicable to volume group version 1.0 only. 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
vgmo-
dify 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
vgcfgrestore -lv -f lvmconf_file_path to view the settings in the file.
• Applicable to volume group version 1.0 only. If the
vgmodify command is interrupted prior to com-
pleting its operation, then restoration to all physical 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.
/etc/lvmconf/VG_restore
A script created by vgmodify before making any update, to be used if the vgmodify command is
interrupted while committing the configuration changes to the physical volumes. See the Remarks
section for its usage.
Notes
By default,
lvmconf files are stored in the /etc/lvmconf path. However this default path can be
altered by the LVMP_CONF_PATH_NON_BOOT variable in the /etc/lvmrc file for non-bootable volume
groups, with version 2.0 or greater. See vgcfgbackup (1M) for more details.
SEE ALSO
boot(1M), lvlnboot(1M), lvmpud(1M), mkboot(1M), pvcreate(1M), pvmove(1M), vgcfgbackup(1M),
vgcfgrestore(1M), vgchange(1M), vgcreate(1M), vgdisplay(1M), vgextend(1M), vgreduce(1M), lvm(7).
HP-UX 11i Version 3: September 2011 − 7 − Hewlett-Packard Company 7