Use it when the storage-protection question has been narrowed to Snapshots → Snapshot Troubleshooting. Preserve object identity, timestamps, dependency state and the newest authoritative data before changing configuration, deleting snapshot state, resynchronizing or changing replication ownership.
Snapshot Troubleshooting
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.
1. Problems: full snapshot area, failed merges, broken chains, VSS writer failures.
2. Free space before merges.
3. Never delete delta files manually.
4. Restart failed VSS writers (service).
5. Restore from backup if broken.
snapshot op → storage → chain → consistency
Context & applicabilityCommon mistakes · platform/version boundaries
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.
Operational reference
Fast context before you go deeper.
lvs -a -o lv_name,vg_name,lv_attr,origin,data_percent,metadata_percentPrimary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
symptom/time → snapshot inventory → parent/child chain → active write target → capacity/backend → consistency/merge state → minimal change → original snapshot/restore test
Step 2 Known-good, broken and when it is fixed Verify boundary
Verification for Snapshots → Snapshot Troubleshooting must discriminate known-good from broken/suspicious state. With lvs -a -o lv_name,vg_name,lv_attr,origin,data_percent,metadata_percent, known-good is: snapshot and origin relationships are intact and utilization remains within the designed operating margin. Broken/suspicious is: snapshot attributes are abnormal or data/metadata utilization approaches exhaustion. Read back the same target after the minimal approved change, then confirm origin health, pool capacity and snapshot consumer state before merge/removal/extension.
Step 3 Observation-driven troubleshooting tree Narrow the fault
Troubleshoot Snapshots → Snapshot Troubleshooting from one exact failing target, revision/input and timestamp. Capture lvs -a -o lv_name,vg_name,lv_attr,origin,data_percent,metadata_percent before mutation, then branch by the first divergent observation: snapshot object is missing, validate target/origin and creation event; data_percent or metadata_percent approaches exhaustion, stop growth and protect the origin before merge/delete; snapshot exists but restore is inconsistent, distinguish crash-consistent from application-consistent capture; merge is pending/stuck, inspect active users and pool state before forcing changes. Typical failure signatures include COW space exhaustion, thin metadata full, invalid/deleted origin dependency, excessive chain depth, snapshot held by backup, failed quiesce, merge interruption, rollback to wrong point or technically valid snapshot containing application-inconsistent data.
Step 4 Failure signatures, dependencies and operational guardrails Narrow the fault
Failure-signature and guardrail reference for Snapshots → Snapshot Troubleshooting: COW space exhaustion, thin metadata full, invalid/deleted origin dependency, excessive chain depth, snapshot held by backup, failed quiesce, merge interruption, rollback to wrong point or technically valid snapshot containing application-inconsistent data. Operational guardrail: lvs -a -o lv_name,vg_name,lv_attr,origin,data_percent,metadata_percent shows LVM metadata reported for selected volumes, not filesystem/application consistency or successful restore; deleting or merging snapshots can be irreversible, so map dependencies and show a recoverable path first. Dependencies that can mimic the same symptom are origin health, volume-group/thin-pool free data and metadata, filesystem/application quiescing, snapshot chain depth, retention jobs, backup consumers, merge prerequisites and upper-layer caches/sessions.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
zfs list -t snapshot; zpool list— spacelvs -o lv_name,data_percent— invalid LVM snapshotsvssadmin list shadows; vssadmin list writers— VSS issues
ReferenceHow it works1 section · depth on demand
How it works
Snapshots → Snapshot Troubleshooting owns snapshot origin, copy-on-write or redirect-on-write metadata/data allocation, snapshot dependency chain, retention policy, merge/rollback state and the consumer consistency point represented by the snapshot. Execution mechanics: Snapshot creation records a point-in-time relationship to an origin while subsequent writes consume COW/metadata space or new extents; reads resolve through origin and snapshot mappings, retention preserves dependencies, and merge/rollback changes ownership of extents and therefore requires both storage and application-consistency verification. Keep adjacent dependencies separate: origin health, volume-group/thin-pool free data and metadata, filesystem/application quiescing, snapshot chain depth, retention jobs, backup consumers, merge prerequisites and upper-layer caches/sessions. The mapped read surface lvs -a -o lv_name,vg_name,lv_attr,origin,data_percent,metadata_percent exposes snapshot/origin relationship, attributes and data/metadata utilization.
ReferenceImportant terms & boundaries2 sections · depth on demand
Scope and what the checks show
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.
Method
Snapshot troubleshooting resolves snapshots that fail to create, consume too much space, or cannot be restored or deleted.
zfs list -t snapshot -o name,used,refer -s used | tail
lvs -o lv_name,origin,data_percent
Get-VMSnapshot -VMName app01 | Select-Object Name, CreationTime, ParentSnapshotName
vssadmin list shadows
vssadmin list writers
| Symptom | Likely cause |
|---|---|
| Snapshot creation fails | Quiesce failure (VSS writer, guest agent), no space |
| Space grows fast | High change rate, long retention, old VM snapshots |
| LVM snapshot invalid | Snapshot volume filled to 100% |
| VM snapshot will not delete/merge | Locked files, backup software holding, insufficient space for merge |
| Restore inconsistent | Crash-consistent only; application not quiesced |
For VSS problems, vssadmin list writers shows writers in failed state; restarting the related service often clears them.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Snapshots → Snapshot Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://openzfs.github.io/openzfs-docs/man/master/8/zfs-snapshot.8.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Snapshots → Snapshot Troubleshooting proof map
Fast identity, dependency, failure-boundary and acceptance checks for Snapshots → Snapshot Troubleshooting.
| 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 |