Skip to content

VPS

Linux Disk Full: Checking Space, Inodes and the Right Filesystem

Find the exhausted filesystem before removing data or expanding a VPS disk.

Disk spaceInodesdfdu
Reading time
2 min read
Published
Updated
Maintained by
EnderHost Team

“No space left on device” can mean exhausted data space or exhausted inodes. Identify the filesystem containing the failed write before deleting anything. Free space on another mounted volume does not help the full destination.

Check the mount and inode use

df -h
df -i
du -xhd1 /var 2>/dev/null

These GNU/Linux examples report mounted filesystem capacity, inode usage and a one-level directory summary under /var. The du command stays on one filesystem and can take time on a large directory. Without sufficient read permissions its results may omit data; inspect permission errors when the totals seem incomplete.

Observation
FindingInterpretation
High byte usageLarge files or many accumulated files need investigation
High inode usageMany small files may be exhausting metadata capacity
df and du disagreeCheck mount boundaries, permissions and deleted-but-open files
Only one mount is fullMove or expand the relevant storage, not an unrelated volume

Make room without discarding live state

Start with known disposable artifacts under the owning application’s retention policy. Preserve useful failure logs before cleanup. Do not delete database files, container storage internals or unfamiliar system directories to gain space quickly.

  1. Stop or reduce the workload generating uncontrolled growth.
  2. Identify the owner and purpose of the largest or most numerous files.
  3. Confirm backups for data that must be retained.
  4. Use the application’s supported cleanup or rotation mechanism.
  5. Recheck free space and confirm the failed application can write normally.

If a deleted file remains open, its space may not be released until the owning process closes it. Arrange a controlled application restart only after identifying that process and its impact. A larger virtual disk may also need partition and filesystem expansion; purchasing capacity does not prove that the filesystem has grown.

Set log retention to prevent recurrence and keep backups outside the filesystem you are repairing.

Sources and references

Hosting documentation. Publication and update dates reflect this edition.

Related articles

Related topics

Hardware we trust. Software you know.

PREPARING YOUR EXPERIENCE