Pcornel
Storage · Logical Volume Management

Snapshot

Cheat sheet · https://pcornel.dk/topic.php?topic=3975

Back to the Topic

Answer

Classic LVM snapshots depend on a copy-on-write exception store; thin snapshots share pool blocks and metadata. Both depend on the source and LVM storage remaining healthy, and neither is an independent backup by itself.

Remember

  • LVM snapshot ≠ backup.
  • Snapshot creation ≠ application-consistent capture.
  • Classic snapshot free COW space ≠ thin-pool headroom.
  • Snapshot present ≠ restore tested.

First checks

  • lvcreate -s -L 5G -n snap <vg>/<lv> — classic snapshot
  • lvs -o lv_name,origin,data_percent — snapshot fill
  • lvconvert --merge <vg>/snap — roll back

Verify in this order

origin writes → COW to snapshot space

Where it usually breaks

First mismatch in member media → metadata/layout → allocation/placement → redundancy/recovery → logical object → consumer; preserve identity/pre-state before mutation.

Logical Volume Management → Snapshot LVM map

LVM boundaryWhat to verifyProof limit
Identity / mappingPV, VG, LV/thin-pool identity, size, membership and activation/mappingObject presence alone does not prove upper filesystem or lower path health
Allocation / capacityVG extents, LV size, thin data + metadata usage and upper-consumer capacityFree capacity at one layer does not prove allocation succeeds end to end
Failure boundaryA snapshot that can be activated/read proves a point-in-time block view is currently accessible; it does not prove application consistency, independence from source failure or successful disaster recovery.Correlate LVM evidence with both consumer and lower block path before recovery
AcceptanceHealthy evidence: snapshot dependencies are understood, COW/pool capacity is sufficient, source and snapshot mappings are healthy and representative recovery/read-back testing matches the intended consistency level.Close only after the original workload and independent read-back/consistency check succeeds

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3975

Confirmation

Confirm action

Continue?