1 |
Canek Peláez Valdés <caneko@×××××.com> wrote: |
2 |
|
3 |
> On Wed, May 14, 2014 at 5:26 PM, <covici@××××××××××.com> wrote: |
4 |
> [snip] |
5 |
> > |
6 |
> > Well, the workaround sort of worked -- it went through the initrd -- I |
7 |
> > had debug in the kernel command line, but it did not stop for nothing! |
8 |
> > When it went to the real root, however it did not activate any of the |
9 |
> > lvm volumes I had except for what I specified in the kernel command |
10 |
> > line, causing things not to work well. Also, I noticed that if insisted |
11 |
> > on using the predictable network names, even though I have |
12 |
> > /etc/udev/rules.d/70-persistent-net.rules and |
13 |
> > /etc/udev/rules.d/80-name-slot.rules which work fine in openrc to give |
14 |
> > me back my eth* names. So all in all, it was a mess and took me to an |
15 |
> > emergency shell and that was the end of that. I did eventually activate |
16 |
> > some volumes by lvchange -aay, but obviously that would not work well. |
17 |
> |
18 |
> OK, I was a little mystified about why dracut-036 worked on my system |
19 |
> and 037 didn't. Before I tried any workaround, I wanted to know what |
20 |
> changed from the previous version to the current one. |
21 |
> |
22 |
> So I generated an initramfs with dracut-036-r4 and another one with |
23 |
> dracut-037-r1, and I tried to see what changed from one to the other. |
24 |
> The answer is surprisingly easy: in /etc/cmdline.d/, the following |
25 |
> files where in the 036-r4 version, but not in the 037-r4: |
26 |
> |
27 |
> 90crypt.conf |
28 |
> 90lvm.conf |
29 |
> 90mdraid.conf |
30 |
> base.conf |
31 |
> |
32 |
> Te contents of those files are (90crypt.conf is empty): |
33 |
> |
34 |
> 90lvm.conf |
35 |
> rd.lvm.lv=vg/vol1 |
36 |
> rd.lvm.lv=vg/vol4 |
37 |
> rd.lvm.lv=vg/vol3 |
38 |
> |
39 |
> 90mdraid.conf |
40 |
> rd.md.uuid=f4a59e68:fbe4039f:a39fc86d:e9e91e12 |
41 |
> |
42 |
> base.conf |
43 |
> ro |
44 |
> |
45 |
> So I just changed my /etc/default/grub file: |
46 |
> |
47 |
> GRUB_CMDLINE_LINUX="init=/usr/lib/systemd/systemd quiet nosplash |
48 |
> rd.lvm.lv=vg/vol1 rd.lvm.lv=vg/vol4 rd.lvm.lv=vg/vol3 |
49 |
> rd.md.uuid=f4a59e68:fbe4039f:a39fc86d:e9e91e12" |
50 |
> |
51 |
> I regenerated my GRUB2 config, and now again my LVM test system works |
52 |
> perfectly with the latest dracut version. |
53 |
> |
54 |
> The thing is, I *ALWAYS* use the -H (host only) option, so it was my |
55 |
> understanding that the command line should be automatically generated, |
56 |
> and it was on 036, but now it doesn't in 037. I think that's a bug. |
57 |
> |
58 |
> John, with respect to your case: did you used "dracut --print-cmdline" |
59 |
> to get the command line? Also, have you tried to use -H to generate |
60 |
> your initramfs? |
61 |
|
62 |
I did not try the -H, I may test with that later. |
63 |
|
64 |
|
65 |
I did look at the --print-cmdline and copied the volumes they mentioned, |
66 |
but I have other lvm volumes in my fstab and none of them were activated, |
67 |
only the ones I specified in the command line! This is where I have run |
68 |
into problems. I have quite a few lvms, I want them all activated! |
69 |
|
70 |
Also, since I wrote the last message, I have been looking at the |
71 |
journalctl output and discovered a couple of things which I would like |
72 |
some help on, but getting the lvms to work is more important. |
73 |
|
74 |
First, whatever happened to DefaultControllers -- I want to disable |
75 |
those cpu hierarchies, but that option seems to have disappeared without |
76 |
a trace, although you can google and see it in some documentation. |
77 |
|
78 |
The keyword also was not accepted in an install section I have, what is |
79 |
the matter with that? I want to use my sysklogd for my syslog, how can |
80 |
I use that with systemd? |
81 |
|
82 |
Thanks so much for all your help on these things. |
83 |
|
84 |
|
85 |
-- |
86 |
Your life is like a penny. You're going to lose it. The question is: |
87 |
How do |
88 |
you spend it? |
89 |
|
90 |
John Covici |
91 |
covici@××××××××××.com |