Jump to content

Monitoring/root disk space

From Wikitech
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This Icinga alert says the disk space on the / file system is too low.

Some things you can do are:

  • apt-get clean (deletes cached package files)
  • find largest files recursively using find and examine if any can be deleted
  • check /var/log/ and its sub directories for their sizes (du -hs *) and work your way down to find what is taking the most space
  • gzip or tar some (older) log files
  • move some files to /srv if that is mounted on a separate volume
  • create a ticket and/or ping somebody on IRC who is familiar with the service to see what can be deleted
  • create patches to add or improve logrotate setup
  • create tickets to request more disk space / hardware if really needed