User Tools

Site Tools


netapp:volume_delete

Delete a netapp volume

Introduction

This article details how to delete a netapp volume, especially the steps regarding snapmirror replication and the volume recovery feature.

Procedure

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.

Deactivate snapmirror replication

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 Delete.

You still have to delete this destination volume for the replication on this netapp.

Unmount the volume

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>

Set the volume offline

volume offline -vserver <svm_name> -volume <volume_name>

Delete the volume

volume delete -vserver <svm_name> -volume <volume_name>

Force disk space restitution (optional)

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.

References

netapp/volume_delete.txt · Last modified: 2018/09/25 15:00 (external edit)