From: walt <w41ter@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: journald refuses to put log files in /var/log/journal/ [REALLY SOLVED]
Date: Tue, 23 Sep 2014 14:55:43 -0700 [thread overview]
Message-ID: <lvsq91$n9g$1@ger.gmane.org> (raw)
In-Reply-To: <CAJ0EP433Tuu0m64+J4fQbvLqC3qY2=ZVCLFjx33pUh2wfUpOqg@mail.gmail.com>
On 09/23/2014 11:28 AM, Mike Gilbert wrote:
> On Tue, Sep 23, 2014 at 1:40 PM, walt <w41ter@gmail.com> wrote:
>> On 09/23/2014 07:46 AM, Rich Freeman wrote:
>>> On Tue, Sep 23, 2014 at 10:27 AM, walt <w41ter@gmail.com> wrote:
>>>>
>>>> I used systemctl to stop and restart systemd-journald, thinking I might
>>>> see some useful error messages. But when systemd-journal started up
>>>> again the journal file was back in /var/log/journal where I want it :)
>>>>
>>>> No idea why rebooting the machine didn't do the same thing.
>>>>
>>>
>>> Are you sure that it is solved, and that the problem won't recur on
>>> the next reboot?
>>
>> <sigh> After a reboot the journal file is back in /run/log/journal.
>>
>>> If it does, my next question (an educated guess, but a guess) would be
>>> whether you're using an initramfs,
>>
>> No, I never have.
>>
>>> I'd also look at anything
>>> that might be causing issues with /var/log/journal when journald is
>>> launched, such as that directory being on an unmounted filesystem and
>>> there not being some dependency that causes journald to notice.
>>
>> This particular machine has only root and swap partitions, so there's
>> nothing to remain unmounted during boot.
>>
>> Having reassured myself with that claim, I now spot this journal message
>> (which appears only on the 'broken' machine):
>>
>> Sep 23 07:40:46 a6 systemd[1]: Found ordering cycle on sysinit.target/start
>> Sep 23 07:40:46 a6 systemd[1]: Found dependency on local-fs.target/start
>> Sep 23 07:40:46 a6 systemd[1]: Found dependency on lvm.service/start
>> Sep 23 07:40:46 a6 systemd[1]: Found dependency on sysinit.target/start
>> Sep 23 07:40:46 a6 systemd[1]: Breaking ordering cycle by deleting job local-fs.target/start
>> Sep 23 07:40:46 a6 systemd[1]: Job local-fs.target/start deleted to break ordering cycle starting with sysinit.target/start
>>
>> I don't understand everything about that message, but it seems to imply
>> that systemd may think that the local filesystems are not mounted(?)
>>
>> Could this be causing my journald problem, maybe?
>
> Where is lvm.service coming from? I suspect it is causing the ordering cycle.
Great pickup, thanks Mike.
I took lvm.service from either Arch or Fedora way back when gentoo first
introduced systemd. For whatever reason my lvm volumes weren't being activated
during bootup. The lvm.service file fixed that for a long time and caused no
trouble until recently.
I just disabled the lvm.service and rebooted: the journal file is back in
/var/log/journal where it should be :)
Just as important, the lvm filesystem is properly mounted during bootup, so
somewhere along the line that problem got fixed independently of systemd.
Thanks again Mike, Rich, and Canek. Excellent help and much appreciated.
prev parent reply other threads:[~2014-09-23 21:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-23 0:41 [gentoo-user] journald refuses to put log files in /var/log/journal/ walt
2014-09-23 0:52 ` Rich Freeman
2014-09-23 3:50 ` Canek Peláez Valdés
2014-09-23 14:27 ` [gentoo-user] Re: journald refuses to put log files in /var/log/journal/ [SOLVED] walt
2014-09-23 14:46 ` Rich Freeman
2014-09-23 17:40 ` [gentoo-user] Re: journald refuses to put log files in /var/log/journal/ [NOT SOLVED] walt
2014-09-23 18:28 ` Mike Gilbert
2014-09-23 18:42 ` Rich Freeman
2014-09-23 21:55 ` walt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='lvsq91$n9g$1@ger.gmane.org' \
--to=w41ter@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox