This article details how to delete a netapp volume, especially the steps regarding snapmirror replication and the volume recovery feature.
Deleting a netapp volume requires to unmount the volume, set it offline then you can delete it. If the volume was protected with snapmirror, this replication needs to be broken first.
This section only applies if the replication is done at the volume level with DP. If it happens at the svm level with DR ignore what follows.
Is is recommended to perform this operation from the webui, because it is capable to release the snapmirror state from the source netapp. Doing the same operation in cli is a little more complex with commands to enter on both netapps.
On the destination netapp, go to the
Protection menu, then
Relationships. Right clic the replication line and
You still have to delete this destination volume for the replication on this netapp.
Make sure the the volume or any of its snapshots is not longer mounted on any client machine before proceeding.
volume unmount -vserver <svm_name> -volume <volume_name>
volume offline -vserver <svm_name> -volume <volume_name>
volume delete -vserver <svm_name> -volume <volume_name>
Netapp filers have a volume recovery queue functionality, deleted volumes are kept for 12 hours by default. Therefore the disk space isn't immediately recovered in the aggregate, if you need it immediately here is what to do. If you don't need it immediately please ignore this section and let the netapp reclaim the space in 12 hours.
set diag volume recovery-queue show volume recovery-queue purge -vserver <svm_name> -volume <volume_name>
This deletion is a background job, it will take several minutes - maybe hours - to reclaim the disk space completely.