Monitoring/root disk space

From Wikitech-static
Jump to navigation Jump to search

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