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