Solved

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

Posted on 2013-01-14
5
1,750 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 117
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 117
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Using a software based iSCSI solution, there is no requirement to purchase a hardware iSCSI initiator or TOE (TCP/IP Offload Engine) interface card. A standard network interface card can be used to connect an existing ESXi server to a remote iSCSI t…
HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
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 create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…

707 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

16 Experts available now in Live!

Get 1:1 Help Now