Veritas Volume Manager 4.1 Administrator's Guide (HP-UX 11i v3, February 2007)

Renaming a Disk Group
142 VERITAS Volume Manager Administrators Guide
Once the import is complete, 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)
Alternatively, you can use the vxdg command to import a disk group:
# vxdg import diskgroup
Renaming a Disk Group
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.
To rename a disk group during import, use the following command:
# 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.
For example, this command temporarily renames the disk group, mydg, as mytempdg on
import:
# vxdg -t -n mytempdg import mydg
To rename a disk group during deport, use the following command:
# vxdg [-h hostname] -n newdg deport diskgroup
When renaming on deport, you can specify the -h hostname option to assign a lock to an
alternate host. This ensures that the disk group is automatically imported when the
alternate host reboots.
For example, this command renames the disk group, mydg, as myexdg, and deports it to
the host, jingo:
# vxdg -h jingo -n myexdg deport mydg