vgimport.1m (2010 09)

v
vgimport(1M) vgimport(1M)
This option may become obsolete in future releases.
-C Configure the volume group by populating cluster device special files in the
/etc/lvmtab or /etc/lvmtab_p
file, corresponding to the volume group,
vg_name. This option can only be used with the
-s option.
This option requires the patch to Serviceguard A.11.20 that contains the cluster-
wide device special file enhancement, and possibly other dependent patches. See
the latest version of the HP Serviceguard A.11.20 Release Notes for more informa-
tion.
-s Scan option. Scan each of the disks connected to the system and update the
/etc/lvmtab or /etc/lvmtab_p
file with the physical volumes that have
matching volume group information, as found in the mapfile . This option should
always be used in conjunction with the
-m option. The specified mapfile is the file
generated by running the
vgexport command, also with
-m and -s options.
-p Preview the actions to be taken but do not update the
/etc/lvmtab or
/etc/lvmtab_p file or add the logical volume device files. This option is best
used in conjunction with the -v option.
-v Print verbose messages including names of the logical volumes.
-f infile Import the set of pv_paths held in the infile into the volume group. This option is
used as an alternative to specifying the pv_paths on the command line. Each
pv_path must appear on a new line in the infile. This option may not be used
together with the -s option.
WARNINGS
The
-N option may become obsolete in future releases.
No more than eight paths to any physical volume will be added to the
/etc/lvmtab or
/etc/lvmtab_p file. All other paths wll be omitted.
The following warnings apply to the
-s option, when importing disks with alternate paths:
The
vgimport command does not preserve the path ordering, when a volume group is exported and
then imported. This may cause the primary and alternate paths to be different on an importing system,
from that of an exported system. Also, additional alternate paths that were not configured on the
exported system may get discovered and configured on the importing system.
If the original primary path of a disk gets configured as an alternate path after the volume group is
imported, the order can easily be reverted by using
vgreduce to remove the primary path and then
reconfiguring the same path again as an alternate, using vgextend.
If additional alternate paths were added to the newly imported volume group, use
vgreduce to reduce
any alternate paths that were added but not required.
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)).
EXAMPLES
Import the volume group
/dev/vg01 that is located on physical disks /dev/dsk/c0t1d0 and
/dev/dsk/c0t3d0:
vgimport -v /dev/vg01 /dev/dsk/c0t1d0 /dev/dsk/c0t3d0
Activate the volume group following a successful import:
vgchange -a y vg01
Import the volume group /dev/vg01 using the mapfile file, /tmp/vg01.mymap. mymap was previ-
ously specified by the vgexport command on another system. The volume group, /dev/vg01,is
specified in mymap and will be used by the importing system only:
2 Hewlett-Packard Company 2 HP-UX 11i Version 3: September 2010