• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 408
  • Last Modified:

VMWare ESXi v4.1 thin provisioning

Recently I learned that you can over provision your VM's and the local storage when utilizing thin provisioning.  Since then I've been trying to clean up one of my local LUN's...  I have one local LUN that shows only 17 GBs available.  One of the virtual disks that resides on this local LUN I recently cleared up 100 GBs...  But...  I don't see it reflect in the amount available.  Is this normal?
0
gopher_49
Asked:
gopher_49
  • 8
  • 8
1 Solution
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Yes its normal some SANs now have additional plugins and VAAI support to reclaim storage otherwise its move the VM storage vMotion if applicable once the data store is clear destroy it and recreate
0
 
gopher_49Author Commented:
I'm using local LUNs.   I'm about to have a license to vmotion.   Will vmotion work when moving to another local LUN?   I have a Dell 2950 and running v4.1
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
vMotion or Storage vMotion - only storage vMotion will move the VM from one datastore to another, with the VM Live and running.

otherwise shutdown VM, and Migrate.
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
gopher_49Author Commented:
I'll have both.   So..   I shouldn't have compatibility issues with my server being a Dell 2950?  Wasn't sure if certain procs or main boards are required.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
No issues.
0
 
gopher_49Author Commented:
Does this mean since I deleted 100 GBs of data from the volume that only shows 17GBs available that I can actually add 100 GBs back and it not dismount and that only the reporting is off?  Or   Do I need to move one of the disks off of this volume to allow more data to be copied without the concern of the volume dismounting?
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
If you check from the console or SSH does it show this storage space?
0
 
gopher_49Author Commented:
What are the commands from checking at the console?
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
vdf and df

to reclaim space on some sans, you would need to move ALL the data off the volume (LUN), destroy the LUN, and re-create a new LUN.

all the free space would then be back on the new LUN.

Was the 100GB overprovisioned storage, that you didn't have? So by recovering it from the VM, would have reduce the vmdk from 117 to 17GB.

but if you had 17GB of storage on the datastore before, you are still going to have 17GB after!

because the 100GB overallocation, does not really exist!
0
 
gopher_49Author Commented:
I created the volume when I had plenty of storage..  I delete 100 GBs from a VM that is on this datastore LUN.  I was hoping to see it give me storage back.  

I'm going to migrate many VM's off of this datastore.  I'm thinking then I'll free up some space.  I'll use vmotion next weekend to accomplish this.  I think that will free up space, correct?
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
It may do!

But we have seen some SANs not give up the storage!

Was that 100GB vmdk, or 100GB in the VM?

was it a Thin Disk?
0
 
gopher_49Author Commented:
It's a thin disk and I deleted 100 GBs from within the VM itself.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
okay, that is not going to change the used space on the datastore.

because the "0"s have already been changed to "1".

thin disks do not deflate, when data has been removed.

If you want to recover the storage space "e.g. reclaim" easiest method is to V2V using VMware vCenter Converter Standalone 5.5.

HOW TO:  P2V, V2V for FREE - VMware vCenter Converter Standalone 5.5

if you are licensed for Storage vMotion, you can change to Thick, complete a Storage vMotion, and then do another Storage vMotion, and change to Thin. (that will also do it!)
0
 
gopher_49Author Commented:
If I change to Thick it will fill up the drive? Right?  What if I vMotion to a different ESXi server and datastore?
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
That's correct, if you have it set to thin, e.g. 500GB, thick will create a 500GB vmdk.

if you storage vMotion, and change to thick, you will need to ensure, it fits on the datastore!

otherwise V2V, - Converter, specify a new thin or thick disk size at conversion.
0
 
compdigit44Commented:
If the guest  OS when you deleted a lot of data from is Windows based you could try to install the Flig Reclaim guest OS tool on the VM...

http://labs.vmware.com/flings/guest-reclaim

It's a 50/50 shot at working..
0
 
gopher_49Author Commented:
Also if you move the VM to a different and/or disk to a different datastore it sometimes cleans up.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 8
  • 8
Tackle projects and never again get stuck behind a technical roadblock.
Join Now