Jack Moore

Email: jack(at)jmoore53.com
Project Updates

Space!

18 Dec 2021 » ansible, automation, configuration

Drive space has been my nemisis lately. Considering I let one VM hit 100% (monitoring VM), lately to deal with space I have been manually cleaning up /var/log where the culprit has been.

Below are a few commands I have been using to narrow down the culprit of space issues:

# Helpful commands when clearing space
du . | sort -nr | head -10

# Show how much space is being used on a drive
du -sh /file/location/

The long term solution for this issue at /var/log/remotelogs on my monitoring server is to log rotate these logs properly with logrotated.

© Jack Moore