How to fix update kernel for RHEL

ในกรณีที่ Boot แล้วเกิด Error Kernel Panic ทำให้ไม่สามารถ login ได้ ให้ดำเนินการตามขั้นตอนด้านล่างเพื่อแก้ไขปัญหา

  1. เข้าหน้า portal ไปที่ instance ที่ต้องการ update kernel และทำการเข้า rescue mode

  1. กด try ubuntu และรอ boot เข้า Linux

  1. Mount partition in Linux (use Terminal)

  1. Fix initramfs

<< Example >>

cp /boot/initramfs-4.18.0-240.10.1.el8_3.x86_64.img /boot/initramfs-4.18.0-240.10.1.el8_3.x86_64.img.bak

<< Example >>

dracut -f /boot/initramfs-4.18.0-240.10.1.el8_3.x86_64.img 4.18.0-240.10.1.el8_3.x86_64

  1. Check Installed Linux Kernels

<< Example >>

kernel-4.18.0-240.10.1.el8_3.x86_64 kernel-4.18.0-240.22.1.el8_3.x86_64 kernel-4.18.0-305.12.1.el8_4.x86_64

*** หากดำเนินการแก้ไขแต่ยังไม่สามารถ Boot ได้ ให้ดำเนินการตามขั้นตอนดังนี้

  1. เข้าหน้า portal ไปที่ instance ที่ต้องการ update kernel และทำการเข้า rescue mode

  1. กด try ubuntu และรอ boot เข้า Linux

  1. Mount partition in Linux (use Terminal)

  1. Chroot

  1. Remove newest Kernel version

<< Example >>

dnf remove kernel-4.18.0-240.10.1.el8_3.x86_64 dnf remove kernel-modules-4.18.0-240.10.1.el8_3.x86_64 dnf remove kernel-core-4.18.0-240.10.1.el8_3.x86_64

Last updated

Was this helpful?