Shrinking disk size in 2008 R2 VM

Hi Experts, have a 2008 R2 VM which has a 2TB disk size on the C:\ but is actually only using 100GB i.e. under My Computer it shows up as 100GB but under Computer Management C:\ drive is 2TB. The .vmdk for this file is 2TB as well. Is there a way to shrink this file both from the OS as well as VmWare?

TIA
abhijitm00Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

abhijitm00Author Commented:
I have tried shrink volume but it only shows 1151MB that can be freed up. Thanks
0
Neil RussellTechnical Development LeadCommented:
Your best bet would be to do V2V. Use vmware converter and resize the disk when you convert.
0
Bryant SchaperCommented:
before that route you can try this.  Do a vstorage migration to another datastore and choose thin provision as the conversion.

This can fail however, and if it does take a look at the below knowledge base.  I just had this problem a couple weeks ago and the storage migration didnt work, I ran sdelete -z d:\ (d drive in my case) and then from shell ran teh vmfstools -K /pathtodisk and it worked perfectly, went from 600GB to 90GB.

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2004155
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
There is no other way than to do V2V, because you can't shrink thick provisioned vmdks, only thin provisioned. Even if you shrink the OS partition, the disk remains at 2TB. FWIW, you can shrink the OS partition after performing a full defrag (usually not recommended for VMs, but OK in this case).
0
Bryant SchaperCommented:
if we are shrinking the file, it is not think is it?

In the OS you can shrink the volume, this should give the space back, the vm is think, it will never reclaim the space, so convert it to thin provisioned and you can reduce it.

From the sounds, it is a thin provision consuming more than it should.
0
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
Since the OS disk size is the same as the VMDK size, it is most likely not thin.
0
Bryant SchaperCommented:
so why not just convert it to thin and specify thin provision.  If it needs to be think, adjust size after migration and then migrate to think eager zeroed
0
Neil RussellTechnical Development LeadCommented:
So like I said right at the beginning, Just do a V2V and specify new disk size when you convert....
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.