Solved

How to shrink VM HDD into smaller capacity ?

Posted on 2013-05-16
6
973 Views
Last Modified: 2013-05-16
Hi All,

How to shrink VM HDD into smaller capacity from 100 GB thin provision into 50 GB ?

if possible the VM should not be turned off as it is production Windows Server 2008 box.

Thanks
0
Comment
6 Comments
 
LVL 22

Assisted Solution

by:Haresh Nikumbh
Haresh Nikumbh earned 166 total points
ID: 39171670
Shrinking disks is not allowed under the following circumstances:
¦
      

The virtual machine is hosted on an ESX/ESXi host. ESX/ESXi can shrink the size of a virtual disk only when a virtual machine is exported. The space occupied by the virtual disk on the server, however, does not change.
¦
      

The virtual machine has a Mac OS X guest operating system.
¦
      

You preallocated all the disk space to the virtual disk when you created it.
¦
      

The virtual machine contains a snapshot.

The exception is if the virtual machine is used in VMware Fusion 4 and has a Windows guest operating system. In this case, you can use the Clean Up Virtual Machine button in Fusion to shrink disks.
¦
      

The virtual machine is a linked clone or the parent of a linked clone.
¦
      

The virtual disk is an independent disk in nonpersistent mode.
¦
      

The file system is a journaling file system, such as an ext4, xfs, or jfs file system.

refer below link to shrink volume

http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vmtools.install.doc%2FGUID-A42FA14C-7D67-44A7-823B-854AA9F5FD3E.html


http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Hypervisor/Q_24123866.html
0
 
LVL 10

Assisted Solution

by:Subhashish Laha
Subhashish Laha earned 167 total points
ID: 39171678
Use below link to shrink

http://boerlowie.wordpress.com/2012/09/06/how-to-shrink-a-thin-vmdk-on-esxi-5-0/

Or, as you don't want to shutdown Production server then use vmware vcenter standalone converter 5.1
0
 
LVL 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 167 total points
ID: 39171707
The only supported function which allows the shrinking of VMware Virtual disk, is to use VMware vCenter Converter Standalone 5.1.

This will allow you to easily, V2V, shrink the disk in a single pass, and cutover, at a quiet period, I would estimate 30-60 seconds of downtime!

if the Virtual Machine is in Production and cannot be turned OFF, checkout the Replication/Sync Feature of VMware vCenter Converter Standalone 5.1

See my EE Article for Step by Step Tutortial with screenshots on how to V2V (first pass), and then setup a Sync Job out of Hours! (FIRST ARTICLE)

HOW TO:  Synchronize changes when completing a P2V or V2V with VMware vCenter Converter Standalone 5.1

HOW TO:  P2V, V2V for FREE - VMware vCenter Converter Standalone 5.1
0
Want to promote your upcoming event?

Are you going to an event? Are you going to be exhibiting at a tradeshow? Talking at a conference? Using a promotional banner in your email signature ensures that your organization’s most important contacts stay in the know and can potentially spread the word about the event.

 
LVL 7

Author Comment

by:Senior IT System Engineer
ID: 39173303
ah ok, so in this case it is not supported with VMware vSphere ESXi 4.1 at all without causing any downtime.

svMotion the VM can only shrink the thin provision VMDK but not shrink the entire assigned disk capacity to the VM.
0
 
LVL 118
ID: 39173342
That is correct, but you can V2V using Converter, and have 30-60s of downtime!
0
 
LVL 7

Author Closing Comment

by:Senior IT System Engineer
ID: 39173596
Thanks !
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Suggested Solutions

OfficeMate Freezes on login or does not load after login credentials are input.
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now