VERITAS Volume Manager 3.5 Administrator's Guide (September 2002)
Removing a Disk from a Disk Group
112 VERITAS Volume Manager Administrator’s Guide
Removing a Disk from a Disk Group
A disk that contains no subdisks can be removed from its disk group with this command:
# vxdg [-g groupname] rmdisk diskname
where the disk group name is only specified for a disk group other than the default,
rootdg.
For example, to remove disk02 from rootdg, use this command:
# vxdg rmdisk disk02
If the disk has subdisks on it when you try to remove it, the following error message is
displayed:
vxdg:Disk diskname is used by one or more subdisks
Use the -k option to vxdg to remove device assignment. Using the -k option allows you
to remove the disk even if subdisks are present. For more information, see the vxdg(1M)
manual page.
Caution Use of the -k option to vxdg can result in data loss.
Once the disk has been removed from its disk group, you can (optionally) remove it from
VxVM control completely, as follows:
# vxdisk rm devicename
For example, to remove c1t0d0 from VxVM control, use these commands:
# vxdisk rm c1t0d0
You can remove a disk on which some subdisks 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 item 2
(Remove a disk) from the main menu.
If the disk is used by some subdisks, this message is displayed:
The following subdisks currently use part of disk disk02:
home usrvol
Subdisks must be moved from disk02 before it can be removed.
Move subdisks to other disks? [y,n,q,?] (default: n)