Snapshot Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=4229
Answer
Troubleshooting starts with read-only inventory and timestamps, establishes the authoritative snapshot chain and active write target, checks capacity and backend health, then tests the smallest safe snapshot action.
Remember
- Snapshot error ≠ root cause.
- Missing UI entry ≠ missing underlying snapshot data.
- Deleting files/objects manually is not a safe first repair.
- Temporary success after cleanup ≠ durable fix until original create/restore/read-back is verified.
First checks
zfs list -t snapshot; zpool list— spacelvs -o lv_name,data_percent— invalid LVM snapshotsvssadmin list shadows; vssadmin list writers— VSS issues
Commands
lvs -a -o lv_name,vg_name,lv_attr,origin,data_percent,metadata_percent- Read-only/validation observation for snapshot/origin relationship, attributes and data/metadata utilization.
Verify in this order
snapshot op → storage → chain → consistency
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 → Snapshot Troubleshooting 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 | The first failed snapshot lifecycle boundary is the useful diagnosis; a generic snapshot alarm does not identify whether metadata, capacity, backend, guest/application consistency or chain state failed. | Correlate evidence for the same operation and time window |
| Acceptance | Healthy evidence for Snapshot Troubleshooting: 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=4229