VERITAS Volume Manager 4.1 Administrator's Guide
Chapter 4 165
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.
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 this case, the stored name of the disk group remains
unchanged on its original 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:
Step 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
Step 2. On the importing host, import and rename the rootdg disk group with
this command: