VMware Cloud Community
srangama
Contributor
Contributor

How to do Space Reclaimation from a Thin Provisioned LUN using VAAI features?

Hello experts,

I have a VAAI feature supported storage and I want to know how to do space reclaimation from a FC Thinly Provisioned LUN. Basically what we did was, we moved (i.e. Storage vMotion) some Virtual Machines to a new Datastore and some were deleted from the old Datastore.

Although, vCenter reported that space was free in the Datastores, in the storage reported that spcae is still utilized.

In that case, How do I reclaim that Dead Space? What commands do I need to issue? Please help.. Smiley Happy Note that I am using both ESX5.0U1 and ESXi5.1.

Actually, I want that dead space to be reclaimed automatically rather than issuing commands manually at ESXi Shell. Here I am refering to the command  vmkfstools -y nn.

Is there any possible way of automating this process? I mean, automatically reclaimed dead space from  thin provisioned FC LUNs? Is there any specific storage system that has VAAI features and also support automatic block reclaimation feature??

Thanks

0 Kudos
3 Replies
ArvindBhargava
Enthusiast
Enthusiast

check out below link

download3.vmware.com/software/vmw-tools/guestreclaim/GuestReclaimReadMe.pdf

0 Kudos
mcowger
Immortal
Immortal

This document only helps inside the guest, not when VMDKs have been deleted like what the OP is talking about.

--Matt VCDX #52 blog.cowger.us
0 Kudos
mcowger
Immortal
Immortal

Using the manual vmkfstools method is the only way to do this currently.

No array supports it automatically, because VMware has not provided any API for vendors to hook into and do it automatically.

So, if you want to automate it, you'll have to do it youself with something like 'cron'.  It would be pretty simple:

cd /vmfs/volumes

for volume in `ls`; do

     cd $volume

     vmkfstools -y 90

     cd ..

done


--Matt VCDX #52 blog.cowger.us
0 Kudos