"The attempt to shrink the disk failed"

Posted on 2009-02-08
Last Modified: 2013-11-11
This is what I got when I tried the "shrink" tab on the VMWare Tools screen.  Host is VMWare Server 2.0 on Windows 2003 x64.  Guest is Windows 2000 Professional.  No snapshot or independent disk.  Where should I look for clues?
Question by:techhealth
    LVL 21

    Expert Comment

    When trying to shrink the disk it is always recommended to defragment the harddisk from within the VM and then running th
    However, some disks are unshrinkable:
    From the following link:
    • Unsupported and Disabled Partitions
      In some configurations, it is not possible to shrink virtual disks.
      You cannot shrink a virtual disk if You preallocated disk space when you created the disk. Preallocating disk space is the default option for both typical and custom virtual machine creation paths.
    • The virtual machine contains physical disks.
    • The virtual disk is not an independent disk in persistent mode.

    LVL 23

    Accepted Solution

    hi techhealth,

    please verify the size of the vmdk file (disk space used) not allocated. Verify if you have equal amount of space on the partition where the vmdk is located.

    i.e. if your current vmdk file is 5 GB ensure that you have 5 GB or more free disk space on the partition where it is located.

    As when you try to shrink a vmdk file what it does it tries to copy the data to at temporary disk and clears out the unused space which otherwise cannot be cleared.

    LVL 11

    Author Comment

    That's probably it.  The virtual disk is set with size 36 GB.  It's got 8 GB free (so 28 GB used).  And the partition the vmdk is on has less than 8 GB free space.

    Do you know if using vmware-mount and vmware-vdiskmanager to shrink at command line  have the same restriction?

    LVL 23

    Expert Comment

    yes it would have the same restriction. So what you can do is verify by opening windows explorer and check the size of the VMDK and verify the space on the partition where the vmdk is residing.

    Either free up disk space so that you have more than the size of the vmdk file or remove the VM from the inventory after shutting it down and move it to a partition where you have disk space more than the vmdk file and run the vmware-diskmanager from the command line. That would certainly help you in shrinking the same.

    the disk space occupied shown in the VMs mycomputer will be different than that on the actual disk as the vmdk keeps growing though you time to time reduce the disk usage inside the VM. As vmware does not try to address the disk space issue directly in relation to the VMs and VMDKs

    LVL 11

    Author Closing Comment

    Great advice.  Thanks a lot!

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    I have installed vmware Esxi 5 , it was all working fine. But one day I faced a problem when loading modules of vsphere 5 , Vmware ESxi 5 hung on loading with the message “cnic_Register Loaded Sucessfully” I read too many articles but found no ar…
    Create your own, high-performance VM backup appliance by installing NAKIVO Backup & Replication directly onto a Synology NAS!
    Teach the user how to install and configure the vCenter Orchestrator virtual appliance Open vSphere Web Client: Deploy vCenter Orchestrator virtual appliance OVA file: Verify vCenter Orchestrator virtual appliance boots successfully: Connect to the …
    This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…

    729 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