From: covici@ccs.covici.com
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] problems getting systemd to work
Date: Thu, 15 May 2014 08:38:14 -0400 [thread overview]
Message-ID: <11944.1400157494@ccs.covici.com> (raw)
In-Reply-To: <5374B018.40407@xunil.at>
Stefan G. Weichinger <lists@xunil.at> wrote:
> Am 15.05.2014 13:50, schrieb covici@ccs.covici.com:
> > Canek Peláez Valdés <caneko@gmail.com> wrote:
> >
> >> On Thu, May 15, 2014 at 1:18 AM, Canek Peláez Valdés <caneko@gmail.com> wrote:
> >>> On Wed, May 14, 2014 at 5:26 PM, <covici@ccs.covici.com> wrote:
> >>> [snip]
> >>>>
> >>>> Well, the workaround sort of worked -- it went through the initrd -- I
> >>>> had debug in the kernel command line, but it did not stop for nothing!
> >>>> When it went to the real root, however it did not activate any of the
> >>>> lvm volumes I had except for what I specified in the kernel command
> >>>> line, causing things not to work well. Also, I noticed that if insisted
> >>>> on using the predictable network names, even though I have
> >>>> /etc/udev/rules.d/70-persistent-net.rules and
> >>>> /etc/udev/rules.d/80-name-slot.rules which work fine in openrc to give
> >>>> me back my eth* names. So all in all, it was a mess and took me to an
> >>>> emergency shell and that was the end of that. I did eventually activate
> >>>> some volumes by lvchange -aay, but obviously that would not work well.
> >>>
> >>> OK, I was a little mystified about why dracut-036 worked on my system
> >>> and 037 didn't. Before I tried any workaround, I wanted to know what
> >>> changed from the previous version to the current one.
> >>>
> >>> So I generated an initramfs with dracut-036-r4 and another one with
> >>> dracut-037-r1, and I tried to see what changed from one to the other.
> >>> The answer is surprisingly easy: in /etc/cmdline.d/, the following
> >>> files where in the 036-r4 version, but not in the 037-r4:
> >>>
> >>> 90crypt.conf
> >>> 90lvm.conf
> >>> 90mdraid.conf
> >>> base.conf
> >>>
> >>> Te contents of those files are (90crypt.conf is empty):
> >>>
> >>> 90lvm.conf
> >>> rd.lvm.lv=vg/vol1
> >>> rd.lvm.lv=vg/vol4
> >>> rd.lvm.lv=vg/vol3
> >>>
> >>> 90mdraid.conf
> >>> rd.md.uuid=f4a59e68:fbe4039f:a39fc86d:e9e91e12
> >>>
> >>> base.conf
> >>> ro
> >>>
> >>> So I just changed my /etc/default/grub file:
> >>>
> >>> GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd quiet nosplash
> >>> rd.lvm.lv=vg/vol1 rd.lvm.lv=vg/vol4 rd.lvm.lv=vg/vol3
> >>> rd.md.uuid=f4a59e68:fbe4039f:a39fc86d:e9e91e12"
> >>>
> >>> I regenerated my GRUB2 config, and now again my LVM test system works
> >>> perfectly with the latest dracut version.
> >>
> >> I'm an idiot; I didn't saw the documentation about hostonly_cmdline;
> >> BTW Jc, you used host_cmdline, I think the former is the correct one.
> >>
> >> So, to resume: there is no bug, is just that before hostonly_cmdline
> >> was yes by default, and now is no by default. This change was
> >> documented, but I failed to notice it (and I think the ebuild in
> >> Gentoo should print an einfo message).
> >>
> >> Anyway, I think that explains all my problems; John, I don't know if
> >> it will solve yours. Again: did you used "dracut --print-cmdline" to
> >> get the command line? Also, have you tried to use -H to generate your
> >> initramfs? And finally, have you tried with --hostonly-cmdline?
> >
> > OK, I was looking through the journal output and I think the key to the
> > lvm's not activating is the following:
> > 4 12:54:57 ccs systemd[1]: Got notification message for unit
> > systemd-journald.service
> > 4 12:54:57 ccs systemd[1]: systemd-journald.service: Got notification
> > message from PID 1750 (WATCHDOG=1...)
> > 4 12:54:57 ccs systemd[1]: systemd-journald.service: got WATCHDOG=1
> > 4 12:54:57 ccs systemd[1]: Received SIGCHLD from PID 2603 (lvm).
> > 4 12:54:57 ccs systemd[1]: Child 2602 (lvm) died (code=exited,
> > status=5/NOTINSSTALLED)
> > 4 12:54:57 ccs systemd[1]: Child 2603 (lvm) died (code=exited,
> > status=5/NOTINSSTALLED)
> > 4 12:54:57 ccs systemd[1]: Child 2610 (lvm) died (code=exited,
> > status=5/NOTINSSTALLED)
> > 4 12:54:57 ccs systemd[1]: Job
> > dev-mapper-linux\x2d\x2dfiles\x2dportage.device/start timed out.
> >
> > So what is not installed?
>
> My search tells me that this might be a misinterpreted return code.
> I might repeat myself but the thread gets quite large now:
>
> Did you enable lvm2-lvmetad.service or socket (and set use_lvmetad=1 in
> lvm.conf)?
Yep, did not see that starting.
>
> I think you don't have to, I just ask to check.
>
> What release of lvm2, btw?
105-r2
>
> > Also, for the first two lines, I get hundreds of thatpair of lines, how
> > can I prevent such.
>
> The PID1 stuff ?
Nope, the notifications about journald and watchdog=1
>
> > So, between the lvm problem and the udev renaming my eth0 devices these
> > are the key as to why things are going wrong -- with openrc udev is not
> > renaming eth0 at all.
>
> We'll take care of eth0 as well as soon your box boots correctly ;-)
>
>
> Stefan
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
covici@ccs.covici.com
next prev parent reply other threads:[~2014-05-15 12:38 UTC|newest]
Thread overview: 72+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-12 7:22 [gentoo-user] problems getting systemd to work covici
2014-05-12 7:53 ` Canek Peláez Valdés
2014-05-12 10:15 ` covici
2014-05-12 14:50 ` Jc García
2014-05-12 16:22 ` covici
2014-05-12 20:10 ` Jc García
2014-05-12 22:45 ` covici
2014-05-13 3:46 ` covici
2014-05-13 12:17 ` Stefan G. Weichinger
2014-05-13 12:29 ` covici
2014-05-13 12:35 ` Stefan G. Weichinger
2014-05-13 13:18 ` covici
2014-05-13 13:35 ` Jc García
2014-05-13 13:53 ` covici
2014-05-13 13:02 ` Jc García
2014-05-13 13:16 ` Jc García
2014-05-13 13:43 ` covici
2014-05-13 14:15 ` Jc García
2014-05-12 15:29 ` Canek Peláez Valdés
2014-05-12 16:31 ` covici
2014-05-12 16:37 ` Canek Peláez Valdés
2014-05-12 16:52 ` covici
2014-05-12 17:01 ` Canek Peláez Valdés
2014-05-14 9:40 ` covici
2014-05-14 14:41 ` Jc García
2014-05-14 23:18 ` wraeth
2014-05-14 9:43 ` covici
2014-05-14 12:38 ` Jc García
2014-05-14 14:44 ` Canek Peláez Valdés
2014-05-14 15:05 ` covici
2014-05-14 15:33 ` Canek Peláez Valdés
2014-05-14 15:42 ` covici
2014-05-14 15:46 ` Jc García
2014-05-14 15:51 ` Canek Peláez Valdés
2014-05-14 15:55 ` Jc García
2014-05-14 16:18 ` Canek Peláez Valdés
2014-05-14 16:38 ` covici
2014-05-14 17:01 ` Stefan G. Weichinger
2014-05-14 16:40 ` Jc García
2014-05-14 22:26 ` covici
2014-05-15 6:18 ` Canek Peláez Valdés
2014-05-15 6:47 ` Canek Peláez Valdés
2014-05-15 9:48 ` covici
2014-05-15 18:13 ` Canek Peláez Valdés
2014-05-15 11:50 ` covici
2014-05-15 12:16 ` Stefan G. Weichinger
2014-05-15 12:38 ` covici [this message]
2014-05-15 12:44 ` Stefan G. Weichinger
2014-05-15 13:27 ` Jc García
2014-05-15 13:14 ` Jc García
2014-05-15 9:39 ` covici
2014-05-15 9:59 ` Stefan G. Weichinger
2014-05-15 10:19 ` covici
2014-05-15 12:02 ` Stefan G. Weichinger
2014-05-15 12:27 ` covici
2014-05-15 18:23 ` Canek Peláez Valdés
2014-05-15 18:25 ` Stefan G. Weichinger
2014-05-15 20:38 ` covici
2014-05-15 22:01 ` Stefan G. Weichinger
2014-05-16 0:43 ` covici
2014-05-16 9:42 ` Canek Peláez Valdés
2014-05-16 10:53 ` covici
2014-05-16 12:42 ` Stefan G. Weichinger
2014-05-16 17:01 ` Canek Peláez Valdés
2014-05-16 17:17 ` covici
2014-05-16 17:41 ` Canek Peláez Valdés
2014-05-16 18:11 ` covici
2014-05-16 18:28 ` Canek Peláez Valdés
2014-05-16 18:33 ` covici
2014-05-16 12:46 ` covici
2014-05-16 17:02 ` Canek Peláez Valdés
2014-05-15 14:14 ` Tom H
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=11944.1400157494@ccs.covici.com \
--to=covici@ccs.covici.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