Boot fails with new kernel.x86_64 0:3.10.0-862.14.4.el7

Issues related to hardware problems
Post Reply
acmorone
Posts: 6
Joined: 2015/03/10 17:02:43

Boot fails with new kernel.x86_64 0:3.10.0-862.14.4.el7

Post by acmorone » 2018/10/09 16:41:47

So we updated the kernel recently to 3.10.0-862.14.4. It will not boot with this new kernel. It works fine with 3.10.0-862.11.6.

When I boot with 14.4, it drops to a dracut shell after a bunch of dracut-initqueue timeouts, then a warning that my LVM root device doesn't exist. The local disk devices that are used by LVM are there.

When I try to use any lvm tools, there are none. There's nothing in /sysroot, obvously, but shouldn't there lvm tools that would allow me to troubleshoot this? Is LVM just missing from the kernel image? I'm stuck on 11.6 until I figure this out.

Edit:

I'm sorry about putting this in Hardware Support. I posted this while troubleshooting, and originally thought it might have been the Fiber HBA that was having a problem, but further troubleshooting eliminated that as an issue. I don't think I can move this post to another board but maybe a mod can?

acmorone
Posts: 6
Joined: 2015/03/10 17:02:43

Re: Boot fails with new kernel.x86_64 0:3.10.0-862.14.4.el7

Post by acmorone » 2018/10/09 18:41:06

I just booted to the working kernel and following the directions here:
https://serverfault.com/questions/89372 ... -not-found

This resulted in the working kernel failing, lol.

User avatar
TrevorH
Forum Moderator
Posts: 24046
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Boot fails with new kernel.x86_64 0:3.10.0-862.14.4.el7

Post by TrevorH » 2018/10/10 14:31:18

I suspect it's more likely that you just ran into a known problem where the initramfs file for a newly installed kernel doesn't get created under some circumstances. The easy solution for that is to just yum reinstall kernel and get it to have another go. The lvm module should be part of all initramfs files where the system uses LVM.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

acmorone
Posts: 6
Joined: 2015/03/10 17:02:43

Re: Boot fails with new kernel.x86_64 0:3.10.0-862.14.4.el7

Post by acmorone » 2018/10/10 19:05:58

Okay, I had tried re-installing the kernel, but that didn't do anything. I could still boot to another kernel, and what you wrote here made me think that maybe if I just rebuild initrd it would fix things. It was looking like the existing initrd didn't see LVM, so I also added lvm to the dracut.conf:


# dracut modules to add to the default
add_dracutmodules+="lvm"

That did it! Booted no problem!

Thanks TrevorH!!

User avatar
TrevorH
Forum Moderator
Posts: 24046
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Boot fails with new kernel.x86_64 0:3.10.0-862.14.4.el7

Post by TrevorH » 2018/10/10 20:32:53

If dracut is 'forgetting' to add the lvm module to the initramfs file for systems that use lvm then that would sound like a major bug! But all my systems use lvm and none of the ones I've upgraded to that kernel have suffered from this problem so...
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply