1 |
On 2019-03-18 08:27, J. Roeleveld wrote: |
2 |
> On March 17, 2019 5:04:13 PM UTC, Dan Johansson <dan@×××.nu> wrote: |
3 |
>> On 12.03.19 12:16, J. Roeleveld wrote: |
4 |
>>> On Monday, March 11, 2019 9:31:58 PM CET Dan Johansson wrote: |
5 |
>>>> On 11.03.19 20:55, J. Roeleveld wrote: |
6 |
>>>>> On March 10, 2019 1:24:14 PM UTC, Dan Johansson |
7 |
>> <Dan.Johansson@×××.nu> wrote: |
8 |
>>>>>> After updating a server from kernel-4.14.83 to 4.19.27-r1 (same |
9 |
>> problem |
10 |
>>>>>> |
11 |
>>>>>> with 4.19.23) the server will not boot. |
12 |
>>>>>> |
13 |
>>>>>> Grub starts fine and I can select the new kernel. |
14 |
>>>>>> The kernel starts booting and after mounting "/" and "/usr" (this |
15 |
>> is a |
16 |
>>>>>> server with a separate /usr") the boot-process hangs. |
17 |
>>>>>> |
18 |
>>>>>> Here are the last few lines displayed before it hangs: |
19 |
>>>>>>>> Initializing root device... |
20 |
>>>>>>>> Detected root: /dev/md127 |
21 |
>>>>>>>> Mounting /dev/md127 as root... |
22 |
>>>>>>>> Detected fstype: ext4 |
23 |
>>>>>>>> Using mount fstype: ext4 |
24 |
>>>>>>>> Using mount opts: -o ro |
25 |
>>>>>>>> |
26 |
>>>>>> 7.6104971 EXT4-fs (md127): mounted filesystem with ordered |
27 |
>> data |
28 |
>>>>>> |
29 |
>>>>>> mode. Opts (null) |
30 |
>>>>>> |
31 |
>>>>>> 7.6572671 init (5708) used greatest stack depth: 13280 |
32 |
>> bytes left |
33 |
>>>>>>>> |
34 |
>>>>>>>> Mounting /dev/dm-O as /usr: mount -t ext4 -o |
35 |
>> noatime,user_xattr,ro |
36 |
>>>>>> |
37 |
>>>>>> /deu/dm-O /newroot/usr |
38 |
>>>>>> |
39 |
>>>>>> 7.6909561 EXT4-fs (dm-0): INFO: recouery required on |
40 |
>> readonly |
41 |
>>>>>> |
42 |
>>>>>> filesystem |
43 |
>>>>>> |
44 |
>>>>>> 7.6925551 EXT4-fs (dm-0): write access will be enabled |
45 |
>> diming |
46 |
>>>>>> |
47 |
>>>>>> recouery |
48 |
>>>>>> |
49 |
>>>>>> 7.9169781 EXT4-fs (dm-0): recovery complete |
50 |
>>>>>> 7.9223701 EXT4-fs (dm-0): mounted filesystem with ordered |
51 |
>> data |
52 |
>>>>>> |
53 |
>>>>>> mode. Opts: user_xattr |
54 |
>>>>>> |
55 |
>>>>>> 7.9233051 mount (5722) used greatest stack depth, 13000 |
56 |
>> bytes left |
57 |
>>>>>>>> |
58 |
>>>>>>>> /usr already mounted, skipping... |
59 |
>>>>>>>> Booting (initramfs) |
60 |
>>>>>> |
61 |
>>>>>> sep-usr init: running user requested applet |
62 |
>>>>>> |
63 |
>>>>>> |
64 |
>>>>>> As I said, the 4.14.83 kernel boots without problem with the same |
65 |
>>>>>> configuration. |
66 |
>>>>>> |
67 |
>>>>>> Any suggestions? |
68 |
>>>>> |
69 |
>>>>> I updated my servers last weekend and all moved to 4.19.27, 2 use |
70 |
>> ZFS for |
71 |
>>>>> the filesystem, several are VMs on top of Xen. None had any issues. |
72 |
>>>>> |
73 |
>>>>> The messages you show make me think they are from an initrd, not |
74 |
>> the |
75 |
>>>>> actual kernel. I would investigate that first and make sure your |
76 |
>> initrd |
77 |
>>>>> is actually updated as well. Did you copy the text? Or did you |
78 |
>> manage to |
79 |
>>>>> grab the output somehow? |
80 |
>>>>> |
81 |
>>>>> Also, which init system and initrd are you using? |
82 |
>>>>> |
83 |
>>>>> -- |
84 |
>>>>> Joost |
85 |
>>>> |
86 |
>>>> The text was copied from a screenshot (IPMI-KVM). |
87 |
>>>> I am using sys-apps/openrc with sys-fs/eudev and I use genkernel to |
88 |
>>>> build the kernel and the initramfs. |
89 |
>>>> |
90 |
>>>> Yes, for me it also looks like it has to do with /ginit (busybox) or |
91 |
>>>> /sbin/init (sys-apps/sysvinit) and not the kernel. |
92 |
>>>> |
93 |
>>>> I also have a bunch of other servers which all updated fine to |
94 |
>> 4.19.?? |
95 |
>>>> |
96 |
>>>> I tried the suggestion from Hasan to run "make synconfig" but that |
97 |
>> did |
98 |
>>>> not change any option in .config. |
99 |
>>>> |
100 |
>>>> I'll try to rebuild kernel/init/busybox/intel-microcode again next |
101 |
>> weekend. |
102 |
>>> |
103 |
>>> Are you booting with the updated initramfs? Or perhaps still with the |
104 |
>> initramfs belonging |
105 |
>>> to an older kernel? |
106 |
>>> |
107 |
>>> Does the server respond to SSH after a while? It might simply be that |
108 |
>> the login-prompt is |
109 |
>>> not showing on the correct console. |
110 |
>> |
111 |
>> I was able to try a reboot today again, after rebuilding the kernel, |
112 |
>> busybox, sysvinit & intel-microcode but it still hanged on "sep-usr |
113 |
>> init: running user requested applet". When the server comes to this |
114 |
>> point all disk-activities ceases. Even waiting for about 20min did not |
115 |
>> change anything and the host did not even answer to ping. |
116 |
>> |
117 |
>> So, just as a test, I removed "init=/ginit" from the kernel-boot-line |
118 |
>> and voila - the server booted again without problem :-) |
119 |
>> |
120 |
>> So there seems to be some difference on how pre 4.19 kernels and post |
121 |
>> 4.19 kernels handles separate /usr installs. |
122 |
>> |
123 |
>> I am just glad it is solved. |
124 |
>> Thanks for all suggestions. |
125 |
>> |
126 |
>> Regards, |
127 |
>> Dan |
128 |
>> |
129 |
>> |
130 |
>> |
131 |
>> |
132 |
>> |
133 |
>> -- |
134 |
>> Dan Johansson |
135 |
>> *************************************************** |
136 |
>> This message is printed on 100% recycled electrons! |
137 |
>> *************************************************** |
138 |
> |
139 |
> What is "ginit"? |
140 |
> |
141 |
> I use 2 types of initramfs. |
142 |
> One I created myself which is really simple. |
143 |
> The other is created using 'bliss-initramfs'. |
144 |
> |
145 |
> Neither of these require me to set a special init-boot option. |
146 |
> |
147 |
> I am guessing the boot fails when it tries to start 'ginit'. |
148 |
|
149 |
/ginit is a init-wrapper gets installed from sys-apps/busybox if you |
150 |
have the use flag "sep-usr" enabled (this was setup years ago so I can |
151 |
not remember the URL to the Gentoo Wiki page describing the setup). |
152 |
This was needed on this host before when I had no initramfs, after |
153 |
changing to an "initramfs-setup" this is no longer needed but it was |
154 |
still working until kernel > 4.19. |
155 |
|
156 |
Regards |
157 |
Dan |