Veritas Volume Manager 5.1 SP1 Administrator"s Guide (5900-1506, April 2011)

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
You cannot use this method to rename the active boot disk group because it
contains volumes that are in use by mounted file systems (such as /). To rename
the boot disk group, boot the system from an LVM root disk instead of from the
VxVM root disk. You can then use the above methods to rename the boot disk
group.
See Rootability on page 117.
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
1
On the original host, identify the disk group ID of the bootdg disk group to
be imported with the following command:
# vxdisk -g bootdg -s list
dgname: rootdg
dgid: 774226267.1025.tweety
In this example, the administrator has chosen to name the boot disk group
as rootdg. The ID of this disk group is 774226267.1025.tweety.
This procedure assumes that all the disks in the boot disk group are accessible
by both hosts.
2
Shut down the original host.
Creating and administering disk groups
Renaming a disk group
242