Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pihole Disk Shortage 99% usage #192

Open
cdwebb0 opened this issue Jun 29, 2022 · 1 comment
Open

Pihole Disk Shortage 99% usage #192

cdwebb0 opened this issue Jun 29, 2022 · 1 comment

Comments

@cdwebb0
Copy link

cdwebb0 commented Jun 29, 2022

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?

@bentkowski
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants