Avatar of Tsz109
 asked on

ESXi 4.1 Thin to Thin Command line ?

I was told by the VMware guru here that you can do a Thin to Thin conversion on your VM's to get rid of the white space on the VMDK.
I see all over the place how to do thick to thin but not what he is talking about. Does anyone know about this?
We have 5 VM's, each is running close to 40 gigs but there is only about 10 gigs of space actually used on them after we install all of the software we need.
He told me to go look up the command line formula for doing this and I can't find it.

Thanks for any help.

Avatar of undefined
Last Comment

8/22/2022 - Mon

If you have these in a cluster, you can always just use the vSphere client to migrate the datastore to a temporary location then migrate it back. The migration of a thin provisioned disk should shrink your vmdk too.

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

So you have Thin Provisioned VMs, the Thin Provisoned disk is 40GB, you have only used 10GB inside the VM.

What does the Datastore browser state is currently in use and provisioned?

In the example screenshot, I've got a Windows XP Thin Provisioned VM, it also has a 40GB DIsk to the OS, but only 3GB is currently in use, in terms of data in the OS, and this is reflected currently in the datastore browser.

 thin disk
do you have something different, or mean something different?

No the provisioned size on them are all 80 gigs each but the "Size" are between 40-60gigs. But we know that within the opeorating system itself there are only 10-14 gigs of files.
When i export the OVF it comes out at 40-60 gigs not 10-14.
I have to go through a process of compression of pulling an image out, creating a new VM, putting it back in, then exporting the OVF back out to get it to come out at 10-14 gigs

We use these for deployment and the difference between 40-60 gig VMs and the difference between 10-14 gig vms is great when we are already running low on HD space.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

So your current size in datastore browser is 40-60 when the OS only has 10-14g in use?
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

have you tried a clone to thin to a new datastore?

that is correct hancocka and no i haven't. because the "size on disk" is so much that we are already close to our datastore limit.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.