Storage · Storage Troubleshooting
Capacity Exhaustion
Cheat sheet · https://pcornel.dk/topic.php?topic=4407
Answer
Treat capacity as nested accounting boundaries rather than one percentage. A write can fail because any required allocator, reserve, metadata region or backend tier lacks headroom.
Remember
- One layer showing free space ≠ every lower or upper layer has allocatable capacity.
- Logical provisioned capacity ≠ physically allocated capacity.
- Reserved space ≠ usable application capacity.
- Deleting data ≠ immediate reclaim through snapshots, CoW or missing discard.
First checks
df -h; zpool list; ceph df— usagegrowth trend— causecleanup candidates— logs/snapshots/old data
Commands
ceph osd df
Verify in this order
growth → near full → relief → expansion
Where it usually breaks
First mismatch in media/provider → controller/pool → logical object → path/protocol → filesystem/share/object namespace → consumer workload; preserve identity/pre-state before mutation.
Storage Troubleshooting → Capacity Exhaustion proof map
| Troubleshooting boundary | What to verify | Proof limit |
|---|---|---|
| Scope / identity | Exact workload, object/device identity, affected hosts and incident window | Symptom naming alone is not root-cause proof |
| Dependency path | Application allocation → filesystem/volume → thin/snapshot metadata → pool/repository allocator → physical backend → write acknowledgement | Healthy adjacent layers do not prove end-to-end health |
| Failure boundary | A capacity-exhaustion symptom proves some allocator could not satisfy a request; it does not prove which capacity layer is full without layered evidence. | Correlate evidence for the same operation and timestamps |
| Acceptance | Healthy evidence shows sufficient headroom at every required layer, successful new allocation/write and alerts/trends below operational thresholds. | Close only after the original workload/recovery test and regression check |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4407