VERITAS Volume Manager 4.1 Administrator's Guide
Administering Disks
Removing Disks
Chapter 294
VxVM NOTICE V-5-2-284 Requested operation is to remove disk mydg01 from group
mydg.
Continue with operation? [y,n,q,?] (default: y)
The vxdiskadm utility removes the disk from the disk group and displays the
following success message:
VxVM INFO V-5-2-268 Removal of disk mydg01 is complete.
You can now remove the disk or leave it on your system as a replacement.
Step 5. At the following prompt, indicate whether you want to remove other disks (y) or
return to the vxdiskadm main menu (n):
Remove another disk? [y,n,q,?] (default: n)
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 2
(Remove a disk) from the main menu.
If the disk is used by some subdisks, the following message is displayed:
VxVM ERROR V-5-2-369 The following volumes currently use part of disk disk02:
home usrvol
Subdisks must be moved from mydg01 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 in the subdisk’s disk group.
• 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 “Removing a
Volume” on page 295 and “Taking Plexes Offline” on page 219 for information on how to
remove volumes and plexes.
Removing a Disk with No Subdisks
To remove a disk that contains no subdisks from its disk group, run the vxdiskadm program
and select item 2 (Remove a disk) from the main menu, and respond to the prompts as shown
in this example to remove mydg02: