- #Vmware esxi 5 expand thin provisioned disk how to
- #Vmware esxi 5 expand thin provisioned disk free
- #Vmware esxi 5 expand thin provisioned disk windows
Make sure you do a storage VMotion to another Data Store, as you need a real storage VMotion operation to be carried out in order for the size to shrink. I have already warned you in the note before using sdelete that the disk will grow though the next few steps will fix the situation & will make you happy again.Ĥ- Run Storage VMotion on the Virtual Machine that you want to shrink its disk. Sdelete will take some time to complete so wait till the operation finish & then check the used space by your virtual disk in Virtual Centerĭon’t get mad at me yet. (Note: sdelete will make sure removed data on the disk vanish for ever, so be carefull when using it.) (Note: sdelete is a resource intensive tool & should be used off peak hours)
#Vmware esxi 5 expand thin provisioned disk free
(Note: sdelete will cause the virtual disk to be fully allocated, so you must have enough free space in your data store to handle this extra space usage) (Note: newer versions of sdelete might use the -z for zeroing rather than -c, please check what is the right flag at the particular version you are using) In our example, I extracted it to c:\sysinternalsSuiteģ- Run sdelete on the drive you want to shrink, E drive in our case: It can be found at:Ģ- Extract the Sysinternals Suite to any folder on the Virtual Machine that you want to free up its unused Thin Provisioned disk.
#Vmware esxi 5 expand thin provisioned disk how to
Well, below is the step by step on how to do that.ġ- Download the Sysinternals Suite from Microsoft Website. hmmm, I can see you asking how to exactly do that. The summary of the solution is to use sdelete & Storage Vmotion on the virtual machine to free up that unused space. Although in our example this is a very small disk space & worth nothing in production environment this non used space can be much larger. The above images illustrate that there is 7 GB is already reserved and not used as the data used to occupy this space was deleted.
#Vmware esxi 5 expand thin provisioned disk windows
Notice in the images below how the E: drive in windows is showing to only use about half a GB, while it’s still consuming about 7.5 GB on the ESX host. Now let’s delete all the temp files I have put into the virtual machine to simulate deleting non needed data from your production virtual machines. See below the virtual machine Thin Provisioned disk used for E drive got larger.
Now I fill the E drive with about 7GB of random files just to grow the disk. Let’s start with a windows virtual machine with two virtual disks mapped to C: drive & E: drive as showing in the images below: For that only I have written this article to show how to shrink a windows virtual machine VMDK size after deleting the files in Windows. Next step, the customer will call his vendor for a resolution. After few days he go and delete the files that is occupying the temporary 50GB, then he will discover that the virtual machine does not shrink as he delete files from it & he still has a 50GB of wasted space. Now he will have the Virtual Machine using 60 GB on the ESX host. Few days later, he might require to use another 50GB for a temporary purpose. At this time that Virtual Machine will only use 10 GB on the ESX host. In many cases, the customer will create a Thin Provisioned disk with 80GB & use 10 GB out of it. Although Thin provisioning has allowed customers to avoid allocating space upfront & saved them tons of space, it does not unallocate space when files are deleted from the Virtual Machine, this is due to the way Windows & other operating systems handle file deletion. Disk Thin Provisioning & its ease of use in VMware vSphere has been one of the most used features.