We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

"The attempt to shrink the disk failed"

techhealth
techhealth asked
on
Medium Priority
1,778 Views
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?
Comment
Watch Question

za_mkhIT Manager

Commented:
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: http://www.vmware.com/support/ws5/doc/ws_disk_shrink.html
  • 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.

Cloud Architecture Manager
CERTIFIED EXPERT
Commented:
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.

bhanu

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
techhealthDirector
CERTIFIED EXPERT

Author

Commented:
bhanukir7,
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?

Thanks,
Naga Bhanu Kiran KotaCloud Architecture Manager
CERTIFIED EXPERT

Commented:
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

bhanu
techhealthDirector
CERTIFIED EXPERT

Author

Commented:
Great advice.  Thanks a lot!
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.