?
Solved

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

Posted on 2013-01-14
5
Medium Priority
?
1,856 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 

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 123
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

Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
Teach the user how to install and configure the vCenter Orchestrator virtual appliance Open vSphere Web Client: Deploy vCenter Orchestrator virtual appliance OVA file: Verify vCenter Orchestrator virtual appliance boots successfully: Connect to the …
Teach the user how to use vSphere Update Manager to update the VMware Tools and virtual machine hardware version Open vSphere Client: Review manual processes for updating VMware Tools and virtual hardware versions: Create a new baseline group in vSp…
Suggested Courses

762 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