Importing a disk group

Importing a disk group enables access by the system to a disk group. To move a disk group from one system to another, first disable (deport) the disk group on the original system, and then move the disk between systems and enable (import) the disk group.

By default, VxVM recovers and starts any disabled volumes in the disk group when you import the disk group. To prevent VxVM from recovering the disabled volumes, turn off the automatic recovery feature. For example, after importing the disk group, you may want to do some maintenance before starting the volumes.

See Setting the automatic recovery of volumes.

To import a disk group

  1. To ensure that the disks in the deported disk group are online, use the following command:
    # vxdisk -s list
  2. From the vxdiskadm main menu, select Enable access to (import) a disk group.
  3. At the following prompt, enter the name of the disk group to import (in this example, newdg):
    Select disk group to import [<group>,list,q,?] (default: list)

    When the import finishes, the vxdiskadm utility displays the following success message:

    VxVM INFO V-5-2-374 The import of newdg was successful.
  4. At the following prompt, indicate whether you want to import another disk group (y) or return to the vxdiskadm main menu (n):
    Select another disk group? [y,n,q,?] (default: n)

    You can also use the following vxdg command to import a disk group:

    # vxdg import diskgroup

    You can also import the disk group as a shared disk group.

    See Importing disk groups as shared.