Crash-consistent Snapshot
Cheat sheet · https://pcornel.dk/topic.php?topic=4222
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 snapshotlvcreate -s ...— LVM snapshotarray 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 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 | Crash 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 |
| Acceptance | Healthy 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