Use it when the symptom is “Capacity Exhaustion”: work through the layers in order and stop at the first one that fails.
Capacity Exhaustion
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.
1. Capacity exhaustion: immediate relief (delete safely, extend), then prevention (alerts, quotas, planning).
2. ZFS/Ceph degrade near full — act early.
3. Find growth cause.
4. Communicate.
5. Add capacity.
growth → near full → relief → expansion
Context & applicabilityCommon mistakes · platform/version boundaries
A capacity-exhaustion symptom shows some allocator could not satisfy a request, but it does not show which capacity layer is full without layered evidence.
Suspicious evidence includes ENOSPC, inode/metadata exhaustion, thin-pool pressure, snapshot reserve growth, nearfull/full pool states or repository capacity alarms.
Operational reference
Fast context before you go deeper.
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
Application allocation → filesystem/volume → thin/snapshot metadata → pool/repository allocator → physical backend → write acknowledgement
Healthy evidence shows sufficient headroom at every required layer, successful new allocation/write and alerts/trends below operational thresholds.
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.
- 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.
df -h; zpool list; ceph df— usagegrowth trend— causecleanup candidates— logs/snapshots/old data
ReferenceImportant terms & boundaries3 sections · depth on demand
Scope and what the checks show
A capacity-exhaustion symptom shows some allocator could not satisfy a request, but it does not show which capacity layer is full without layered evidence.
In depth
Capacity exhaustion is a trend problem before it is an incident
When a volume, pool or array reaches 100 %, writes fail. For thin or copy-on-write storage, performance often degrades well before that point.
Measure at every layer
$ df -h --output=source,fstype,size,used,avail,pcent,target -x tmpfs -x devtmpfs
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda2 ext4 98G 71G 22G 77% /
/dev/vg0/data xfs 2.0T 1.9T 110G 95% /srv
$ df -i /srv
# lvs -o name,data_percent,metadata_percent vg0
# zpool list -o name,size,alloc,free,cap,frag
# ceph df
df(1) documents --output= for selecting columns and -i for inodes, so the same command can feed monitoring.
Layers that can fill independently
| Layer | Fills when | Indicator |
|---|---|---|
| File system | Data grows | df Use%, inode Use% |
| Thin pool / thin LUN | Over-commit is realised | Data% / pool allocation |
| ZFS pool | Data plus snapshots | cap; slows down above ~80 % |
| Ceph | Any single OSD reaches full | ceph osd df, nearfull warnings |
| Backup repository | Retention without pruning | Repository size trend |
Thresholds and growth
| Practice | Reason |
|---|---|
| Warn and critical thresholds (for example 80 % and 90 %) | Time to act before failure |
| Days-until-full from a 30-day trend | One percentage says nothing about speed |
| Separate fast-growing data (logs, DB, containers) | One consumer cannot fill everything |
| Track reclaimable space (snapshots, old backups) | Quick relief options are known in advance |
Emergency relief
Delete or expire snapshots and old backups, truncate rotated logs, or move data. Then extend capacity and fix the growth source. Don't raise full ratios (Ceph) or reserved space limits as a permanent fix.
Illustrative example (not a system capture).
Method
Capacity exhaustion is a planning failure that becomes an incident. Response:
1. Stabilise — free space quickly: expired snapshots, old backups, temp/log data, move VMs to another datastore.
2. Prevent writes failing — extend the volume/pool/LUN if headroom exists at the layer below.
3. Find the growth — what changed in the last days (new workload, failed cleanup job, retention change, snapshot left behind)?
4. Fix monitoring — alerts at 70/80/90 % per layer (VM disk, datastore, pool, array) and on growth rate, not just level.
Thin provisioning at several layers means the bottom layer can fill while upper layers still show space — check the physical layer first.
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 Storage Troubleshooting → Capacity Exhaustion. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/block/index.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
Storage Troubleshooting → Capacity Exhaustion proof map
Fast scope, dependency, failure-boundary and acceptance checks for Storage Troubleshooting → Capacity Exhaustion.
| 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 |