Gentoo Archives: gentoo-user

From: walt <w41ter@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: journald refuses to put log files in /var/log/journal/ [NOT SOLVED]
Date: Tue, 23 Sep 2014 17:41:10
Message-Id: lvsban$hj8$1@ger.gmane.org
In Reply to: Re: [gentoo-user] Re: journald refuses to put log files in /var/log/journal/ [SOLVED] by Rich Freeman
1 On 09/23/2014 07:46 AM, Rich Freeman wrote:
2 > On Tue, Sep 23, 2014 at 10:27 AM, walt <w41ter@×××××.com> wrote:
3 >>
4 >> I used systemctl to stop and restart systemd-journald, thinking I might
5 >> see some useful error messages. But when systemd-journal started up
6 >> again the journal file was back in /var/log/journal where I want it :)
7 >>
8 >> No idea why rebooting the machine didn't do the same thing.
9 >>
10 >
11 > Are you sure that it is solved, and that the problem won't recur on
12 > the next reboot?
13
14 <sigh> After a reboot the journal file is back in /run/log/journal.
15
16 > If it does, my next question (an educated guess, but a guess) would be
17 > whether you're using an initramfs,
18
19 No, I never have.
20
21 > I'd also look at anything
22 > that might be causing issues with /var/log/journal when journald is
23 > launched, such as that directory being on an unmounted filesystem and
24 > there not being some dependency that causes journald to notice.
25
26 This particular machine has only root and swap partitions, so there's
27 nothing to remain unmounted during boot.
28
29 Having reassured myself with that claim, I now spot this journal message
30 (which appears only on the 'broken' machine):
31
32 Sep 23 07:40:46 a6 systemd[1]: Found ordering cycle on sysinit.target/start
33 Sep 23 07:40:46 a6 systemd[1]: Found dependency on local-fs.target/start
34 Sep 23 07:40:46 a6 systemd[1]: Found dependency on lvm.service/start
35 Sep 23 07:40:46 a6 systemd[1]: Found dependency on sysinit.target/start
36 Sep 23 07:40:46 a6 systemd[1]: Breaking ordering cycle by deleting job local-fs.target/start
37 Sep 23 07:40:46 a6 systemd[1]: Job local-fs.target/start deleted to break ordering cycle starting with sysinit.target/start
38
39 I don't understand everything about that message, but it seems to imply
40 that systemd may think that the local filesystems are not mounted(?)
41
42 Could this be causing my journald problem, maybe?

Replies