log2ram icon indicating copy to clipboard operation
log2ram copied to clipboard

Pihole Disk Shortage 99% usage

Open cdwebb0 opened this issue 2 years ago • 1 comments

I'm getting an error that /var/log is 99% full.

Error: Disk shortage (/var/log/pihole-FTL.log) ahead: 99% used /var/log: 83.9MB used, 83.9MB total

I've set the "/etc/log2ram.conf" SIZE=80M from the default 40M and "/etc/systemd/journald.conf" #SystemMaxUse=40M. This fixed the issue for a few days before it filled again. How do I stop /var/log from filling so quickly and what can I clean up?

cdwebb0 avatar Jun 29 '22 18:06 cdwebb0

Try to use logrotate, pihole has config for it in /etc/pihole/ file named logrotate

This will show you what files are your problem: sudo tree /var/log/ --du -h

more info, check compress option: http://www.skrenta.com/rt/man/logrotate.8.html https://www.digitalocean.com/community/tutorials/how-to-manage-logfiles-with-logrotate-on-ubuntu-16-04

bentkowski avatar Jul 27 '22 13:07 bentkowski