Storage · Snapshots
Snapshot Merge
Cheat sheet · https://pcornel.dk/topic.php?topic=4225
Answer
A merge reads snapshot/child changes and commits them into the selected parent or base according to platform semantics, then updates metadata and releases obsolete delta state.
Remember
- Merge started ≠ merge completed.
- Merge completed ≠ application healthy.
- Freeing a snapshot file manually ≠ safe merge.
- Merge I/O can increase backend latency and capacity pressure.
First checks
virsh blockcommit <vm> vda --active --pivot— libvirt mergeRemove-VMSnapshot— Hyper-V mergezfs destroy <snap>— ZFS (frees, no merge)
Commands
zfs rollbackvirsh blockcommitlvs
Verify in this order
delta → merged into parent
Where it usually breaks
First mismatch in source consistency → capture/journal → transport → repository/replica → catalog/checkpoint → restore/failover read-back; preserve identity/pre-state before mutation.
Snapshots → Snapshot Merge proof map
| Storage boundary | What to verify | Proof limit |
|---|---|---|
| Identity / state | Correct object, source/target or snapshot point and same-window timestamps | Inventory alone does not prove data correctness |
| Dependency path | Snapshot mapping/chain, active write target, capacity and backing storage | A healthy adjacent component is not end-to-end proof |
| Failure boundary | Merge completion proves the chain metadata accepted consolidation into the intended target; it does not prove every application read or backend block is correct. | Correlate evidence for the same operation and time window |
| Acceptance | Healthy evidence for Snapshot Merge: the expected point-in-time mapping and dependency chain are intact, required backing data is readable, and the intended snapshot lifecycle action completes with correct current-data read-back. | Close only after original read-back/recovery test and protection-state verification |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4225