Solved

Can't shrink VMDK on ESXi 5, vmkfstools -K doesn't do its job

Posted on 2013-01-14
5
1,762 Views
Last Modified: 2013-01-19
Hey guys,
 
I'm trying to reclaim space back on VM's with thinprovisioned disks. I've use sdelete inside the guest (Win 2003) which wrote 0's across all the free space, then I switched the VM off, ssh into the host and tried to shrink it using vmkfstools -K /path/to/disk-name.vmdk, wich said it was punchzeroing the disk, but in the end of it, the VMDK stays exactly the same size as before, no free space claimed back.
 
Could anyone please assist me with this? I really appreciate any advice on this.
 
Thanks!
0
Comment
Question by:Alex
  • 3
  • 2
5 Comments
 
LVL 118
ID: 38775445
0
 

Author Comment

by:Alex
ID: 38775848
I've used converter, but it didn't work to convert the free space into a smaller VM. I've set it to convert the disks to thinprovisioned but no luck.
0
 
LVL 118
ID: 38776032
normally, we create a new virtual disk (thin provisioned), formatted using Quick Format only, and then copy the contents from the original disk to the new disk. (using Windows Backup). So only the data is copied.
0
 

Accepted Solution

by:
Alex earned 0 total points
ID: 38776587
Too much work involved, I resolved the issue myself, created a datastore with VFS3 version and different block size, then used sdelete with -z instead of -c like vmware recommends, vmotion the VM across this VFS3 from a VFS5 and voila, thinprovisioned. I'll do this tomorrow to all VMs
0
 

Author Closing Comment

by:Alex
ID: 38796094
My solution achieved what I was looking for
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
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 use configure the vCenter Server storage filters Open vSphere Web Client:  Navigate to vCenter Server Advanced Settings: Add the four vCenter Server storage filters: Review the advanced settings: Modify the values of the four v…
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:

911 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

20 Experts available now in Live!

Get 1:1 Help Now