Veritas Volume Manager 5.0.1 Administrator's Guide, HP-UX 11i v3, First Edition, November 2009

Moving disks between disk groups
To move a disk between disk groups, remove the disk from one disk group and
add it to the other. For example, to move the physical disk c0t3d0 (attached with
the disk name salesdg04) from disk group salesdg and add it to disk group mktdg,
use the following commands:
# vxdg -g salesdg rmdisk salesdg04
# vxdg -g mktdg adddisk mktdg02=c0t3d0
Warning: This procedure does not save the configurations nor data on the disks.
You can also move a disk by using the vxdiskadm command. Select Remove a disk
from the main menu, and then select Add or initialize a disk.
The preferred method of moving disks between disk groups preserves VxVM
objects, such as volumes, that are configured on the disks.
See Moving objects between disk groups on page 234.
Moving disk groups between systems
An important feature of disk groups is that they can be moved between systems.
If all disks in a disk group are moved from one system to another, then the disk
group can be used by the second system. You do not have to re-specify the
configuration.
To move a disk group between systems
1
Confirm that all disks in the diskgroup are visible on the target system. This
may require masking and zoning changes.
2
On the source system, stop all volumes in the disk group, then deport (disable
local access to) the disk group with the following command:
# vxdg deport diskgroup
3
Move all the disks to the target system and perform the steps necessary
(system-dependent) for the target system and VxVM to recognize the new
disks.
This can require a reboot, in which case the vxconfigd daemon is restarted
and recognizes the new disks. If you do not reboot, use the command vxdctl
enable to restart the vxconfigd program so VxVM also recognizes the disks.
Creating and administering disk groups
Moving disks between disk groups
216