Only one disk group of a given name can exist per system. It is not possible to import or deport a disk group when the target system already has a disk group of the same name. To avoid this problem, VxVM allows you to rename a disk group during import or deport.
# vxdg [-t] -n newdg import diskgroup
If the -t option is included, the import is temporary and does not persist across reboots. In this case, the stored name of the disk group remains unchanged on its original host, but the disk group is known by the name specified by newdg to the importing host. If the -t option is not used, the name change is permanent.
# vxdg -t -n mytempdg import mydg
# vxdg [-h hostname] -n newdg deport diskgroup
# vxdg -h jingo -n myexdg deport mydg
You cannot use this method to rename the boot disk group because it contains volumes that are in use by mounted file systems (such as /). To rename the boot disk group, you must first unmirror and unencapsulate the root disk, and then re-encapsulate and remirror the root disk in a different disk group. This disk group becomes the new boot disk group.
To temporarily move the boot disk group, bootdg, from one host to another (for repair work on the root volume, for example) and then move it back
# vxdisk -g bootdg -s list dgname: rootdg dgid: 774226267.1025.tweety
# vxdg -tC -n newdg import diskgroup
The -t option indicates a temporary import name, and the -C option clears import locks. The -n option specifies an alternate name for the rootdg being imported so that it does not conflict with the existing rootdg. diskgroup is the disk group ID of the disk group being imported (for example, 774226267.1025.tweety).
# vxdg -h hostname deport diskgroup