Task name: Remove snapshot
Status An error occurred while deleting a snapshot:
One of the disks in this virtual machine is already in use by a virtual machine or by a snapshot.
SNAPSHOT: SnapshotDiskTreeAddFromSnapshot: Trying to add snapshot ###-Snapshot2.vmsn to disk /vmfs/volumes/.../###.vmdk which already has snapshot ###-Snapshot1.vmsn.
SNAPSHOT: SnapshotGenerateDeleteDisks Failed to fetch disk tree: One of the disks in this virtual machine is already in use by a virtual machine or by a snapshot (21)
SNAPSHOT: SnapshotDeleteNode failed: One of the disks in this virtual machine is already in use by a virtual machine or by a snapshot (21)
"Operation failed" Status: Failed to enumerate all disks. One of the disks in this virtual machine is already in use by a virtual machine or by a snapshot
snapshot0.uid = "1"
snapshot0.filename = "Direct-###-Snapshot1.vmsn"
snapshot0.disk0.fileName = "Direct-###01.vmdk"
snapshot0.disk0.node = "scsi0:0"
snapshot1.parent = "1"
snapshot1.uid = "2"
snapshot1.filename = "Direct-###-Snapshot2.vmsn"
snapshot1.disk0.fileName = "Direct-###01.vmdk"
snapshot1.disk0.node = "scsi0:0"
vmkfstools (Cloning and converting virtual machine disks with vmkfstools).Power off the affected virtual machine
Connect to the ESXi host where the VM is registered via SSH.
Navigate to the directory containing the VM configuration files.
cd /vmfs/volumes/datastore_name/virtual_machine_name/
vmsd file:
mv virtual_machine_name.vmsd virtual_machine_name.vmsd.bak
Power on the virtual machine.
In the vSphere Client, verify if an alarm indicates that disk consolidation is required.
Select VM > Actions > Snapshots > Consolidate to consolidate the disks.
Once consolidation is successful, try creating and deleting snapshots again.