snapshot-merge · shipping · also LVM snapshot merge

Snapshot merge (LVM)

A snapshot merge copies a copy-on-write snapshot's changed chunks back into its origin volume and removes the snapshot when complete.

Related Observatory article: Read on hesela.com

A merge starts at once only if neither the origin nor the snapshot is open. Otherwise it waits until either is activated with both closed, and an origin that cannot be closed, such as a root filesystem, merges at its next activation. Once merging starts, the resulting volume keeps the origin's name, minor number and UUID. Thin-snapshot merge uses a separate operation. [1]

At the kernel block-mapping layer, a merging target takes over the snapshot's changed chunks and copies them back in the background while the origin stays usable. Writes to origin chunks not yet merged are deferred, and the old snapshot device returns I/O errors. Status reports allocated, total and metadata sectors, and a documented merge falls from 281688 to 16 allocated sectors of 2097152, equal to its 16 metadata sectors. [2]

Relations

related
Storage snapshot, Snapshot exception store, LVM, Restore test, QCOW2 backing chain

Advantages

  • The origin can be opened and used while the merge continues in the background. [2]

Limitations

  • A successful merge request is not a completed rollback until the allocated sectors equal the metadata sectors. [2]
  • The merge modifies the origin rather than exporting an independent recovery copy. [1]

Citations

  1. LVM2 lvconvert(8): --mergesnapshot and activation (accessed 2026-10-23)
  2. Linux kernel v6.12 documentation: device-mapper snapshot support, snapshot-merge target and merge status. (accessed 2026-10-23)
Sources & caveats
  • cow-merge-manual re-read 2026-10-23 for merge start conditions, deferral and retained identity.
  • kernel-snapshot-doc read 2026-10-23 at kernel v6.12 for the merging target, deferred writes and the status-line example.
  • Scope is block-volume snapshot merge semantics, not a database MERGE statement or a measured recovery procedure.

JSON: /data/terms/snapshot-merge.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Snapshot merge (LVM). Hesela. 2026-10-23. https://hesela.dev/terms/snapshot-merge/