VERITAS Volume Manager 3.1 Administrator's Guide
Disk Tasks
Removing Disks
Chapter 4184
remove it from Volume Manager control completely, as follows:
# vxdisk rm
devicename
To remove c1t0d0 from Volume Manager control, useone of the following
commands. On systems without a bus, use the command:
# vxdisk rm c1t0d0
On systems with a bus, use the command:
# vxdisk rm c1b0t0d0
Removing a Disk with Subdisks
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 the
vxdiskadm program to remove a disk, you can choose to move volumes off
that disk. To do this, run the vxdiskadm program and select item 3
(Remove a disk) from the main menu.
If the disk is used by some subdisks, the following 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)
If you choose y, then all subdisks are moved off the disk, if possible. Some
subdisks are not movable. A subdisk may not be movable for one of the
following reasons:
• 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 the vxdiskadm program cannot move some subdisks, remove some
plexes from some disks to free more space before proceeding with the
disk removal operation. See Chapter 6, Volume Tasks, for information on
how to remove volumes and plexes.
Removing a Disk as a Hot-Relocation Spare
While a disk is designated as a spare, the space on that disk is not used