[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 764
  • Last Modified:

Shrink VM in size.

Hello and thank you for your time.

We have a few VM's (Win7 PRO) on ESXi 4.1.
The VM's are 30 gb in size.
The Datastore is getting tight.
Is it possible to shrink a VM in size?
If so, how do we go about doing that? Standard repartitioning tools?

Thank you in advance.

~Milosz,
0
loshdog
Asked:
loshdog
1 Solution
 
Luciano PatrãoICT Senior Infraestructure Engineer Commented:
Hi

You do this by command but this is more difficult.

You can perform this task using VMware vConverter performing a V2V.

With this you can resize the disks in disks options in the vConverter tasks. You need to perform this task on each VM.

Jail
0
 
Stelian StanCommented:
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
I concur with Bestway, thr easiest method to shrink a virtual disk is to perform a V2V using VMware Converter Standalone. It will complete the disk shrink and partition shrink in one procedure.

Download VMware vCenter Converter here
http://downloads.vmware.com/d/info/datacenter_downloads/vmware_vcenter_converter_standalone/4_0

VMware vCenter Converter Standalone 4.x Documentation
http://www.vmware.com/support/pubs/converter_pubs.html

VMware vCenter Converter Standalone 4.3 User Guide
http://www.vmware.com/pdf/convsa_43_guide.pdf

If you have issues, you may want to consult the following guides

Read fellow Expert Bestway's article.
http://www.experts-exchange.com/Software/VMWare/A_3639-VMware-vConverter-P2V-for-Windows-Servers.html

Best Practice Video Guide here
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1004588

Check the video here I created earlier, and you can see the process.
http://www.experts-exchange.com/Software/VMWare/Q_27232719.html?cid=1572#a36291208

0
 
Wavey_Dave_76Commented:
Actually, there is a far easier way to save space, but it depends on a few assumptions.

Assuming you are using vCenter Server, you can do a migration and change the disks to thin provisioned at the same time. The caveats to this are that, unless you are licensed with enterprise or higher, you will not be able to do a disk migration while the VM is powered on. Also, if you chose to thin provision disks, make sure you understand what that means with regards to the space it uses. You can overcommit your storage this way, but unless you keep an eye on your VMs, you may find they decide to use all the space you configured for them, leaving you in a little trouble.

I cannot comment on the Converter method as I have not used it, but I would think you would need enough spare space on your datastore to have both the original disk and the smaller new disk. As you do not say just how much space you have left, you may have reached a point whereby that is not feasable.
0
 
loshdogAuthor Commented:
Hello and thank you for this info hanccocka.
I'm saving this as a reference for the future.

Thx again..
0

Featured Post

A Cyber Security RX to Protect Your Organization

Join us on December 13th for a webinar to learn how medical providers can defend against malware with a cyber security "Rx" that supports a healthy technology adoption plan for every healthcare organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now