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

You can also use the vxdiskadd command to add a disk to a disk group. Enter the
following:
# vxdiskadd c1t1d0
where c1t1d0 is the device name of a disk that is not currently assigned to a disk
group. The command dialog is similar to that described for the vxdiskadm
command.
See Adding a disk to VxVM on page 109.
Removing a disk from a disk group
Before you can remove the last disk from a disk group, you must disable the disk
group.
See Disabling a disk group on page 263.
As an alternative to disabling the disk group, you can destroy it.
See Destroying a disk group on page 264.
If a disk contains no subdisks, you can remove it from its disk group with the
following command:
# vxdg [-g diskgroup ] rmdisk diskname
For example, to remove mydg02 from the disk group mydg, enter the following:
# vxdg -g mydg rmdisk mydg02
If the disk has subdisks on it when you try to remove it, the following error message
is displayed:
VxVM vxdg ERROR V-5-1-552 Disk diskname is used by one or more
subdisks
Use -k to remove device assignment.
Using the -k option lets you remove the disk even if it has subdisks.
See the vxdg(1M) manual page.
Warning: Use of the -k option to vxdg can result in data loss.
After you remove the disk from its disk group, you can (optionally) remove it from
VxVM control completely. Enter the following:
# vxdiskunsetup devicename
Creating and administering disk groups
Removing a disk from a disk group
220