Sometimes due to some technical reasons like mis-configuration or due to some files missing new updated kernel doesn't get boot and stuck.
To rectify the same we have to change the kernel to old one.
First we have to boot server in rescue mode:
First of all we have to check which kernel is default on our server.
un-mount the partition:
To rectify the same we have to change the kernel to old one.
First we have to boot server in rescue mode:
First of all we have to check which kernel is default on our server.
then, you can check what all kernel available on server through:# uname -a
Then we have to mount the boot partition so that we can make changes in GRUB.# awk -F\' /^menuentry/{print\$2} /mnt/grub2/grub.cfg
After that we have to replace the old kernel name with current kernel in grubenv file.# mount /dev/sda2 /mnt
If you have single physical drive
# mount /dev/md1 /mnt
If you have RAID setup for logical volumes.
save the file.# nano /mnt/grub2/grubenv
un-mount the partition:
reboot the server now.# cd /
# umount /mnt