pondelok 7. decembra 2020

when /var/log full

 when /var/log full


1. check mountpoint


df -hTP /var/log


2. check size of files 


ls -S = list by size


ls -lhS /var/log


3. If the files are syslog, kern.log, then: https://zapiskylinuxadmina.blogspot.com/2020/09/how-to-disable-logmartians.html 


4. if other files, set logrotate


vi /etc/logrotate.d/syslog


( add the files which are bigger, for example /var/log/auth.log)





5. run logrotate


logrotate -f /etc/logrotate.d/syslog


6. check mountpoint 


df -hTP /var/log/


7. watch kittens movies and enjoy Peter's songs




Žiadne komentáre:

Zverejnenie komentára