2015-07-06 07:44 AM
Quick run up of our environment:
VMware V5.0.0 Update 3 Build 1918656 with vCenter 5.0.0 U3.
NetApp FAS8020 running Data ONTAP 8.2.1 7-Mode using Thin Provisioning Flex Volumes
Using VSC 4.2.2 plugin
For purposes of test this piece I created a thin provisioned 100GB LUN with a 55GB thin provisioned VM
I am looking to use the unmap to reclaim space from our thin provisioned volumes on our NetApp, we are using thin provisioned VM disks however some are thick provisioned VMs as well. When I mean the volume is thin provisioned I mean when you setup a new volume on the NetApp array and tick the option to thin provision the volume as shown below:
however I have run into a few problems and am struggling to understand why I am unable to reclaim space on a test thin provisioned volume I created.
As a test I storage vmotioned a VM no longer needed to a test volume which utilised the space on the LUN, I then storage vmotioned it back to another volume. it removed the space on the VMware datastore side however not on the volume capacity on the storage. However having a read of VAAI in detail I am unsure why the below is showing as thin provisioning status: unknown. I can confirm the volume is thin provisioned and NOT thick provisioned.
When looking at the VAAI status it shows the delete as unsupported.
So I attempt to use the vmkfstools command to reclaim the space:
When I tried the vmkfstools -y percentage_of_deleted_blocks_to_reclaim command it looked like it worked, tried it few different times with different %
Volume status on NetApp side shows that the space hasn't been recovered and still shows at 39% used, with 61.28GB even though there are no VMs on this volume.
On VMware side, it shows as space feed as expected.
Does anyone know why I might be seeing this behaviour? I know on earlier versions of 5.0 there was issues and it has to be run manually however I am on a much later release of 5.0 and I thought the vmfkstool utility allowed it to be run manually?
Any help would be most appreciated.
Solved! SEE THE SOLUTION
2015-07-07 01:22 AM
I have found this article which relates to what I am seeing:
When I check the VMware compatibility matrix it is showing as VAAI thin provisioning space reclamation is not supported. I am using a FAS8020 array, I would have thought that this SAN considering the age would support this feature? or is it an issue elsewhere with the environment? Looking at whether I upgrade to a newer version of ONTAP or VMware ESXi it doesn't make any difference.
Is the Thin Provisioning space reclamation only a feature on very high end SANs?
Is there anything I can use to reclaim space?
2015-11-24 03:52 PM
You might want to check this link,
It says that the configuration you have is supported for space reclaimation unless you are using NFS.
If you are running ontap version 8.2 or higher you need to set space_alloc on the lun to enable space reclaimation.
2015-11-27 07:07 AM
Its' been a while since this post, but yes your last post I managed to find and as you say that was the exact issue, by default that setting was off on the filer.
I have to say the whole process was a nightmare, long winded using vSphere 5. My understanding is that this issue is now far better with vSphere6, we have just recently implemented this in our environment so I am eager to see if this process is better but this setting lun set space_alloc <lun path> enabled still needs to be set on the filer before any reclaim of space takes place.