vgversion.1m (2010 09)

v
vgversion(1M) vgversion(1M)
corresponding configuration file.
To enable restoration of the volume group,
vgversion saves the following files in
/etc/lvmconf/vgversion_
vg_name directory on the system. Refer to the FILES section for more
information on these files.
vg_name_vg_version_old
.conf
mapfile_vg_name_1.0
vg_name_vg_version_new
.conf
mapfile_vg_name_2.x
vg_name
_disks
To re-apply the configuration to all the physical volumes belonging to the volume group vg_name , enter
the following command:
# cd /etc/lvmconf/vgversion_
vg_name
# vgversion_vg_name_restore vg_name_vg_version_old
.conf
To apply the configuration of volume group vg_name with volume group version vg_version_new to all the
physical volumes belonging to it, enter the following command:
# cd /etc/lvmconf/vgversion_
vg_name
# vgversion_vg_name_restore vg_name_vg_version_new
.conf
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
vgversion returns one of the following values:
0 Successful completion.
>0 Error condition occurred.
EXAMPLES
Review the version change operation of a volume group named /dev/vg01 to volume group version 2.0:
vgversion -r -V 2.0 /dev/vg01
Change the version of a volume group named /dev/vg01 to volume group version 2.0:
vgversion -V 2.0 /dev/vg01
Change the version of a volume group named /dev/vg01 to volume group version 2.1:
vgversion -V 2.1 /dev/vg01
Change the version of a volume group named /dev/vg01 to volume group version 2.1 and be verbose:
vgversion -v -V 2.1 /dev/vg01
Change the version of a volume group named /dev/vg01 to volume group version 2.2 and be verbose:
vgversion -v -V 2.2 /dev/vg01
Change the version of a volume group named /dev/vg01 to volume group version 2.2 by setting the unit
of unsharing to 4096KB and be verbose:
vgversion -v -U 4096 -V 2.2 /dev/vg01
WARNINGS
If the vgversion command is interrupted prior to completing its operation, then restoration to all
physical volumes in the volume group may be required. Use the restore script to accomplish this (see
the Recovery section for more information).
HP-UX 11i Version 3: September 2010 5 Hewlett-Packard Company 5