VERITAS Storage Foundation 4.1 Intelligent Storage Provisioning Administrator's Guide
Removing a Volume
62 VERITAS Storage Foundation ISP Administrator’s Guide
For example, the following command evacuates disks mydg01 and mydg02 on which volume,
vol01, is configured, and specifies disks mydg03 and mydg04 as destination disks:
# vxvoladm -g mydg evacuate disk vol01 !mydg01 !mydg02 \
use_storage=’allof("DM"="mydg03","DM"="mydg04")’
Not only disks can be evacuated. You can also specify subdisks, columns, logs, mirrors or entire
volumes to be evacuated. In these cases, you can use the evac_storage attribute to specify
which storage is to be evacuated. In the following example, all columns of the volume are
evacuated that have disks on controller c1:
# vxvoladm -g mydg evacuate column vol01 \
evac_storage=’"Controller"="c1"’
The next example evacuates any disks in columns 0 or 1 that lie on controller c2:
# vxvoladm -g mydg evacuate column vol01 column=0,1 \
evac_storage=’"Controller"="c1"’
This command specifies that both columns 0 and 1 are to be evacuated to disks on controller c2:
# vxvoladm -g mydg evacuate column vol01 column=0,1 \
use_storage=’"Controller"="c2"’
In the final example, volume data is evacuated from subdisks that are connected to controller c1 to
disks on any other controller:
# vxvoladm -g mydg evacuate subdisk vol01 \
evac_storage=’allof("Controller"="c1")’ \
use_storage=’noneof("Controller"="c1")’
If the specified volume is currently enabled, the data in enabled plexes and their component
enabled plexes is moved without interrupting the availability of the volume and without changing
its redundancy. Subdisks that are within detached plexes, disabled plexes, detached logs, or
RAID-5 subdisks are moved without any attempt to recover the data.
If the specified volume is not currently enabled, stale or offline plexes are moved without recovery.
The evacuation fails if a non-enabled volume contains other subdisks that need to be moved.
Removing a Volume
Once a volume is no longer required, you can use the following command to delete it and make its
storage available for re-use:
# vxvoladm [-g diskgroup] remove volume volume
For example, the following command removes the volume, vol1:
# vxvoladm -g mydg remove volume vol1