VERITAS Volume Manager 3.1 Administrator's Guide
Volume Tasks
Removing a Volume
Chapter 6 247
Removing a Volume
Once a volume is no longer necessary (it is inactive and archived, for
example), remove the volume and free up the disk space for other uses.
Before removing a volume, refer to the following procedure:
Step 1. Remove all references to the volume.
Step 2. If the volume is mounted as a file system, unmount it with the command:
# umount /dev/vx/dsk/
volume_name
Step 3. If the volume is listed in /etc/fstab, remove its entry.
Step 4. Make sure that the volume is stopped with the command:
# vxvol stop
volume_name
The vxvol stop command stops all VM activity to the volume.
After following these steps, remove the volume with one of the following
commands:
# vxedit rm
volume_name
# vxedit -rf rm
volume_name
The -r option indicates recursive removal, which means the removal of
all plexes associated with the volume and all subdisks associated with
those plexes. The -f option forces removal, and is necessary if the
volume is enabled.
NOTE The -r option of the vxedit command removes multiple objects.
You can also remove an entire volume with the vxassist command. Use
the keywords remove and volume and provide the volume name on the
command line as shown in the following example:
# vxassist remove volume
volume_name