HP-UX Reference (11i v3 07/02) - 1M System Administration Commands N-Z (vol 4)

v
vgimport(1M) vgimport(1M)
-p Preview the actions to be taken but do not update the
/etc/lvmtab 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 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 sys-
tem 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, /tmp/vg01.mymap
. mymap was previously
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:
vgimport -v -m /tmp/vg01.mymap /dev/vg01 \
/dev/dsk/c0t5d0 /dev/dsk/c0t7d0
Import the volume group /dev/vg02 using the mapfile, /tmp/vg02.mymap. mymap was previously
specified by the
vgexport command on another system. The volume group, /dev/vg02 , is specified in
mymap and will be shared among the exporting system, this system, and other systems importing the
volume group as shared:
vgimport -v -s -m /tmp/vg02.mymap /dev/vg02
Import the volume group /dev/vg02 using the infile, /tmp/vg02.infile. infile was previously
specified by the
vgexport command on another system, and it assumes that pv_paths in the
/tmp/vg02.infile are identical on both systems.
vgimport -v -f /tmp/vg02.infile /dev/vg02
HP-UX 11i Version 3: February 2007 2 Hewlett-Packard Company 639