User Tools

Site Tools


netapp:volume_delete

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

netapp:volume_delete [2018/09/25 15:00] (current)
Line 1: Line 1:
 +====== 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.
 +
 +<​code>​
 +volume unmount -vserver <​svm_name>​ -volume <​volume_name>​
 +</​code>​
 +
 +==== Set the volume offline ====
 +
 +<​code>​
 +volume offline -vserver <​svm_name>​ -volume <​volume_name>​
 +</​code>​
 +
 +==== Delete the volume ====
 +
 +<​code>​
 +volume delete -vserver <​svm_name>​ -volume <​volume_name>​
 +</​code>​
 +
 +==== 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.
 +
 +<​code>​
 +set diag
 +volume recovery-queue show
 +volume recovery-queue purge -vserver <​svm_name>​ -volume <​volume_name>​
 +</​code>​
 +
 +This deletion is a background job, it will take several minutes - maybe hours - to reclaim the disk space completely.
 +
 +===== References =====
 +
 +https://​whyistheinternetbroken.wordpress.com/​2016/​03/​11/​cdot-volume-recovery/​
netapp/volume_delete.txt ยท Last modified: 2018/09/25 15:00 (external edit)