Save and Claim the lost storage space with thin provisionning
Thin provisionning is a subject which passions me a lot. So when I saw an article written by Gabrie van Zanten. I read carefully to see if I find something that I do not know about. Believe me, I found a good stuff you’ll want to hear about. Gabrie is an experienced virtualization architect.
For persons which does not know much about Thin provisionning. When you create thin provisioned disk in ESX 4 server (let’s say for example 100Gb) it does not take 100Gb place on your SAN. It takes few Mb. Then only when you start store more and more files, this disk will start to grow.
Let say you’ll use this disk as a storage disk and you’ll want to store all your personnal collection of MP3 files there. (crazy non?).You will eat then let’s say 40 Gigs of space. Then you’ll decide to delete some of the Albums you never listen to, so you free 10 Gigs. But you see that the disk does not get back to 30 Gigs. Why? That’s where I saw the explication from Gabe….
“Once a thin-provisioned disk grows, it won’t shrink. This is not because of limitations on storage or vSphere level but because storage and vSphere don’t receive the information that those blocks are empty. Windows does not delete a file when you delete it; it just updates the master file table and registers that block X to Y is now again available for writing, but the space isn’t emptied. This is why neither vSphere nor storage knows that the block can be reclaimed. “
The main advantage over flat vmdk images is that possibility of starting small, even if the Virtual machine see the disk as a 100Gb disk. In my “lab” I’m using VMware Workstation to test stuff at home, so as Gabrie said in his article, I went to get the tool from Mark Russinovich, I put it on my c: drive, and i run a command: sdelete.exe /? to see what’s the options.

Then I took a snapshot of my VM… (you never know).
Then I runned the sdelete command and the process started. It took about 20min to finish.

Well, then I could not do a Storage vMotion as Gabe recommends… -:) I would have to setup the whole ESX 4 infrastructure on my laptop…. But this might come sometimes in the future…
Related Posts :
If you just starting with VMware Virtualization and want to learn some new features comming with ...
Thin provisioning can save you a LOTs of SAN space. You know that storage space on a SAN its exp ...
vSphere 4 offers 30 % greater consolidation. If in your existing ESX Server infrastructure you ...
There are 150 new features in vSphere 4 If you are having VI 3 entreprise with an suppor it's ...
VMware Converter 4.0.1 is Free Tool now fully compatible with vSphere 4. One of the great featur ...
Other posts from Server Virtualization
- Adding second service console via CLI
- Disable web access on VMware vCenter
- VMware ESX - Configuration of Service console via CLI
- Basic VMware ESX CLI networking commands
- How to change the default location of updates in vCenter
- Did you know that ESX 3.5 general support will end in less than 90 days?
- Starwind iSCSI HA Connection to ESX Server
- See a list of Storage Array Type Plugins on ESX Server
- New whitepaper released on PVSCSI
- Enable Jumbo Frames in ESXi 4
- How-to troubleshoot iSCSI connection to your SAN
- Starwind with ISCSI SAN Software can do High Availability for you...
- Overview Video from the new vSphere Pro video training from Train Signal
- New upgrade webpage for ESXi 4 pushes us to the right direction?
- You know how to collect diag information when your ESXi does PSOD?
- Use PVSCSI or not for lower intensive workloads
- Hardening guides for vSphere 4
- NTLDR missing - silly but can happend
- How To Shrink VMware Virtual Disk Files and disable shrinking
- vSphere Quick Start guide bonus download..
- ESXi - the past, the present and the future
- Farm commander - management tool for VI and TS or Citrix Farms
- How to collect log information from vCenter Server 4
- How to know where is my VM if vCenter is down?
- New patches for ESX 4 and ESXi 4
- Use VMware Converter to import 3rd party VMs, for example Virtual Iron's VMs
- Windows XP installation as a VM - trouble to see the disk or not?
- Vmware HCL for ESXi 4
- Time keeping for Windows VM's best practices
- Virtu-Al releasing 3rd update of PowerPack



















This tip(zero-out your disks before svmotioning) was brought to you by Yellow-Bricks.com.
http://www.yellow-bricks.com/2008/01/04/vmware-consolidated-backup-and-deleted-files/
Hi Duncan,
In my testing environement under VMware Workstation I can’t really use Storage vMotion to claim back used space … Is there any solution to “shrink” the VMDK? I used VMware Converter to re-configure the VM. This works…
Well, taking a snapshot before “nulling” the disk is nonsense, because then the .vmdk is in read-only mode and you will not get any positive effect…