Use it when the storage-protection question has been narrowed to Snapshots → Snapshot Merge. Preserve object identity, timestamps, dependency state and the newest authoritative data before changing configuration, deleting snapshot state, resynchronizing or changing replication ownership.
Snapshot Merge
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.
1. Merging writes deltas back into the parent.
2. Takes I/O and time.
3. Requires free space.
4. Don't interrupt.
5. Verify chain after.
delta → merged into parent
Context & applicabilityCommon mistakes · platform/version boundaries
Merge completion shows the chain metadata accepted consolidation into the intended target, but it does not show every application read or backend block is correct.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
merge intent → identify parent/child → read changed extents → write destination layer → metadata commit → remove obsolete dependency → workload validation
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
virsh blockcommit <vm> vda --active --pivot— libvirt mergeRemove-VMSnapshot— Hyper-V mergezfs destroy <snap>— ZFS (frees, no merge)
ReferenceImportant terms & boundaries3 sections · depth on demand
Scope and what the checks show
Merge completion shows the chain metadata accepted consolidation into the intended target, but it does not show every application read or backend block is correct.
In depth
Merging writes a snapshot's state back into its origin
A snapshot merge makes the origin look exactly as it did when the snapshot was taken (or, for writable snapshots, as the snapshot looks now), and then removes the snapshot. It is the "roll back" operation of block-level snapshots.
LVM merge as documented
lvconvert(8) describes --merge. For a COW snapshot it runs --mergesnapshot, and for thin volumes --mergethin. If neither origin nor snapshot is open, the merge starts at once. Otherwise it starts the next time both are closed and one is activated. For an origin that cannot be closed, such as the root file system, it waits for the next activation. The origin keeps its name, minor number and UUID, I/O is redirected to the snapshot while merging, and the snapshot is removed afterwards.
# lvcreate -s -L 20G -n root_preupgrade vg0/root
# dnf upgrade -y # ... upgrade goes wrong
# lvconvert --merge vg0/root_preupgrade
Delaying merge since origin is open.
Merging of snapshot vg0/root_preupgrade will occur on next activation of vg0/root.
# reboot
# lvs -a vg0
Merge in other technologies
| Technology | Operation | Note |
|---|---|---|
| ZFS | zfs rollback | Discards changes after the snapshot; later snapshots need -r |
| Hyper-V | Apply a checkpoint, or delete it to merge the .avhdx into its parent | Deleting a checkpoint merges the data; it does not lose it |
| VMware | Revert to snapshot, or delete/consolidate | Consolidation merges delta disks |
| qcow2 | qemu-img commit or virsh blockcommit | Writes the overlay into its backing file |
Before merging
- The merge discards everything written to the origin after the snapshot. Copy out anything you need first.
- Classic COW snapshots that overflowed are invalid and cannot be merged. Check
lvsbefore relying on one. - Make sure enough time and I/O capacity exist. A large merge reads and writes all changed blocks.
Documented example, not captured output.
Quick reference
Merging writes the changes in a delta file back into its parent and removes the delta. It reads and writes all changed blocks, so large or old snapshots take a long time and add I/O load. Hyper-V merges when a checkpoint is deleted; VMware consolidates on snapshot delete; qemu-img commit or virsh blockcommit merges QCOW2 overlays.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Snapshots → Snapshot Merge. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://openzfs.github.io/openzfs-docs/man/master/8/zfs-snapshot.8.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Snapshots → Snapshot Merge proof map
Fast identity, dependency, failure-boundary and acceptance checks for Snapshots → Snapshot Merge.
| 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 |