vxdg import

vxdg -g<DynamicDiskGroupName> [-n<NewDynamicDiskGroupName>] [-s |-d] [-f] [-C] [-o] timeout=<n>] import

Imports the dynamic disk group referenced in -g<DynamicDiskGroupName> for use on this computer. You can use its name from the original computer or rename it with -n<NewDynamicDiskGroupName>.

Note:

Microsoft Disk Management Disk Groups do not support the vxdg import command.

The following attributes apply:

-g<DynamicDiskGroupName>

The name of the disk group that is being imported.

-s

Imports the disk group as a cluster disk group. Using this command with the -s option is the only way you can convert a regular secondary disk group to a cluster disk group.

In VM 3.0 and 3.1, every time an import or deport command is used with a cluster disk group, it is necessary to use the -s option. With SFW, it is only required the first time you create the cluster disk group.

-d

Converts a cluster disk group to a regular disk group.

-f

Forces the command; use this option with caution. The -f option can be used to force the import of a cluster disk group when a minority of disks in the disk group are available.

-C

Clears the disk group's host ID. See more about the host ID below.

-o timeout=<n>

The -o timeout=<n> option will allow the operation to timeout in <n> seconds. This is useful for scripting purposes.

About a Disk Group Host ID

When a dynamic disk group is created or imported, all disks in the dynamic disk group are stamped with the computer's host ID. Typically, a dynamic disk group cannot be imported if any of its disks are stamped with a non-matching host ID. This mechanism provides a check in cases when disks can be accessed from more than one host.

In Volume Manager 3.0 and 3.1 and Veritas Storage Foundation for Windows, if a dynamic disk group is in use by one machine when another machine attempts to import this dynamic disk group again, the import will fail because the host IDs of these two machines are different.

If a dynamic disk group is successfully deported, the host ID is cleared and the group can be safely imported to another machine. In Volume Manager 3.0 and 3.1, it was necessary to use the -s option with the import command for a cluster disk group to retain its status as a cluster disk group. Otherwise, it became a regular disk group after it was imported. With SFW, you do not need the -s option. A cluster disk group remains a cluster disk group when it is imported. If you want to change a cluster disk group back to an ordinary disk group, you deport it and then import it with the -d option.

To move a dynamic disk group from one machine to another when the dynamic disk group was not cleanly deported (for example, if the host computer crashed), you must specify the -C option to clear the original host ID and stamp a new host ID onto the dynamic disk group.

Example

vxdg -gDynDskGrp1 -nAcctgDynDskGrp import

Imports the dynamic disk group previously known as "DynDskGrp1" and renames it "AcctgDynDskGrp."

More Information

Unable to bring a cluster disk group online when a minority of the disks in the disk group are available