Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Snapshot Merge

Direct 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.

When to use this

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.

First 30 seconds

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.

Operational verification

delta → merged into parent

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Failure and recovery traps

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.

Platform / version applicability
Data protection and recovery
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformData protection and recovery
Scope / prerequisiteUse it when the storage-protection question has been narrowed to Snapshots → Snapshot Merge. Preserve object identity, …
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key checks
  • virsh blockcommit <vm> vda --active --pivot — libvirt merge
  • Remove-VMSnapshot — Hyper-V merge
  • zfs 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

TechnologyOperationNote
ZFSzfs rollbackDiscards changes after the snapshot; later snapshots need -r
Hyper-VApply a checkpoint, or delete it to merge the .avhdx into its parentDeleting a checkpoint merges the data; it does not lose it
VMwareRevert to snapshot, or delete/consolidateConsolidation merges delta disks
qcow2qemu-img commit or virsh blockcommitWrites 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 lvs before 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docData protection and recovery current

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%
Terminology layer

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.

Aliases that resolve here
snapshot mergesnapshot-mergesnapshots snapshot merge
Embedded reference data

Quick lookup tables

Snapshots → Snapshot Merge proof map

Fast identity, dependency, failure-boundary and acceptance checks for Snapshots → Snapshot Merge.

Storage boundaryWhat to verifyProof limit
Identity / stateCorrect object, source/target or snapshot point and same-window timestampsInventory alone does not prove data correctness
Dependency pathSnapshot mapping/chain, active write target, capacity and backing storageA healthy adjacent component is not end-to-end proof
Failure boundaryMerge 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
AcceptanceHealthy 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
Confirmation

Confirm action

Continue?