V
V
Vladimir2016-09-28 11:54:49
linux
Vladimir, 2016-09-28 11:54:49

Kernel panic after reboot - is it reanimated?

Hello and flourish.
The following problem arose: it turned out that the kernel was updated, but the reboot was not performed.
Oracle Linux 6.7 system.
There are two kernels - 2.6.32-504 (current) and 2.6.32-573.22.1 (updated)

[[email protected] ~]# uname -a
Linux cf.office.dc 2.6.32-504.el6.x86_64 #1 SMP Tue Oct 14 01:47:47 PDT 2014 x86_64 x86_64 x86_64 GNU/Linux
[[email protected] ~]# yum list kernel
Installed Packages
kernel.x86_64 2.6.32-504.el6 @local_ol6_latest
kernel.x86_64 2.6.32-573.22.1.el6 installed

when rebooting a running machine, it turned out
Kernel panic - not syncing: VFS: unable to mount root fs on unknown-block(0,0)
Pid: 1, comm: swapper Not tainted 2.6.32-573.22.1.el6.x86_64

Booted from another kernel (older), found out. that there is no initrd entry. Created an initramfs with dracut, added an entry to grub:
[[email protected] ~]# dracut /boot/initramfs-2.6.32-573.22.1.el6.x86_64.img 2.6.32-573.22.1.el6.x86_64

The entry appeared and is recognized, however, when loading, the following appears:
modprobe: FATAL: Could not load /lib/modules/2.6.32-573.22.1.el6.x86_64/modules.deb, no such file or directory.

and the subsequent kernel panic.
According to Google - the problem is simply the lack of a reboot - which does not suit my situation - because I ended up rebooting. What can you suggest? Remove updated kernel and re-upgrade? Is there a guarantee that this won't happen again?

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
V
Vladimir, 2016-09-28
@n1cew0lf

Found out as a result.
the initrd image created by dracut was indeed missing the necessary files.
View modules:
[[email protected] test] gunzip -c initramfs-2.6.32-573.22.1.el6.x86_64.img | cpi --list | grep dep
[[email protected] test]
We see that there really are no modules - delete the non-working initramfs file and create a new one, but not with dracut, but with mkinitrd:
[[email protected] test]# mkinitrd initramfs-2.6.32-573.22.1.el6. x86_64.img 2.6.32-573.22.1.el6.x86_64
[[email protected]]# gunzip -c initramfs-2.6.32-573.22.1.el6.x86_64.img | cpi --list | grep dep
lib/modules/2.6.32-573.22.1.el6.x86_64/modules.dep.bin
lib/modules/2.6.32-573.22.1.el6.x86_64/modules.softdep
lib/modules/2.6.32- 573.22.1.el6.x86_64/modules.dep
[[email protected]]#

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question