When attempting to consolidate snapshots on a virtual machine (VM), the following error is observed in the vSphere Client:
Consolidation failed for disk node 'scsi#:#': ## (File too large). An error occurred while consolidating disks: ## (File too large).
DiskLib_IsCombinePossible: Could not get free space on disk using /vmfs/volumes/...
Consolidate Disks message: An error occurred while consolidating disks: File too large.
Event 33746 : Virtual machine ##### disks consolidation failed on ##### in cluster ##### in ha-datacenter.
/vmfs/volumes/<datastore_name>/<VM_name>/vmware.log, contains entries similar to the ones below:
YYYY-MM-DDTHH:MM:SS.###<Time_Zone> In (05) vcpu-0 - ConsolidateItemComplete: Online consolidation failed for disk node 'scsi#:#': File too large
YYYY-MM-DDTHH:MM:SS.###<Time_Zone> In(05) worker-2964175 - DISKLIB-LIB : DiskLib IsCombinePossible: Could not get free space on disk using /vmf s/volumes/<Datastore>/<VM_name>/<VM_name>.vmdk.
YYYY-MM-DDTHH:MM:SS.###<Time_Zone> In(05) worker-2964175 - ConsolidateCheckSpaceNeeded: Not enough space to combine source disk: ' /vmfs/volumes/<Datastore>/<VM_name>/<VM_name-00000#. vmdk' and destination disk: '/vmfs/volumes/<Datastore>/<VM_name>/ <VM_name>.vmdk.': File too large (1769481)
YYYY-MM-DDTHH:MM:SS.###<Time_Zone> In(05) vcpu-0- Destroying virtual dev for scsi#:# vscsi=############
VMware vSphere ESXi 7.0.x
VMware vSphere ESXi 8.0.x
This issue occurs due to insufficient free space on the datastore hosting the virtual machine's disk files.
To successfully consolidate snapshots, the available free space must be at least 1.5 times the total size of all snapshot files (.vmdk) for the virtual machine. If this requirement is not met, consolidation will fail with errors such as “File too large.”
To resolve this issue, perform the following steps:
Calculate the amount of free disk space required for the consolidation, using the guidance documented in How to calculate snapshot consolidation space requirements.
Free Up Datastore Space by:
Removing or relocating unused files.
Migrating other VMs to different datastores.
Extending the datastore, if possible.
Once sufficient space is available, retry the consolidation, by right-clicking the VM and selecting Snapshots > Consolidate.
If you are unable to provide more free space on the specific datastore, as a workaround, you can migrate the disks or clone the VM to a different datastore while it is in powered off state (During powered ON snapshot consolidation, a temporary snapshot is created to hold the active changes. This can increase in size if the snapshot consolidation task takes long. So if the VM is powered OFF, this file will not grow in size to fill up the datastore.):
Power off the virtual machine
Migrate the disk with the snapshot chain to another datastore to consolidate.
Clone the VM to another datastore. This will keep the original VM in it's current unconsolidated state, but the cloned VM will have the snapshots automatically consolidated.
In order to avoid situations like this, it is crucial to monitor for snapshots in the environment and delete them as soon as possible. Please refer to Best practices for using VMware snapshots in the vSphere environment for more information.