Knowledge Base

|
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
This Article Replaces
Update History
Request a Product Feature
- Updated:
- Categories:
- Languages:
- Product Family:
- Product(s):
- Product Version(s):

