Centos 8 wont boot after yum update

Issues related to applications and software problems and general support
sbdcunha
Posts: 32
Joined: 2013/09/17 11:51:24

Centos 8 wont boot after yum update

Post by sbdcunha » 2021/02/11 19:00:33

Dear All,

I have upgraded my Centos 7 servers with a new Centos 8.2 Install and after the reboot Centos 8 refuses to boot.
I am presented with the below 3 options at boot

1 vmlinuz-4.18.0-240.1.1.el8_3.x86_64
2 vmlinuz-4.18.0-193.28.1.el8_2.x86_64

the default being no 1

if I select no 2 the older kernel it works fines and no issues

i used grubby to make my default kernel no 2 at all is well

Appreciate if some can help and advise..


Regards
simon

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 8 wont boot after yum update

Post by TrevorH » 2021/02/11 19:19:39

Boot the working one and run yum reinstall kernel-4.18.0-240.1.1.el8_3.x86_64 and see if that helps.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

sbdcunha
Posts: 32
Joined: 2013/09/17 11:51:24

Re: Centos 8 wont boot after yum update

Post by sbdcunha » 2021/02/11 20:31:44

Dear TrevorH,

Thanks for your quick reply
will check it out

really apprecite

regards

simon

sbdcunha
Posts: 32
Joined: 2013/09/17 11:51:24

Re: Centos 8 wont boot after yum update

Post by sbdcunha » 2021/06/02 09:49:03

Dear TrevorH,

I did as you advised but no luck

if I boot from the upgraded kernel that is ... vmlinuz-4.18.0-240.1.1.el8_3.x86_64 i get lots of messages with every line prefixed with dracut and finally i get a dracut prompt

but selecting the vmlinuz-4.18.0-193.28.1.el8_2.x86_64 kernel has not issues

appreciate your advise and help.
if you need any more information please do request

Thanks and regards

simon

tunk
Posts: 1206
Joined: 2017/02/22 15:08:17

Re: Centos 8 wont boot after yum update

Post by tunk » 2021/06/02 11:58:25

The newest kernel is 4.18.0-240.22.1, maybe you
could run yum update and see if this kernel works?

sbdcunha
Posts: 32
Joined: 2013/09/17 11:51:24

Re: Centos 8 wont boot after yum update

Post by sbdcunha » 2021/06/03 06:38:31

Dear Tunk,

Thanks for your quick reply
I did a upgrade and now my kernel is

vmlinuz-4.18.0-240.22.1.el8_3.x86_64

but still face the same issue

I attach some screen shots of error messages
hope it can be of some help

Also my Server is a Cisco UCS-B200-M3

but as I said be if i choose the installation kernel that is .. vmlinuz-4.18.0-193.el8.x86_64
there is no issue at all

appreciate your advice and help

regards

simon
Attachments
pic4.jpg
pic4.jpg (84.07 KiB) Viewed 1442 times
pic3.jpg
pic3.jpg (110.75 KiB) Viewed 1442 times
pic1.jpg
pic1.jpg (88.58 KiB) Viewed 1442 times

User avatar
jlehtone
Posts: 4530
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Centos 8 wont boot after yum update

Post by jlehtone » 2021/06/03 08:14:56

Have you installed some additional (disk) driver for 193?
Something that 240 lacks. Hence the LVM fails to activate volumes.

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 8 wont boot after yum update

Post by TrevorH » 2021/06/03 08:33:07

If you use lsinitrd /boot/initramfs-4.18.0-240.22.1.el8_3.x86_64 and the same command against the working kernel's initramfs then compare the two (ignoring dates & times etc) then you should be able to see if the working one includes files/drivers that are not in the new one.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

sbdcunha
Posts: 32
Joined: 2013/09/17 11:51:24

Re: Centos 8 wont boot after yum update

Post by sbdcunha » 2021/06/03 09:16:31

Dear jlehtone, trevorh

Thanks for the quick response

You are right i did install Centos 8.2 x64 using the inst dd option at boot since the Cisco UCS-B200-M3 Server has a SAS megaraid raid controller which I downloaded from the https://elrepo.org/linux/dud/el8/x86_64/ site and copied to USB .
the file name is dd-megaraid_sas-07.710.50.00-1.el8_2.elrepo.iso
and then I did an upgrade

kindly advise how to have this driver inserted into the new kernel

Thanks and regards

simon

User avatar
jlehtone
Posts: 4530
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Centos 8 wont boot after yum update

Post by jlehtone » 2021/06/03 09:43:28

The dd-*.el8_2.elrepo.iso is a disk image that contains a tiny yum repository of driver packages.
The same RPMs are available in main ELRepo repository.

If you look with:

Code: Select all

dnf list installed kmod\*
Then you probably see that driver package to have been installed from @DD-1, or something like that.

Code: Select all

dnf list --showduplicates $name_of_that_package
Should show what ELRepo has now (if you have 'elrepo' configured&enabled).

Note that there are already el8_4 packages that work only with yet to be released RHEL 8.4-based kernel (305?).

With 240 we need the el8_3 version.


Frankly, I'm not entirely sure how the update of driver package goes. It definitely places the kernel module files in some /lib/modules tree and adds links to other kernel version's trees. Furthermore, since this driver is required before /lib/modules is accessible, it must be added to the initramfs image(s)*.
(The part I don't know is whether the new driver is auto-added to image of old kernel, where it does not work and thus would break that too.)


*When machine boots, UEFI loads bootloader. Bootloader loads two files: kernel and initramfs. The initramfs is contains filesystem; files. The kernel can load files (drivers) from the initramfs. With those drivers kernel can activate and mount the filesystems that are on HDD/SSD/iscsi.

Post Reply