CentOS 7 kernel update corrupted, stuck
I tried to update kernel by clicking on link which showed me to update kernel. Either kernel was corrupted or something else happened and server is stuck. I've booted into rescue mode. How do I proceed from here to go back to the old working kernel and get it working?
-
Hey there! I'm sorry to hear that happened on your machine. Since the problem is with the kernel itself, there wouldn't be any cPanel tools available that can help with this. The best thing to do would be to work with your hosting provider to let them know the machine is only working in rescue mode. We do have an article that explains how to manage the Grub system here: 0 -
Normally if you have a bad kernel you'd simply boot to the previous one (not into rescue). You'd need console, KVM/IP or the data center to do this for you. Once you're booted into the old kernel you can usually do yum reinstall kernel
To fix the issue with the new kernel. The most common issue we see with "broken" kernels is not giving it enough time to finish and rebuild the initrd.0 -
You have 2 options. You can open the server with kvm and start the server with the previous kernel from the boot screen, see the last corrupt kernel loaded with the rpm -q kernel command, delete the kernel with the rpm -e kernelname command. Then reinstall last kernel install yum upgrade command. Or You can do the same after mounting the disk in rescue mode and chrooting it. 0
Please sign in to leave a comment.
Comments
3 comments