Veritas Volume Manager 5.0 Administrator's Guide (September 2006)
173Creating and administering disk groups
Renaming a disk group
In the next example, none of the disks (neither cloned nor non-cloned) have been
imported:
# vxdisk -o alldgs list
DEVICE TYPE DISK GROUP STATUS
EMC0_4 auto:cdsdisk - (mydg) online
EMC0_6 auto:cdsdisk - (mydg) online
EMC0_8 auto:cdsdisk - (mydg) online udid_mismatch
EMC0_15 auto:cdsdisk - (mydg) online udid_mismatch
EMC0_18 auto:cdsdisk - (mydg) online
EMC0_24 auto:cdsdisk - (mydg) online udid_mismatch
To import only the cloned disks that have been tagged as t1 into the mydg disk group:
# vxdg -o useclonedev=on -o tag=t1 -o updateid import mydg
# vxdisk -o alldgs list
DEVICE TYPE DISK GROUP STATUS
EMC0_4 auto:cdsdisk - (mydg) online
EMC0_6 auto:cdsdisk - (mydg) online
EMC0_8 auto:cdsdisk mydg03 mydg online clone_disk
EMC0_15 auto:cdsdisk - (mydg) online udid_mismatch
EMC0_18 auto:cdsdisk - (mydg) online
EMC0_24 auto:cdsdisk mydg01 mydg online clone_disk
As in the previous example, the cloned disk EMC0_15 is not tagged as t1, and so it is not
imported.
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.