System journal size

New to Debian (Or Linux in general)? Ask your questions here!

System journal size

Postby MakeTopSite » 2021-01-20 09:05

Code: Select all
systemctl status systemd-journald
● systemd-journald.service - Journal Service
   Loaded: loaded (/lib/systemd/system/systemd-journald.service; static; vendor preset: enabled)
   Active: active (running) since Wed 2021-01-20 10:07:15 CET; 10min ago
     Docs: man:systemd-journald.service(8)
           man:journald.conf(5)
 Main PID: 318 (systemd-journal)
   Status: "Processing requests..."
    Tasks: 1 (limit: 4702)
   Memory: 99.0M
   CGroup: /system.slice/systemd-journald.service
           └─318 /lib/systemd/systemd-journald


Jan 20 10:07:15 h systemd-journald[318]: Journal started
Jan 20 10:07:15 h systemd-journald[318]: Runtime journal (/run/log/journal/6...) is 8.0M, max 170.3M, 162.3M free.
Jan 20 10:07:16 h systemd-journald[318]: Time spent on flushing to /var is 15.664555s for 636 entries.
Jan 20 10:07:16 h systemd-journald[318]: System journal (/var/log/journal/6...) is 2.0G, max 2.0G, 0B free.
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.


but

Code: Select all
cat  /etc/systemd/journald.conf
[Journal]
Storage=persistent
#Compress=yes
#Seal=yes
#SplitMode=uid
#SyncIntervalSec=5m
#RateLimitIntervalSec=30s
#RateLimitBurst=10000
SystemMaxUse=5G
#SystemKeepFree=
SystemMaxFileSize=5G
#SystemMaxFiles=100
RuntimeMaxUse=3G
#RuntimeKeepFree=
#RuntimeMaxFileSize=
#RuntimeMaxFiles=100
#MaxRetentionSec=
#MaxFileSec=1month
#ForwardToSyslog=yes
#ForwardToKMsg=no
#ForwardToConsole=no
#ForwardToWall=yes
#TTYPath=/dev/console
#MaxLevelStore=debug
#MaxLevelSyslog=debug
#MaxLevelKMsg=notice
#MaxLevelConsole=info
#MaxLevelWall=emerg
#LineMax=48K
#ReadKMsg=yes


Should not System journal have got more free space ? (0B actually)
MakeTopSite
 
Posts: 6
Joined: 2021-01-20 08:44

Re: System journal size

Postby Head_on_a_Stick » 2021-01-20 15:26

Check the free space on the filesystem for the partition that contains /var and read the man page again. SystemKeepFree is probably limiting the journal space.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13262
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: System journal size

Postby MakeTopSite » 2021-01-22 13:15

Head_on_a_Stick wrote:Check the free space on the filesystem for the partition that contains /var and read the man page again. SystemKeepFree is probably limiting the journal space.


Free space is 13 GB, total partition size 27 GB. I'll read man once again.
MakeTopSite
 
Posts: 6
Joined: 2021-01-20 08:44

Re: System journal size

Postby reinob » 2021-01-22 15:03

RTFM... -> "value is capped to 4G".

It could be that "5G" is ignored (hopefully with a warning in the log), and then a default value is used.
reinob
 
Posts: 900
Joined: 2014-06-30 11:42

Re: System journal size

Postby Head_on_a_Stick » 2021-01-23 09:45

reinob wrote:"value is capped to 4G"

That's just for the default settings.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13262
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: System journal size

Postby MakeTopSite » 2021-01-30 09:06

reinob wrote:
It could be that "5G" is ignored (hopefully with a warning in the log)


No such or similar warning in the log.

Code: Select all
# journalctl --disk-usage
Archived and active journals take up 2.0G in the file system.


Code: Select all
# du -h /var/log/journal/
2,1G   /var/log/journal/2714ae9b4deba9ba9ff
2,1G   /var/log/journal/
MakeTopSite
 
Posts: 6
Joined: 2021-01-20 08:44


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable