Virtual machines may be running in a snapshot state with delta disks that are not detected by the VMware vSphere or Virtual Center Client.
To verify the virtual machines that have unlisted snapshots attached:
- Open the vCenter Server or Virtual Infrastructure Client and log in.
- Select a virtual machine in your host inventory and click Edit Settings.
- Review the virtual machine's hardware configuration, highlighting each attached virtual disk. Any disk filename containing a suffix similar to -000001.vmdk is indicative of the virtual machine running on snapshot delta disks.
To check virtual machine configurations for references to delta disk files via the ESX host terminal:
- Log in to the ESX host terminal directly, or via SSH. For support on ESXi hosts, see Contact Broadcom support.
- Run this command to search for all of the virtual machine configuration files seen by the ESX and check if there is a file which looks like a snapshot disk:
find /vmfs/volumes/ -iname "*.vmx" -exec grep -HEie "-[0-9]{6}.vmdk" {} \;
You see output similar to:
/vmfs/volumes/49d9f2d8-########-####-##########e6/examplevm/examplevm.vmx:scsi0:0.fileName = "examplevm-000002.vmdk"
/vmfs/volumes/49d9f2d8-########-####-##########e6/examplevm/examplevm.vmx:scsi0:1.filename = "examplevm_1-000002.vmdk"
/vmfs/volumes/49d9f2d8-########-####-##########e6/examplevm/examplevm.vmx:scsi0:2.filename = "examplevm_2-000002.vmdk"
/vmfs/volumes/49d9f2d8-########-####-##########e6/anothervm/anothervm.vmx:scsi0:0.fileName = "anothervm-000001.vmdk
Note: This command must be run on each VMware ESX host. Virtual machine configuration files in-use by other hosts are not readable by the server running this command.
For an overview of what delta disk files are currently in-use by running virtual machines on an individual VMware ESXi/ESX 3.5, 4.0 or 4.1 host:
-
- List delta disks currently open by the respective VMware ESX host using:
ls -l /vmfs/devices/deltadisks
You see output similar to:
total 134217728
-rw------- 1 root root 107374182400 Sep 7 16:44 34baac8f-VMware Capacity IQ_1-000001-delta.vmdk
-rw------- 1 root root 21474836480 Sep 7 16:44 7f9d62c9-examplevm-000003-delta.vmdk
-rw------- 1 root root 8589934592 Sep 7 16:44 b750727-VMware Capacity IQ-000001-delta.vmdk
-r--r--r-- 1 root root 0 Sep 7 16:44 control
Notes:
- The same vmkfstools -U command can be run within the ESX host terminal to remove the delta disks, if you are not using the VMware vMA or vCLI.
- Attempt the deletions while the respective virtual machine is powered on. If the files are in fact in-use and required by the virtual machine, the operation fails and prevent deletion of the disk files. Attempt to consolidate the respective delta disk file if this occurs.
To list all delta disk files stored across the datastores:
-
- List delta disks stored across the datastores using:
find /vmfs/volumes/ -iname "*delta.vmdk"
You see output similar to:
/vmfs/volumes/49d9f2d8-########-####-##########e6/ examplevm/ examplevm-000001-delta.vmdk
/vmfs/volumes/49d9f2d8-########-####-##########e6/ examplevm/ examplevm-000002-delta.vmdk
/vmfs/volumes/49d9f2d8-########-####-##########e6/ examplevm/ examplevm-000003-delta.vmdk
/vmfs/volumes/49d9f2d8-########-####-##########e6/ stalevm/ stalevm-000001-delta.vmdk
/vmfs/volumes/49d9f2d8-########-####-##########e6/stale vm/stale vm-000002-delta.vmdk
/vmfs/volumes/49d9f2d8-########-####-##########e6/anothervm/anothervm-000001-delta.vmdk
Note: In this example, examplevm is a legitimate virtual machine with three snapshot delta disks. stalevm is a decommissioned virtual machine that was removed from inventory, but not deleted from the datastore, unnecessarily taking up space.