VERITAS Volume Manager 3.5 Administrator's Guide (September 2002)

Renaming a Disk Group
116 VERITAS Volume Manager Administrator’s Guide
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 diskgroupwhen the target system alreadyhas adiskgroupof thesame name. To
avoid this problem, VxVM allows you to rename a disk group during import or deport.
For example, because every system running VxVM must have a single rootdg default
disk group, importing or deporting rootdg across systems is a problem. There cannot be
two rootdg disk groups on the same system. This problem can be avoided by renaming
the rootdg disk group during the 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 thiscase, thestored name of the diskgroup remains unchangedon itsoriginal host,but
the disk group is known as newdg to the importing host. If the -t option is not used, the
name change is permanent.
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.
To temporarily move the rootdg disk group from one host to another(for repair work on
the root volume, for example) and then move it back, use the following procedure:
1. On the original host, identify the disk group ID of the rootdg disk group to be
imported with the following command:
# vxdisk -s list
This command results in output such as the following:
dgname: rootdg
dgid: 774226267.1025.tweety
2. On the importing host, import and rename the rootdg disk group with this
command:
# vxdg -tC -n newdg import diskgroup