?
Solved

How to make VMDK files smaller

Posted on 2012-03-09
4
Medium Priority
?
588 Views
Last Modified: 2012-03-28
Let's say I have a VM that is Windows 2008 R2 with a 100 GB Hard disk and therefore the corresponding VMDK file is 100 GB in size.  Now let's say I want to move 30 GB of files in that VM to somewhere else and now only need a 70 GB hard drive.  Is there a way to make the VMDK file smaller?  I know I can make them bigger but can anything be done in the opposite direction?  I would be using ESXi v5 Enterprise edition.
0
Comment
Question by:damien1234
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 19

Expert Comment

by:vmwarun - Arun
ID: 37703622
A VMDK can be thin or thick provisioned depending on your requirement. If you have deployed a VM with 100GB VMDK in thin format, let's say that you have installed an OS which has consumed only 20GB, then only 20GB would be used from a storage perspective.

From a Windows perspective, there is an option to shrink the disks although the ratio of shrinkage depends on how much data is currently occupied by the guest.
0
 
LVL 40

Expert Comment

by:coolsport00
ID: 37704011
The easiest and most 'supported' way to do so according to VMware is to use vCenter Converter Standalone to do a V2V. You run the very least potential of VM corruption. During the Conversion wizard, you have the option to choose the disk and shrink it to the size you want. it.

Here's the download:
http://downloads.vmware.com/d/info/infrastructure_operations_management/vmware_vcenter_converter_standalone/5_0

The User Guide:
http://www.vmware.com/pdf/convsa_50_guide.pdf

Best Practice KB:
http://kb.vmware.com/kb/1004588

Regards,
~coolsport00
0
 
LVL 24

Expert Comment

by:Nagendra Pratap Singh
ID: 37704743
You can do a Storage Vmotion and choose thin disk format. This way you will be using only what is used but there is a some performance hit.
0
 
LVL 123

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 2000 total points
ID: 37704813
0

Featured Post

Limited time offer using promo code EXPERTS30

Designed with a wealth of functionality and convenience, ATEN's new Thunderbolt™ 2 Sharing Switch takes your Thunderbolt setup to the next level. Now through September 15, 2017, Experts Exchange members get 30% off the US7220 on the ATEN USA eShop using promo code EXPERTS30.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When rebooting a vCenters 6.0 and try to connect using vSphere Client we get this issue "Invalid URL: The hostname could not parsed." When we get this error we need to do some changes in the vCenter advanced settings to fix the issue.
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
Teach the user how to use configure the vCenter Server storage filters Open vSphere Web Client:  Navigate to vCenter Server Advanced Settings: Add the four vCenter Server storage filters: Review the advanced settings: Modify the values of the four v…
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …
Suggested Courses

752 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