Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Filesystem Full

Direct answer

Capacity is layered: filesystem free blocks/inodes/metadata → logical volume size → thin allocation/snapshot overhead → pool/datastore → physical backend capacity.

When to use this

Use it when the symptom is “Filesystem Full”: work through the layers in order and stop at the first one that fails.

First 30 seconds

1. Find what grew: logs, dumps, backups, snapshots.

2. Deleted-but-open files hold space — restart the process.

3. Snapshots consume space.

4. Free space safely; don't delete unknown files.

5. Add alerts and fix growth.

Operational verification

growth → full → free space → prevent

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Failure and recovery traps

A filesystem ENOSPC/full condition shows allocation failed at that filesystem boundary, but it does not show the underlying storage pool is physically full.

Suspicious evidence includes 100% blocks or inodes, metadata exhaustion, open-deleted files, runaway snapshots or a lower thin/backend pool near exhaustion.

Platform / version applicability
Storage architecture and operations
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.

PlatformStorage architecture and operations · Linux
Key commanddf -hT
Scope / prerequisiteUse it when the symptom is “Filesystem Full”: work through the layers in order and stop at the first one that fails.
Verify · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
Storage 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.

1 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 Verification path Verify boundary

Application path → filesystem allocation/inodes/metadata → volume → thin/snapshot layer → pool/datastore → physical capacity → write completion

Healthy evidence shows sufficient filesystem blocks/inodes/metadata and successful original writes without same-window lower-layer capacity errors.

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
  • Filesystem full ≠ underlying disk or pool full.
  • Free bytes ≠ free inodes or metadata.
  • Deleting files ≠ immediate backend reclamation when open files, snapshots, CoW or discard behavior retain blocks.
  • Extending an LV/disk ≠ filesystem automatically grows.
Key checks
  • df -h <mount> — full
  • du -xh --max-depth=1 <mount> | sort -h | tail — largest dirs
  • lsof +L1 — deleted open files
ReferenceImportant terms & boundaries3 sections · depth on demand

Scope and what the checks show

A filesystem ENOSPC/full condition shows allocation failed at that filesystem boundary, but it does not show the underlying storage pool is physically full.

In depth

Blocks, inodes or a deleted-but-open file

"No space left on device" has three common causes, and df distinguishes the first two.

# df -hT /var
Filesystem     Type  Size  Used Avail Use% Mounted on
/dev/sda3      ext4   40G   38G     0 100% /var
# df -i /var
Filesystem      Inodes   IUsed  IFree IUse% Mounted on
/dev/sda3      2621440  412337 2209103   16% /var
# du -xh --max-depth=1 /var | sort -h | tail
# lsof +L1 | head

df(1) documents -h (human-readable), -i (inode counts), -T (file system type) and --output= for chosen columns.

Interpretation

ObservationCause
Use% 100 %Blocks exhausted
IUse% 100 %, blocks freeToo many small files (mail spools, session files, caches)
df full, du much smallerDeleted files still held open (lsof +L1), or data hidden under a mount point
Avail 0 while Used < Sizeext4 reserved blocks for root

Recover safely

1. Find the growth: du -xh --max-depth=1 from the mount point down.

2. Truncate logs that are still open instead of deleting them: : > /var/log/app.log.

3. Restart the process holding a deleted file to release the space.

4. Expand the volume if growth is legitimate (lvextend -r).

Prevent recurrence

Alert on both block and inode usage, keep logs under rotation, and put fast-growing data (/var/lib/docker, databases, backups) on its own file system so it cannot fill /.

*The df block and inode figures illustrate capacity exhaustion with available inodes, not measurements from a mounted volume.*

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

Method

When a filesystem is full, find what grew and whether space is really free:

df -hT /var; df -i /var
du -xh --max-depth=1 /var | sort -h | tail
find /var -xdev -type f -size +1G -exec ls -lh {} \;
lsof +L1 | sort -k7 -n | tail          # deleted files still open
journalctl --disk-usage; journalctl --vacuum-size=1G

Windows: Get-PSDrive C, TreeSize/WinDirStat, vssadmin list shadowstorage, Dism /Online /Cleanup-Image /StartComponentCleanup.

Common culprits: logs without rotation, core dumps, container images and volumes (docker system df), package caches, snapshots on CoW filesystems, backups written to the wrong mount. After freeing space, fix the cause (rotation, quota, alert at 80 %).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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 docStorage architecture and operations current

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

Basis: https://docs.kernel.org/block/index.html · confidence 94%
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
filesystem fulldisk full filesystemno space left on devicefilesystem capacity issue
Embedded reference data

Quick lookup tables

Storage Troubleshooting → Filesystem Full proof map

Fast scope, dependency, failure-boundary and acceptance checks for Storage Troubleshooting → Filesystem Full.

Troubleshooting boundaryWhat to verifyProof limit
Scope / identityExact workload, object/device identity, affected hosts and incident windowSymptom naming alone is not root-cause proof
Dependency pathApplication path → filesystem allocation/inodes/metadata → volume → thin/snapshot layer → pool/datastore → physical capacity → write completionHealthy adjacent layers do not prove end-to-end health
Failure boundaryA filesystem ENOSPC/full condition proves allocation failed at that filesystem boundary; it does not prove the underlying storage pool is physically full.Correlate evidence for the same operation and timestamps
AcceptanceHealthy evidence shows sufficient filesystem blocks/inodes/metadata and successful original writes without same-window lower-layer capacity errors.Close only after the original workload/recovery test and regression check
Confirmation

Confirm action

Continue?