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

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!
AlexAsked:
Who is Participating?
 
AlexConnect With a Mentor Author Commented:
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
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
0
 
AlexAuthor Commented:
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
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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
 
AlexAuthor Commented:
My solution achieved what I was looking for
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.

All Courses

From novice to tech pro — start learning today.