[RHEL5] After update all packages (including kernel) ocurrs Kernel Panic - Not syncing: Attempted to Kill Init!

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 5.4 / 5.5
  • mkinitrd-5.1.19.6-61

Issue

  • After update all packages (including kernel) ocurrs Panic (not recognize root LV)
    Kernel Panic - Not syncing: Attempted to Kill Init!
    

Resolution

You can change

    command_names = 1
    prefix = " -- "

to

    command_names = 0
    prefix = "  "

in lvm.conf OR downgrade mkinitrd and nash

    # yum downgrade mkinitrd nash -y

Root Cause

https://bugzilla.redhat.com/show_bug.cgi?id=593096

/sbin/mkinitrd script create a lvm.conf to initrd without all entries need

Diagnostic Steps

# mkdir initrd-problem
# cpio -cid -I initrd-problem/initrd-2.6.18-194.el5

# mkdir initrd-ok
# cpio -cid -I initrd-ok/initrd-2.6.18-194.el5

# diff initrd-ok/etc/lvm/lvm.conf initrd-problem/etc/lvm/lvm.conf

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments