VERITAS Volume Manager 3.1 Administrator's Guide
Disk Tasks
Removing Disks
Chapter 4 183
Step 7. At the following verification prompt, press Return to continue:
Requested operation is to remove disk disk01 from group
rootdg.
Continue with operation? [y,n,q,?] (default: y)
The vxdiskadm utility removes the disk from the disk group and displays
the following success message:
Removal of disk disk01 is complete.
You can now remove the disk or leave it on your system as a replacement.
Step 8. 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 No Subdisks
A disk that contains no subdisks can be removed from its disk group with
the following 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 the following
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 the vxdg command 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.
NOTE Use of the -k option to the vxdg command can result in data loss.
Once the disk has been removed from its disk group, you can (optionally)