Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2013-01-14
5
Medium Priority
?
1,873 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 124
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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
August and September have been big months for VMware—from VMworld last month to our new Course of the Month in VMware Professional - Data Center Virtualization. We reached out to Andrew Hancock, resident VMware vExpert, to have a more in-depth discu…
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…

618 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