[systemd-devel] Missing previous boot system journal
陳耘志
yunchih.cat at gmail.com
Wed Nov 23 08:33:25 UTC 2016
The following commands are run with root privilege.
2016-11-22 23:52 GMT+08:00 Yun-Chih Chen <yunchih.cat at gmail.com>:
> I've explicitly enabled persistent storage in journald.conf. However, it
> seems that the system journal of previous boot is still missing; only some
> user journal persisted. Am I missing anything? Thanks in advance.
>
> I'm running on Archlinux with Linux 4.8.4 and systemd 231-4.
>
> Here's some output:
>
> $ journalctl -b -1 -k
> -- No entries --
>
> $ journalctl -b -1
> -- Logs begin at Fri 2016-02-05 00:16:50 CST, end at Tue 2016-11-22 23:35:47
> CST. --
> Nov 09 08:27:14 server systemd[19336]: Reached target Timers.
> Nov 09 08:27:14 server systemd[19336]: Listening on Sound System.
> Nov 09 08:27:14 server systemd[19336]: Starting D-Bus User Message Bus
> Socket.
> Nov 09 08:27:14 server systemd[19336]: Reached target Paths.
> Nov 09 08:27:14 server systemd[19336]: Listening on D-Bus User Message Bus
> Socket.
> Nov 09 08:27:14 server systemd[19336]: Reached target Sockets.
> Nov 09 08:27:14 server systemd[19336]: Reached target Basic System.
> Nov 09 08:27:14 server systemd[19336]: Starting Update XDG user dir
> configuration...
> Nov 09 08:27:14 server systemd[19336]: Started Update XDG user dir
> configuration.
> Nov 09 08:27:14 server systemd[19336]: Reached target Default.
> Nov 09 08:27:14 server systemd[19336]: Startup finished in 124ms.
> Nov 09 08:53:57 server systemd[19336]: Stopped target Default.
> Nov 09 08:53:57 server systemd[19336]: Stopped target Basic System.
> Nov 09 08:53:57 server systemd[19336]: Stopped target Paths.
> Nov 09 08:53:57 server systemd[19336]: Stopped target Timers.
> Nov 09 08:53:57 server systemd[19336]: Stopped target Sockets.
> Nov 09 08:53:57 server systemd[19336]: Closed D-Bus User Message Bus Socket.
> Nov 09 08:53:57 server systemd[19336]: Closed Sound System.
> Nov 09 08:53:57 server systemd[19336]: Reached target Shutdown.
> Nov 09 08:53:58 server systemd[19336]: Starting Exit the Session...
> Nov 09 08:53:58 server systemd[19336]: Received SIGRTMIN+24 from PID 6632
> (kill).
> Nov 09 08:58:54 server systemd[8229]: Reached target Timers.
> Nov 09 08:58:54 server systemd[8229]: Reached target Paths.
> Nov 09 08:58:54 server systemd[8229]: Starting D-Bus User Message Bus
> Socket.
> Nov 09 08:58:54 server systemd[8229]: Listening on Sound System.
>
> // There's only one system.journal file under /var/log/journal
> $ ls /var/log/journal/65f854e19e1d43049c5e058f1f93648f | tail
> -rw-r-----+ 1 root systemd-journal 8388608 Nov 22 22:21 user-30130.journal
> -rw-r-----+ 1 root systemd-journal 8388608 Nov 22 22:46 user-66461.journal
> -rw-r-----+ 1 root systemd-journal 8388608 Nov 22 22:46 user-66401.journal
> -rw-r-----+ 1 root systemd-journal 8388608 Nov 22 22:56 user-66358.journal
> -rw-r-----+ 1 root systemd-journal 8388608 Nov 22 23:27 user-1000.journal
> -rw-r-----+ 1 root systemd-journal 8388608 Nov 22 23:32 user-66704.journal
> -rw-r-----+ 1 root systemd-journal 25165824 Nov 22 23:37 user-10000.journal
> -rw-r-----+ 1 root systemd-journal 8388608 Nov 22 23:37 user-65979.journal
> -rw-r-----+ 1 root systemd-journal 16777216 Nov 22 23:37 system.journal
>
> $ journalctl --list-boots
> -6 8d87ad64bd304262a3fb7dd168e5b281 Fri 2016-02-05 00:16:50 CST—Fri
> 2016-02-05 01:00:15 CST
> -5 f23f466ad9b14b99ae32df044cb99f5f Sun 2016-04-24 15:29:21 CST—Sat
> 2016-04-30 10:01:31 CST
> -4 d834ef74d7504da0a10389581de5521a Sun 2016-06-19 14:02:16 CST—Sat
> 2016-07-09 10:01:31 CST
> -3 940aeff685804fe193f4e4e767234c24 Mon 2016-07-25 08:06:07 CST—Sat
> 2016-08-06 07:00:25 CST
> -2 fa52bc6f582b4df083e57863e000ffad Thu 2016-09-29 18:04:51 CST—Tue
> 2016-10-25 23:59:19 CST
> -1 2815d7f541644e9a8a9d778f1c69838e Wed 2016-11-09 08:27:18 CST—Mon
> 2016-11-21 17:57:41 CST
> 0 0ab0d3a3955241e9b16b22674046cea7 Tue 2016-11-22 21:15:26 CST—Tue
> 2016-11-22 23:40:28 CST
>
>
> Here's the content of /etc/systemd/journald.conf:
>
> [Journal]
> Storage=persistent
> #Compress=yes
> #Seal=yes
> #SplitMode=uid
> #SyncIntervalSec=5m
> #RateLimitIntervalSec=30s
> #RateLimitBurst=1000
> #SystemMaxUse=
> #SystemKeepFree=
> #SystemMaxFileSize=
> #SystemMaxFiles=100
> #RuntimeMaxUse=
> #RuntimeKeepFree=
> #RuntimeMaxFileSize=
> #RuntimeMaxFiles=100
> #MaxRetentionSec=
> #MaxFileSec=1month
> #ForwardToSyslog=no
> #ForwardToKMsg=no
> #ForwardToConsole=no
> #ForwardToWall=yes
> #TTYPath=/dev/console
> #MaxLevelStore=debug
> #MaxLevelSyslog=debug
> #MaxLevelKMsg=notice
> #MaxLevelConsole=info
> #MaxLevelWall=emerg
More information about the systemd-devel
mailing list