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

For example, to remove the disk c1t0d0 from VxVM control, enter the following:
# vxdiskunsetup c1t0d0
You can remove a disk on which some subdisks of volumes are defined. For
example, you can consolidate all the volumes onto one disk. If you use vxdiskadm
to remove a disk, you can choose to move volumes off that disk. To do this, run
vxdiskadm and select Remove a disk from the main menu.
If the disk is used by some volumes, this message is displayed:
VxVM ERROR V-5-2-369 The following volumes currently use part of
disk mydg02:
home usrvol
Volumes must be moved from mydg02 before it can be removed.
Move volumes to other disks? [y,n,q,?] (default: n)
If you choose y, all volumes are moved off the disk, if possible. Some volumes may
not be movable. The most common reasons why a volume may not be movable
are as follows:
There is not enough space on the remaining disks.
Plexes or striped subdisks cannot be allocated on different disks from existing
plexes or striped subdisks in the volume.
If vxdiskadm cannot move some volumes, you may need to remove some plexes
from some disks to free more space before proceeding with the disk removal
operation.
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.
221Creating and administering disk groups
Moving disks between disk groups