HP-UX Reference (11i v2 03/08) - 1M System Administration Commands N-Z (vol 4)
v
vgimport(1M) vgimport(1M)
The designated primary and alternate link might not be the same as it was configured before.
Alternate links will be added to the importing volume group even if they might not be configured in
the volume group initially.
If the original primary path of a disks become an alternate path after the newly imported volume group
entry is created in
/etc/lvmtab, the order can be easily reverted by using
vgreduce to remove the
primary path and then use
vgextend to add the path back again.
If additional alternate paths were added to the newly imported volume group, use
vgreduce to reduce
any alternate paths that were added but they were not needed.
ADDITIONAL WARNINGS
Starting at 10.20, the
vgimport command is supporting additional EMC Symmetrix disk product func-
tionality (see vgchgid(1M)). The vgimport command will be enforcing a new rule such that the group of
disks to be imported must have the same EMC Symmetrix attributes. Clearly this checking only applies
if the disks involved in the operation are EMC Symmetrix. Should the command find an incompatibility,
a message of the following type will be produced:
"Attempt to mix incompatible EMC Symmetrix disk types failed. Physical volume /dev/dsk/cxtxdx is
EMC BCV disk, but physical volume /dev/dsk/cxtxdx is a standard disk. Please consult the EMC
Symmetrix documentation, if applicable".
If duplicate VGIDs (volume group id) were found in different types of EMC Symmetrix disks during the
vgimport -s operation, the above error message will appear, and the command will fail. Please refer
to vgchgid(1M) on how to modify VGID on the EMC Symmetrix disk.
Note that EMC Symmetrix disks which do not have any of the additional attributes can still be mixed
with non-EMC disks in a single volume group.
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.mapfile /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.
vgimport -v -f /tmp/vg02.infile /dev/vg02
SEE ALSO
vgexport(1M), vgscan(1M).
Section 1M−−872 Hewlett-Packard Company − 2 − HP-UX 11i Version 2: August 2003