VERITAS Volume Manager 3.1 Administrator's Guide

Disk Group Tasks
Renaming a Disk Group
Chapter 5216
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, the Volume
Manager allows you to rename a disk group during import or deport.
For example, because every system running the Volume Manager 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, do the following:
# vxdg [-t] -n
newdg_name
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_name
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_name
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 root disk group to
be imported with the following command:
# vxdisk -s list
This command results in output that includes the following.
dgname: rootdg
dgid: 774226267.1025.tweety
Step 2. On the importing host, import and rename the rootdg disk group with