The “Needs Consolidation” warning appears in the VM’s Summary tab when the snapshot hierarchy is inconsistent or residual snapshot files are left behind. This typically occurs when a snapshot process does not properly merge changes back into the base disk.
Snapshot consolidation is typically needed in these cases:
Before performing consolidation, ensure that all snapshots are deleted. Snapshot deletion merges delta changes with the base VMDK. However, if files remain or consolidation fails, manual intervention may be required.
1. Access the VM Directory: cd /vmfs/volumes/<datastore_name>/<VM_name>/
2. Calculate Total Snapshot Size:ls -la | grep -E 'delta|sesparse' | awk '{ SUM += $5/1024/1024 } END {printf "Total Snapshot Size: %.2f MB\n", SUM+0}'
For a total snapshot size of 2 TB:At 2 MB/s ~11.5 daysAt 3 MB/s ~7.71 daysAt 4 MB/s ~5.78 days
For 200 GB of snapshots:At 2 MB/s ~26 hoursAt 3 MB/s ~18 hoursAt 4 MB/s ~14 hours
Estimate the completion time by tracking file progress relative to elapsed time. For example, if consolidation moves from 10% to 20% in one hour, the total duration will likely be approximately 10 hours.
:
cd /vmfs/volumes/datastore/VM_name/
watch -n 2 -d 'ls -lth | grep -E "delta|flat|sesparse"'The snapshot removal process may take considerable time if the snapshots are large in size.
Snapshot consolidation should never be interrupted, as doing so can cause irreversible corruption of the virtual disks being consolidated.
Virtual machine performance may temporarily degrade while the consolidation process is in progress.
Delete: Removes all snapshots and commits the changes captured between the snapshots and their delta disks back into the base parent disk, merging them with the main virtual machine disk.
Revert: Restores the virtual machine to the exact state it was in at the time the snapshot was taken.
Consolidate: Merges and removes redundant delta disks, enhancing virtual machine performance and freeing up storage space.