My disk is full. How do I find out what is using the space? Print

  • 0

A full disk can stop databases, websites and email. Find the cause with these commands:

df -h                                   # free space per partition
sudo du -xh / --max-depth=1 | sort -h   # largest folders
sudo journalctl --disk-usage            # size of system logs

Common causes

  • Large log files in /var/log – clean them with sudo journalctl --vacuum-size=200M and configure logrotate.
  • Old backups stored on the server itself.
  • Docker images and volumes – check with docker system df.
  • Package caches – sudo apt clean.

Need more space permanently? Upgrade your VPS storage or choose a dedicated server with larger disks.


Was this answer helpful?

« Back