Open AleXSR700 opened 11 months ago
It works for me if I set the --vacuum-size
to something more aggressive:
sudo journalctl --vacuum-size=10M
@sysadmiral you're right, I had a same problem and same solution. The thing is, journalctl isn't the only one adding entries in /var/log. Total size of /var/log can be retrieved by
sudo du -sh /var/log
23M /var/log
This puzzled me for a while, since I had SystemMaxUse=20M
in my /etc/systemd/journald.conf
and we clearly see, that /var/log is already bigger than that. (In my /etc/log2ram.conf
I had SIZE=40M
) which was still causing issues, because my /var/log was bigger than 40MB, even though /var/log/journal was <=20MB that couple days ago. Since then I vacuumed to 0.1s
As a proof - list of entries, sorted by largest can be found running command from https://github.com/azlux/log2ram#existing-content-in-varlog-too-large-for-ram In my case, journal takes up only 2.6M out of total 23M /var/log size:
sudo du -hs /var/log/* | sort -h | tail -n 10
344K /var/log/syslog.2.gz
352K /var/log/wtmp
388K /var/log/auth.log.1
532K /var/log/daemon.log
744K /var/log/syslog
1.8M /var/log/kern.log.1
1.8M /var/log/messages.1
2.6M /var/log/journal
5.1M /var/log/daemon.log.1
7.0M /var/log/syslog.1
For the time being I set following, since I'm already using zram for my swap:
SIZE=64M
ZL2R=true
LOG_DISK_SIZE=128M
This means, if I understand it correctly, that I effectively have up to 128MB for /var/log which gets compressed to zram where it occupies up to 64MB.
I also reduced SystemMaxUse=10M
in my /etc/systemd/journald.conf
as I don't care about logs.
This will hopefully suffice until I upgrade for nuc with proper ssd and expandable ram.
Hi everyone,
after performing
sudo journalctl --vacuum-size=32M
I still cannot get log2ram to start.Can anybody see what the issue is? Maybe it is something really simple, but I just don't understand it :(