Consolidation
Cheat sheet · https://pcornel.dk/topic.php?topic=3572
Answer
Consolidation is the cleanup/reconciliation process used when snapshot data or delta layers remain even though the management inventory says they should be merged or when a platform explicitly reports consolidation is required.
Remember
- Consolidation is a storage-chain repair/cleanup action, not a synonym for backup.
- A VM can appear to have no snapshots in the UI while dependent delta files still exist.
- Manual deletion of suspected orphan files is unsafe until the active chain is proven.
- Consolidation requires capacity and healthy storage I/O just like merge operations.
First checks
Get-VM | ? {(Get-VMSnapshot $_) -or $_.Status -match merge}— Hyper-V merge statusvim-cmd vmsvc/getallvms— ESXi VMs; consolidation needed flag in vCenterqemu-img info --backing-chain <disk>— verify chain
Verify in this order
failed removal → orphan delta → consolidate
Where it usually breaks
First mismatch in guest/app quiescence → hypervisor snapshot/template task → metadata/backing chain → storage durability → restore/clone read-back; preserve identity/native error/pre-state before mutation.
Snapshots & Checkpoints → Consolidation reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Inventory | What manager displays | May be incomplete |
| Disk chain | Actual dependencies | Must be authoritative |
| Consolidate | Reconcile/merge leftovers | Needs I/O/capacity |
| Post-check | Rescan + workload | Confirms outcome |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3572