HP-UX Reference (11i v2 07/12) - 1M System Administration Commands N-Z (vol 4)
v
vgimport(1M) vgimport(1M)
must appear on a new line in the infile. This option may not be used together with
the
-s option.
WARNINGS
In order to import a logical volume greater than 2 terabytes, the kernel must be updated to support this
feature, and the corresponding feature enabling patch must be installed.
In order to import a striped and mirrored logical volume, the kernel must be updated to support this
feature, and the corresponding feature enabling patch must be installed.
The following warnings apply to the -s option when importing devices such as (NIKE) or disks with alter-
nate path:
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.
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 Sym-
metrix 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.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
HP-UX 11i Version 2: December 2007 Update − 2 − Hewlett-Packard Company 627