From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id EDB1B13838B for ; Tue, 23 Sep 2014 21:56:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9A103E08F8; Tue, 23 Sep 2014 21:56:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 84A4CE08C7 for ; Tue, 23 Sep 2014 21:56:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 4E7283402A2 for ; Tue, 23 Sep 2014 21:56:11 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Flag: NO X-Spam-Score: -1.265 X-Spam-Level: X-Spam-Status: No, score=-1.265 tagged_above=-999 required=5.5 tests=[AWL=-1.762, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=1.2, RP_MATCHES_RCVD=-0.703, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=no Received: from smtp.gentoo.org ([IPv6:::ffff:127.0.0.1]) by localhost (smtp.gentoo.org [IPv6:::ffff:127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jjjSs-5qsaV7 for ; Tue, 23 Sep 2014 21:56:01 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8B1D034014B for ; Tue, 23 Sep 2014 21:55:59 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XWY3x-00047Q-5e for gentoo-user@gentoo.org; Tue, 23 Sep 2014 23:55:57 +0200 Received: from adsl-69-234-180-5.dsl.irvnca.pacbell.net ([69.234.180.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Sep 2014 23:55:57 +0200 Received: from w41ter by adsl-69-234-180-5.dsl.irvnca.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Sep 2014 23:55:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: walt 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 Message-ID: References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: adsl-69-234-180-5.dsl.irvnca.pacbell.net User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 In-Reply-To: X-Archives-Salt: f6c42601-a09a-4cbd-83ea-3d42a623b7fb X-Archives-Hash: d7410d390efddc6c9852629f541b8423 On 09/23/2014 11:28 AM, Mike Gilbert wrote: > On Tue, Sep 23, 2014 at 1:40 PM, walt wrote: >> On 09/23/2014 07:46 AM, Rich Freeman wrote: >>> On Tue, Sep 23, 2014 at 10:27 AM, walt 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? >> >> 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.