Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

Disk Full

Direct answer

Disk full means a filesystem has no free blocks (or no free inodes), so writes fail with "No space left on device".

When to use this

Use it when writes fail, services crash, or df shows 100 %.

First 30 seconds

1. df -h and df -i — which filesystem?

2. du -xh --max-depth=1 <mount> | sort -h | tail — where?

3. lsof +L1 — deleted files still open?

4. Clean safely: journalctl --vacuum-size=500M, apt clean/dnf clean all, old kernels, rotated logs.

5. Prevent: rotation, monitoring, or more space.

Operational verification

data written → blocks/inodes used → filesystem fills → writes fail

Evidence · next step

For Linux Troubleshooting → Disk Full, continue with the first unproven Topic check: Identify exact failing path, mount, filesystem and namespace; capture block and inode utilization. If that boundary is healthy, advance to the adjacent check: Check quotas/reserved space, deleted-open files, separate mounts, snapshots/thin pools and recent growth. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
linux
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformlinux
Key commanddf -hT
Scope / prerequisiteUse it when writes fail, services crash, or df shows 100 %.
Verify · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
Linux command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

7 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational evidence path Verify boundary

Healthy evidence: capacity, inode, quota and hidden-allocation evidence reconcile, the growth source is identified, safe remediation restores headroom and the original write succeeds without immediate recurrence.

Step 2 Command read-back and what it shows Verify boundary

Read back Linux Troubleshooting → Disk Full with df -hT. Known-good is the affected mount has documented block headroom, inode/quota state is not exhausted, and the original write or workload operation succeeds without immediate regrowth; broken/suspicious remains when the mount remains exhausted, the original write still fails, or space returns only briefly because the growth source continues. Classify success only when the expected discriminator is present, then repeat the original acceptance/workload test and one adjacent regression check. df -hT shows filesystem block-capacity accounting for mounted filesystems at that moment, but it does not show inode/quota state, largest-file causation or durable application recovery.

Step 3 Commands Verify boundary
df -h ; df -i
du -xh / --max-depth=2 2>/dev/null | sort -h | tail
lsof +L1   # deleted files still open
Step 4 Verification and output interpretation Verify boundary

Existing fast checks for this Topic. - Identify exact failing path, mount, filesystem and namespace; capture block and inode utilization.

  • Check quotas/reserved space, deleted-open files, separate mounts, snapshots/thin pools and recent growth.
  • Locate the producer of growth before deleting or truncating data.
  • Free/extend capacity safely, then repeat the original write/workload and verify headroom plus recurrence controls.
Step 5 Failure modes and next checks Narrow the fault

Suspicious evidence: du and df mismatch is ignored, deleted-open files are missed, wrong mount namespace is inspected, or arbitrary files are deleted without proving the growth source.

Step 6 Observation-driven branch and next-check logic Narrow the fault

Start from the exact failing target and timestamp. Capture df -hT before mutation. Branch on evidence: if the target mount is near full, identify top growth and retention before changing capacity; if block space is healthy but writes fail, inspect inodes/quotas and deleted-open files; if local filesystem looks healthy, move to thin-pool/backend or application-specific limits. Treat an error, failed result, unexpected state or missing object as a branch trigger and move only one boundary at a time.

Step 7 Common mistakes Narrow the fault
  • Deleting open log files (space not freed until the process restarts).
Evidence references

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.

observation · 1
Key points

Check both space and inodes. Deleted files held open by processes still use space (lsof +L1). Logs, package caches, old kernels and container images are common culprits. Root reserve (5 % on ext4) is only for root.

Key checks
  • journalctl -b -p err — errors this boot
  • systemctl --failed — failed units
  • df -h; df -i — space and inodes
  • ss -tulpn — listening sockets
  • dmesg -T | tail — recent kernel messages
ReferenceWhat it is1 section · depth on demand

Core model

Pin the filesystem/mount namespace that the failing process actually uses. Compare df block/inode usage, quotas and backing device/LVM state, then reconcile path-based usage with open deleted files and mount boundaries.

ReferenceHow it works1 section · depth on demand

How it works

Linux Troubleshooting → Disk Full owns mounted filesystem allocation, free-block accounting, inode availability, quotas and open-but-deleted file references that can retain space after a pathname disappears. Writes consume filesystem allocation units and metadata; df reports filesystem block accounting while inode exhaustion, user/project quotas and deleted-open files can block writes even when one headline percentage looks acceptable. Keep adjacent boundaries separate: volume/LVM thin-pool capacity, snapshot retention, application log growth and backend storage availability remain adjacent but separate boundaries. Diagnostic distinction: a full mount is a symptom boundary, not evidence that the largest visible file is the root cause, and block headroom does not show inode or quota headroom.

ReferenceImportant terms & boundaries4 sections · depth on demand

What this shows and what it does not

Disk Full owns capacity symptom isolation; Filesystem, Storage/LVM, Logging/logrotate, Containers and application branches own specialist remediation.

In depth

Blocks, inodes, deleted-but-open files, reserved space

$ df -h /var
Filesystem               Size  Used Avail Use% Mounted on
/dev/mapper/vg-var        20G   19G     0 100% /var
$ df -i /var
Filesystem               Inodes IUsed IFree IUse% Mounted on
/dev/mapper/vg-var      1310720 81234 1229486    7% /var
$ sudo du -xh --max-depth=1 /var | sort -h | tail
$ sudo lsof -nP +L1 | head          # deleted files still held open
COMMAND  PID USER  FD  TYPE DEVICE  SIZE/OFF NLINK  NODE NAME
java    2211 app  12w  REG  253,3 6442450944     0 13021 /var/log/app/app.log (deleted)
FindingMeaningFix
du total much smaller than df usedDeleted files held openRestart the process (or truncate via : > /proc/2211/fd/12)
IUse% 100 % with free blocksInode exhaustion (millions of small files)Delete files (sessions, cache); recreate with more inodes
Avail 0 while Use% < 100 %ext reserved blocks in useNormal protection for root — see below
Space hidden under a mount pointData written before the mountBind-mount / elsewhere and du the underlying directory

Reserved blocks on ext4

The tune2fs manual describes -m as the percentage of the file system that only privileged processes may allocate — normally 5 %. On a large data volume that is a lot of space:

$ sudo tune2fs -l /dev/mapper/vg-data | grep -i 'reserved block count'
$ sudo tune2fs -m 1 /dev/mapper/vg-data      # data volume: 1 %

Keep the reserve on / and /var — it lets root log in and clean up when users fill the disk.

Usual consumers

LocationTypical causeSafe cleanup
/var/logUnrotated application logsLogrotate config; journalctl --vacuum-size=1G
/var/lib/dockerImages, stopped containers, volumesdocker system df, then targeted prune
/var/cache/apt, /var/cache/dnfPackage cacheapt-get clean / dnf clean all
/tmpAbandoned temp filessystemd-tmpfiles --clean
Core dumpsCrash loopscoredumpctl list, limits in coredump.conf

Fix the cause (rotation, retention, alerting at 80 %), not only the symptom.

*The df block and inode counters are fictional values demonstrating different causes of storage exhaustion.*

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

How it works at runtime

Disk Full is part of Linux Troubleshooting → Disk Full. Disk Full distinguishes block/filesystem capacity exhaustion from inode exhaustion, reserved blocks, quotas, deleted-open files, mount-overlay mistakes, snapshots/thin pools and unexpected growth paths.

Topic-specific state model. Disk Full distinguishes block/filesystem capacity exhaustion from inode exhaustion, reserved blocks, quotas, deleted-open files, mount-overlay mistakes, snapshots/thin pools and unexpected growth paths.

Interpretation rule. - df 100% ≠ the largest visible directory explains the usage.

  • du total ≠ filesystem allocation when deleted-open files or snapshots exist.
  • Free blocks ≠ user can allocate when quota/reserve/inodes are exhausted.
  • Deleting a file ≠ space is reclaimed while a process holds it open.

Method

Disk full:

df -hT; df -i
du -xh --max-depth=1 / 2>/dev/null | sort -h | tail
find / -xdev -type f -size +1G -exec ls -lh {} \; 2>/dev/null
lsof +L1                              # deleted files still held open
journalctl --disk-usage; journalctl --vacuum-size=500M
docker system df
CauseFix
Large logslogrotate config, journald SystemMaxUse=
Deleted-but-open fileRestart the process holding it (or truncate via /proc/<pid>/fd/N)
Inodes exhaustedMany small files (sessions, caches)
Reserved blocks (ext4)5 % for root — tune2fs -m 1 on data volumes
Container images/volumesdocker system prune, image retention

Then add monitoring at 80 % and grow the volume (LVM) if growth is legitimate.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
ReferenceConfiguration & state1 section · depth on demand

Configuration, persistence and lifecycle

Distribution/platform context. Disk Full owns capacity symptom isolation; Filesystem, Storage/LVM, Logging/logrotate, Containers and application branches own specialist remediation.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor doclinux current

Authoritative/upstream documentation reviewed for bounded claims in Linux Troubleshooting → Disk Full. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://docs.kernel.org/ · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Terminology layer

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.

Aliases that resolve here
linux disk fullno space left on deviceinode full linuxdf du mismatch
Embedded reference data

Quick lookup tables

Disk Full operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for Disk Full.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateDisk Full distinguishes block/filesystem capacity exhaustion from inode exhaustion, reserved blocks, quotas, deleted-open files, mount-overlay mistakes, snapshots/thin pools and unexpected growth paths.Establish exactly what this Topic owns before crossing into another subsystem.
Fast verificationPin symptom + exact time + host/boot/user → define scope + expected baseline → preserve original failing test → collect targeted kernel/process/service/storage/network/security/log evidence → identify first divergent boundary → make one minimal reversible change → repeat original test → verify adjacent regressions and retain before/after evidence.Use the shortest evidence path first; a fast check is a boundary test, not blanket proof.
Verification chainsymptom + exact time → scope + baseline → reproduce original failure → collect first-party evidence → identify first failed boundary → minimal controlled change → repeat original test → regression/posture checkTrace requested/configured state through effective state to the observed workload result.
Failure boundaryDisk Full troubleshooting is complete only when evidence localizes the first failed Linux boundary and the original failing workload passes after the smallest justified change; intermediate command success is not final proof.Stop broad troubleshooting at the first boundary that is not supported by evidence.
Positive evidenceCorrelated Linux troubleshooting evidence can establish this proof path: symptom + exact time → scope + baseline → reproduce original failure → collect first-party evidence → identify first failed boundary → minimal controlled change → repeat original test → regression/posture checkUse this observation only for the specific claim it actually supports.
Evidence limitIt does not independently prove behavior outside the captured host, boot, process/user, dependency, time or workload scope. Disk Full troubleshooting is complete only when evidence localizes the first failed Linux boundary and the original failing workload passes after the smallest justified change; intermediate command success is not final proof.Do not promote a local success signal into end-to-end or adjacent-dependency proof.
Next troubleshooting checkContinue from the first unproven boundary: reproduce the exact original failure, collect the owning subsystem evidence at the same time, change only the proven cause or prerequisite, then repeat the original workload and regression checks.Continue to the next unresolved boundary while preserving the original test condition.

Disk Full · operational reference

Compact Linux state, persistence, verification and boundary reference for fast lookup.

Reference boundaryDisk Full
Topic pathLinux Troubleshooting → Disk Full
Runtime stateDisk Full distinguishes block/filesystem capacity exhaustion from inode exhaustion, reserved blocks, quotas, deleted-open files, mount-overlay mistakes, snapshots/thin pools and unexpected growth paths.
Fast checks- Identify exact failing path, mount, filesystem and namespace; capture block and inode utilization. - Check quotas/reserved space, deleted-open files, separate mounts, snapshots/thin pools and recent growth. - Locate the producer of growth before deleting or truncating data. - Free/extend capacity safely, then repeat the original write/workload and verify headroom plus recurrence controls.
Verification chainsymptom + exact time → scope + baseline → reproduce original failure → collect first-party evidence → identify first failed boundary → minimal controlled change → repeat original test → regression/posture check Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary.
Failure boundaryDisk Full troubleshooting is complete only when evidence localizes the first failed Linux boundary and the original failing workload passes after the smallest justified change; intermediate command success is not final proof. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload.
Persistence ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?