Thursday, March 4, 2021

thumbnail

Kernel Pani Error

Kernel Panic - not syncing: Attempted to kill init! 

Issue Scenario:

       Server is reachable over the network however SSH and console login fails with the following error message.



Resolution:

  • Boot the system into rescue mode:
    • To boot the system into rescue mode please use following steps:

  • You will be prompted for your keyboard and language requirements. Enter these values as you would during the installation of Red Hat Enterprise Linux.

  • Next, a screen will appear telling you that the program will now attempt to find a Red Hat Enterprise Linux installation to rescue. Select "Continue" on this screen.

  • At the "sh-3.1" prompt check df command output to see if the dev, sys, proc filesystems are mounted under the existing installation environment /mnt/sysimage or not. If these directories are not by default mounted, then please try to mount it manually as shown below:

  • mount -o bind /dev /mnt/sysimage/dev
    mount -o bind /sys /mnt/sysimage/sys
    mount -t proc /proc /mnt/sysimage/proc
    mount -o bind /dev/shm /mnt/sysimage/dev/shm

    Change root to the already installed root fs:

  •    $ chroot /mnt/sysimage

* Check the missed library is exist and also check whether its symlink

 # cd /lib64

 # ls -l | grep libc.so

lrwxrwxrwx 1 root root 12 Jan 19 2016 libc.so.6 -> libc-2.12.so


# ls -l libc-2.12.so
-rwxr-xr-x 1 root root 1926480 May 20 2015
libc-2.12.so

* If its not exist then create symlink as below and reboot the system

# ln -s /lib64/libc-2.12.so /lib64/libc.so.6

Subscribe by Email

Follow Updates Articles from This Blog via Email

No Comments

Powered by Blogger.