Gentoo Archives: gentoo-user

From: "Stefan G. Weichinger" <lists@×××××.at>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] problems getting systemd to work
Date: Thu, 15 May 2014 12:44:41
Message-Id: 5374B6AE.7050504@xunil.at
In Reply to: Re: [gentoo-user] problems getting systemd to work by covici@ccs.covici.com
1 Am 15.05.2014 14:38, schrieb covici@××××××××××.com:
2 > Stefan G. Weichinger <lists@×××××.at> wrote:
3 >
4 >> Am 15.05.2014 13:50, schrieb covici@××××××××××.com:
5 >>> Canek Peláez Valdés <caneko@×××××.com> wrote:
6 >>>
7 >>>> On Thu, May 15, 2014 at 1:18 AM, Canek Peláez Valdés <caneko@×××××.com> wrote:
8 >>>>> On Wed, May 14, 2014 at 5:26 PM, <covici@××××××××××.com> wrote:
9 >>>>> [snip]
10 >>>>>>
11 >>>>>> Well, the workaround sort of worked -- it went through the initrd -- I
12 >>>>>> had debug in the kernel command line, but it did not stop for nothing!
13 >>>>>> When it went to the real root, however it did not activate any of the
14 >>>>>> lvm volumes I had except for what I specified in the kernel command
15 >>>>>> line, causing things not to work well. Also, I noticed that if insisted
16 >>>>>> on using the predictable network names, even though I have
17 >>>>>> /etc/udev/rules.d/70-persistent-net.rules and
18 >>>>>> /etc/udev/rules.d/80-name-slot.rules which work fine in openrc to give
19 >>>>>> me back my eth* names. So all in all, it was a mess and took me to an
20 >>>>>> emergency shell and that was the end of that. I did eventually activate
21 >>>>>> some volumes by lvchange -aay, but obviously that would not work well.
22 >>>>>
23 >>>>> OK, I was a little mystified about why dracut-036 worked on my system
24 >>>>> and 037 didn't. Before I tried any workaround, I wanted to know what
25 >>>>> changed from the previous version to the current one.
26 >>>>>
27 >>>>> So I generated an initramfs with dracut-036-r4 and another one with
28 >>>>> dracut-037-r1, and I tried to see what changed from one to the other.
29 >>>>> The answer is surprisingly easy: in /etc/cmdline.d/, the following
30 >>>>> files where in the 036-r4 version, but not in the 037-r4:
31 >>>>>
32 >>>>> 90crypt.conf
33 >>>>> 90lvm.conf
34 >>>>> 90mdraid.conf
35 >>>>> base.conf
36 >>>>>
37 >>>>> Te contents of those files are (90crypt.conf is empty):
38 >>>>>
39 >>>>> 90lvm.conf
40 >>>>> rd.lvm.lv=vg/vol1
41 >>>>> rd.lvm.lv=vg/vol4
42 >>>>> rd.lvm.lv=vg/vol3
43 >>>>>
44 >>>>> 90mdraid.conf
45 >>>>> rd.md.uuid=f4a59e68:fbe4039f:a39fc86d:e9e91e12
46 >>>>>
47 >>>>> base.conf
48 >>>>> ro
49 >>>>>
50 >>>>> So I just changed my /etc/default/grub file:
51 >>>>>
52 >>>>> GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd quiet nosplash
53 >>>>> rd.lvm.lv=vg/vol1 rd.lvm.lv=vg/vol4 rd.lvm.lv=vg/vol3
54 >>>>> rd.md.uuid=f4a59e68:fbe4039f:a39fc86d:e9e91e12"
55 >>>>>
56 >>>>> I regenerated my GRUB2 config, and now again my LVM test system works
57 >>>>> perfectly with the latest dracut version.
58 >>>>
59 >>>> I'm an idiot; I didn't saw the documentation about hostonly_cmdline;
60 >>>> BTW Jc, you used host_cmdline, I think the former is the correct one.
61 >>>>
62 >>>> So, to resume: there is no bug, is just that before hostonly_cmdline
63 >>>> was yes by default, and now is no by default. This change was
64 >>>> documented, but I failed to notice it (and I think the ebuild in
65 >>>> Gentoo should print an einfo message).
66 >>>>
67 >>>> Anyway, I think that explains all my problems; John, I don't know if
68 >>>> it will solve yours. Again: did you used "dracut --print-cmdline" to
69 >>>> get the command line? Also, have you tried to use -H to generate your
70 >>>> initramfs? And finally, have you tried with --hostonly-cmdline?
71 >>>
72 >>> OK, I was looking through the journal output and I think the key to the
73 >>> lvm's not activating is the following:
74 >>> 4 12:54:57 ccs systemd[1]: Got notification message for unit
75 >>> systemd-journald.service
76 >>> 4 12:54:57 ccs systemd[1]: systemd-journald.service: Got notification
77 >>> message from PID 1750 (WATCHDOG=1...)
78 >>> 4 12:54:57 ccs systemd[1]: systemd-journald.service: got WATCHDOG=1
79 >>> 4 12:54:57 ccs systemd[1]: Received SIGCHLD from PID 2603 (lvm).
80 >>> 4 12:54:57 ccs systemd[1]: Child 2602 (lvm) died (code=exited,
81 >>> status=5/NOTINSSTALLED)
82 >>> 4 12:54:57 ccs systemd[1]: Child 2603 (lvm) died (code=exited,
83 >>> status=5/NOTINSSTALLED)
84 >>> 4 12:54:57 ccs systemd[1]: Child 2610 (lvm) died (code=exited,
85 >>> status=5/NOTINSSTALLED)
86 >>> 4 12:54:57 ccs systemd[1]: Job
87 >>> dev-mapper-linux\x2d\x2dfiles\x2dportage.device/start timed out.
88 >>>
89 >>> So what is not installed?
90 >>
91 >> My search tells me that this might be a misinterpreted return code.
92 >> I might repeat myself but the thread gets quite large now:
93 >>
94 >> Did you enable lvm2-lvmetad.service or socket (and set use_lvmetad=1 in
95 >> lvm.conf)?
96 > Yep, did not see that starting.
97 >
98 >>
99 >> I think you don't have to, I just ask to check.
100 >>
101 >> What release of lvm2, btw?
102 > 105-r2
103
104 Would you test downgrading to 2.02.104 for checking if that changes
105 something? Or 2.02.106 ...
106
107 I find various bugs on b.g.o. around lvm2 ....
108
109 Stefan