Solved

How to shrink VM HDD into smaller capacity ?

Posted on 2013-05-16
6
975 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 119

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) 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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
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 119
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

When converting a physical machine to a virtual machine using VMware vCenter Converter Standalone or vCenter Converter Enterprise, if an adapter type is not selected during the initial customization the resulting virtual machine may contain an IDE d…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…

808 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