Page 1 of 1

Journal file linux

Posted: Thu 25 Jan 2024 9:38 pm
by HansR
I think Linux users need to limit the journal file in size (RPi's don't have a limit set so eventually the journal will outgrow the storage),
  • sudo nano /etc/systemd/journald.conf and set systemMaxUse=20M (or 2G)
  • Do a journal restart: sudo systemctl restart systemd-journald

Re: Journal file linux

Posted: Fri 26 Jan 2024 1:37 am
by Cortmalaw
Good suggestion! Mine's been running for years!

Re: Journal file linux

Posted: Tue 30 Jan 2024 2:37 pm
by HansR
Aha... the reason I wrote this was that the parameter SystemKeepFree was not specified on my systems and I thought journald could dump info without limit. I should have known better of course and I later found that the default value is 15% when the system starts pruning the logs.

Nevertheless, as I found that it is possible for some software to dump an awful lot of info there so if you don't analyse or use the journals otherwise, I guess some minimisation would not be unwise. If you think it useful, read here. After all, on an RPi you are your own system manager isn't it.