Deleting a volume
You can use the command-line interface (CLI) or the management GUI to delete a volume.
Use the rmvolume command or the management GUI to delete an existing volume and all mirrored copies. In addition, all data on the volume is deleted. In the management GUI, select and right-click the volume to delete and select Delete.
A warning displays if the volume is currently used with any dependant objects or actions. Dependent objects, like host mappings or Copy Services relationships, and dependant actions, like a running backup operation, are displayed in separate tiles in the management GUI. To confirm the deletion of these volumes with dependencies, click the check box on each tile and select Delete. If the check box is not selected, the volume is not deleted.
If the volume does not have any dependent objects or actions, it is deleted.
The extents that make up the volume are returned to the pool of free extents that are available on the pool. If any remote copy, FlashCopy or host mappings still exist for this volume, the delete fails. If the volume is mapped to hosts, use the -removehostmappings parameter to remove any host mappings to that volume. Similarly, you can use the -removercrelationships and the -removefcmaps parameters to delete any existing remote copy relationships or FlashCopy mappings when the volume is deleted.
The volume protection feature can be enabled to prevent a volume from being deleted if it receives I/O within a defined time period.
- Enter the following command to delete a volume and all existing host
mappings:
rmvolume -removehostmappings myvolwhere myvol is the volume name for the volume that you are deleting.
To remove a HyperSwap volume from the command-line interface, complete these steps:
- Log in as a user with the VASA Provider security role.
- Enter the following command to delete a
volume:
rmvolume highavailabilityvolwhere highavailabilityvol is the volume name that you are deleting.