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?
 
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
 
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
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
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
 
QlemoBatchelor, 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
 
QlemoBatchelor, 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
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.