Knowledge Base

The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
 
Search the VMware Knowledge Base (KB)   View by Article ID
 

Removing a harddisk from a virtual machine through the vSphere client does not release the desired space. (1003002)

Details

Symptoms

  • If you take a snapshot of a virtual machine, and then remove a virtual disk from the virtual machine using the VI Client, the virtual disk flat file is not removed.
  • The datastore free space size does not report the expected recovered space following the harddisk removal.
  • Files relating to the deleted harddrive still exist in the datastore browser view.

Solution

Before deleting a harddisk, ensure that all snapshots are consolidated on the virtual machine.

When you remove a harddisk from a virtual machine by selecting the Remove from virtual machine and delete files from disk option, it is the in-use file that is deleted. This specific file is referenced under the Disk File parameter in the virtual machine properties wizard.

If the virtual machine is running from a snapshot during removal operation, the in-use file referenced under the Disk File parameter is a snapshot delta disk file. It is this file alone that is deleted, and not the base harddisk file or any existing snapshot files derived from that harddisk. Only the space used by that delta file is recovered.

The remaining virtual harddisk files and associated snapshot delta files must be removed manually through the datastore browser. For more information regarding the correct files requiring selective manual deletion, see The disk chain section of  Understanding virtual machine snapshots in VMware ESX (1015180).

Keywords

vmdk

This Article Replaces

2005065

Update History

10/12/2011 - Aded content from KB 2005065

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 4 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (4000 or fewer characters)
  • 4 Ratings
Actions
KB: