Solved

VMWare ESXi v4.1 thin provisioning

Posted on 2013-12-06
17
392 Views
Last Modified: 2014-01-02
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
Comment
Question by:gopher_49
  • 8
  • 8
17 Comments
 
LVL 117
ID: 39702479
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
 

Author Comment

by:gopher_49
ID: 39702524
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
 
LVL 117
ID: 39702530
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
 

Author Comment

by:gopher_49
ID: 39702541
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
 
LVL 117
ID: 39703002
No issues.
0
 

Author Comment

by:gopher_49
ID: 39703691
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
 
LVL 117
ID: 39703817
If you check from the console or SSH does it show this storage space?
0
 

Author Comment

by:gopher_49
ID: 39703829
What are the commands from checking at the console?
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 117
ID: 39703839
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
 

Author Comment

by:gopher_49
ID: 39703868
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
 
LVL 117
ID: 39704037
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
 

Author Comment

by:gopher_49
ID: 39707316
It's a thin disk and I deleted 100 GBs from within the VM itself.
0
 
LVL 117
ID: 39707355
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
 

Author Comment

by:gopher_49
ID: 39707364
If I change to Thick it will fill up the drive? Right?  What if I vMotion to a different ESXi server and datastore?
0
 
LVL 117

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
ID: 39707377
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
 
LVL 19

Expert Comment

by:compdigit44
ID: 39712833
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
 

Author Closing Comment

by:gopher_49
ID: 39753100
Also if you move the VM to a different and/or disk to a different datastore it sometimes cleans up.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Suggested Solutions

This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
Teach the user how to join ESXi hosts to Active Directory domains Open vSphere Client: Join ESXi host to AD domain: Verify ESXi computer account in AD: Configure permissions for domain user in ESXi: Test domain user login to ESXi host:
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now