Data ONTAP Discussions

space reclamation

Hello All,


I'm new to NetApp so I'm asking this question.  I have a storage cluster runnin 8.3P1. I need to run space reclaim on the entire cluster to attempt to reclaim space. 


I can barely find any information on the process, much less the ACTUALLY commands to run the reclaim. Can is be done only by volume? Can it be ran by an aggregate level? Can you run it on all volumes at once?


No matter the answer, what is the actual command to run the reclaim??


Thanks in advance!


Re: space reclamation

Space reclimation is done per LUN.  In order to reclaim the space you will need to make sure snapdrive is installed on the host and then run the reclimation process from snapdrive. 

Re: space reclamation

I'm not using Snap drive. The clients are ESXI servers and I would assume NetApp requires VAAI be installed to perform and uNMAP from ESXI?


Other vendors require that, as the storagr won't know what the client is requesting or wanting to happening.



Re: space reclamation

You are correct, with ESXi there is no snapdrive.  If you have ESXi 6.5 or newer you can enable space alloction on on the LUN.  Follow the link below and it will show you have to enable it.  One thing the documentation calls out is taking the LUN offline before enabling space allocation.  I've change multiple LUNS in the past whithout taking them offline, do so at your own risk.


Re: space reclamation

It seems that link doesn't have a "solution" and therefor there is no information on how to enable reclamation.

Re: space reclamation

When you open the link, go to the top right and login.  Once you login you can either go back or click on the recently opened link.  Here's a snipit from the link.


Re: space reclamation

Space Reclamation only applies to FC/iSCSI LUNs. If you are using NFS, then it is always done anyway automatically.

For more info on VAAI, please see:


Re: space reclamation

Thanks much for the help!

Re: space reclamation

One last question. I see the spce-alloc can onlt be ran with the LUN offline? If so, that really sucks.

Re: space reclamation

I've ran this on LUNS that have been online multiple times.  That being said I would test it on a few non-production LUNS first and verify.