[systemd-devel] Antw: [EXT] [systemd‑devel] Q: Activating persistent Journal in SLES15
Ulrich Windl
Ulrich.Windl at rz.uni-regensburg.de
Thu Aug 11 07:45:15 UTC 2022
>>> "Ulrich Windl" <Ulrich.Windl at rz.uni-regensburg.de> schrieb am 11.08.2022
um
09:29 in Nachricht <62F4AFEE020000A10004C45A at gwsmtp.uni-regensburg.de>:
> Hi!
>
> I had activated the persistent journal in SLES15 SP2 using these commands:
> # mkdir /var/log/journal
> # systemctl restart systemd‑journald.service
>
> A directory had been created automatically:
> systemd‑journald[4273]: System journal
> (/var/log/journal/e766c8d06f144b1588487221640f55b5) is 8.0M, max 4.0G, 3.9G
> free.
>
> However when I tried the same with SLES15 SP4, id did not work:
> systemd‑journald[12614]: Runtime Journal
> (/run/log/journal/1b5c6954ed9447fabb805f9da0419e15) is 8.0M, max 635.7M,
> 627.7M free.
>
> Meanwhile the first host is at SP3, but when I list the directories I see a
> difference:
> h16:~ # ll ‑d /var/log/journal/
> drwxr‑sr‑x 1 root systemd‑journal 64 Nov 30 2020 /var/log/journal/
>
> v02:~ # ll ‑d /var/log/journal/
> drwxr‑xr‑x 1 root root 0 Aug 11 09:16 /var/log/journal/
>
> I cannot remember havign changed the group or permission of
> /var/log/journal/ after creating it.
> My guess is that some package update did that change automatically, but now
> the procedure to set it up is different.
>
> Can anybody confirm?
>
> Both systems use:
> [Journal]
> #Storage=auto
>
> The SP3 host uses systemd‑246.16‑150300.7.48.1.x86_64, while the SP4 host
uses
> systemd‑249.11‑150400.8.5.1.x86_64.
>
> Regards,
> Ulrich
Hi!
It seems I found the solution, but I still wonder: Is it a bug?
After reading the manual, I tried:
v02:~ # journalctl --flush
Then I saw:
Aug 11 09:41:24 v02 systemd-journald[12614]: Time spent on flushing to
/var/log/journal/1b5c6954ed9447fabb805f9da0419e15 is 29.811ms for 2696
entries.
Aug 11 09:41:24 v02 systemd-journald[12614]: System Journal
(/var/log/journal/1b5c6954ed9447fabb805f9da0419e15) is 8.0M, max 4.0G, 3.9G
free.
Why didn't the service restart work?
The permissions are unchanged, BTW:
v02:~ # ll -d /var/log/journal/
drwxr-xr-x 1 root root 64 Aug 11 09:41 /var/log/journal/
Regards,
Ulrich
More information about the systemd-devel
mailing list