When updating to Debian 12 - bookworm, I noticed that the size of my Debian-installation was more than 30 Gb.
My system runs headless and I have only 782 packages installed.
After some investigation, I found taht the the problem was in /var/log/journal.
The total was more than 20Gb.
In order to remove most of the journal, I did “sudo journalctl --vacuum-time 1”
And that helped a lot.
Next I changed the configuration of journalctl: “sudo nano /etc/systemd/journald.conf”,
where I unchecked only the following lines:
SystemMaxUse=1G
SystemMaxFileSize=1G
SystemMaxFiles=25
When I do now: “sudo ls -al /var/log/journal/e32* | wc -l”,
I always have only 5 files.
When I do: sudo ls -al /var/log/journal/e32*
I always have this:
The size of system.journal and user-1000.journal are always the same, only the date changes.
I do not understand where it goes wrong.
I already commented the 3 lines with SystemMax out again, but that does not seem to help.
Thanks for your help.
My system runs headless and I have only 782 packages installed.
After some investigation, I found taht the the problem was in /var/log/journal.
The total was more than 20Gb.
In order to remove most of the journal, I did “sudo journalctl --vacuum-time 1”
And that helped a lot.
Next I changed the configuration of journalctl: “sudo nano /etc/systemd/journald.conf”,
where I unchecked only the following lines:
SystemMaxUse=1G
SystemMaxFileSize=1G
SystemMaxFiles=25
When I do now: “sudo ls -al /var/log/journal/e32* | wc -l”,
I always have only 5 files.
Code:
fred44nl@Debian:~$ sudo ls -al /var/log/journal/e32* | wc -l5fred44nl@Debian:~$
I always have this:
Code:
fred44nl@Debian:~$ sudo ls -al /var/log/journal/e32*totaal 65564drwxr-sr-x+ 2 root systemd-journal 16384 23 jun 10:05 .drwxr-sr-x+ 3 root systemd-journal 4096 16 jun 13:34 ..-rw-r-----+ 1 root systemd-journal 8388608 20 jun 11:35 system.journal-rw-r-----+ 1 root systemd-journal 58720256 20 jun 11:37 user-1000.journalfred44nl@Debian:~$
Code:
fred44nl@Debian:~$ sudo ls -al /var/log/journal/e32*totaal 65564drwxr-sr-x+ 2 root systemd-journal 16384 23 jun 10:05 .drwxr-sr-x+ 3 root systemd-journal 4096 16 jun 13:34 ..-rw-r-----+ 1 root systemd-journal 8388608 26 jun 10:22 system.journal-rw-r-----+ 1 root systemd-journal 58720256 26 jun 10:24 user-1000.journalfred44nl@Debian:~$
I already commented the 3 lines with SystemMax out again, but that does not seem to help.
Thanks for your help.
Statistics: Posted by fred44nl — 2024-06-26 08:40 — Replies 0 — Views 6