Pcornel
Storage · Snapshots

Crash-consistent Snapshot

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

Back to the Topic

Answer

A crash-consistent snapshot captures the disk exactly as it is at that instant, like after a power cut. Filesystems and databases can normally recover from it, but data still in memory or in unfinished transactions is not included.

Remember

  • Crash-consistent ≠ application-consistent.
  • Filesystem recoverable ≠ application transactionally correct.
  • Clean mount after restore ≠ business-data correctness.
  • Snapshot timestamp ≠ transaction commit timestamp.

First checks

  • zfs snapshot <ds>@crash-$(date +%F) — instant snapshot
  • lvcreate -s ... — LVM snapshot
  • array snapshot without host agent — crash-consistent

Commands

zfs snapshot -r

Verify in this order

instant point-in-time → no quiesce

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 → Crash-consistent Snapshot proof map

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 boundaryCrash consistency proves a recoverable storage point comparable to sudden loss of power at the captured durability boundary, not coordinated transactional consistency.Correlate evidence for the same operation and time window
AcceptanceHealthy evidence for Crash-consistent Snapshot: 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=4222

Confirmation

Confirm action

Continue?