Docs / Troubleshooting / Server Is Running Out of Disk Space

Server Is Running Out of Disk Space

By Admin · Feb 25, 2026 · Updated Apr 23, 2026 · 325 views · 1 min read

A full disk can cause applications to crash and the system to become unstable.

Check Disk Usage

df -h

Find Large Files

du -h --max-depth=1 / | sort -rh | head -20

Common Culprits

  • Log files: du -sh /var/log — clean with journalctl --vacuum-size=100M
  • Package cache: apt clean or dnf clean all
  • Old kernels: apt autoremove -y
  • Docker images: docker system prune -a
  • Temp files: rm -rf /tmp/*

Prevention

  • Set up log rotation
  • Monitor disk usage with alerts
  • Clean up unused Docker images regularly

Was this article helpful?