Kernel panic in RHEL 5.X after being upgraded

Problem:

When upgrading from 5.8 to 5.9 (other versions also possible affected too), after the kernel upgrade, while rebooting the server you might experience a kernel panic like the following picture:

2013-06-29 21.57.49

The main troubleshooting clues are the following:

Unable to access resume device (/dev/VolGroupXX/Some_Logical_Volume)
mount: could not find filesystem ‘/dev/root’

Solution:

STEP 1

Look for “filters” in /etc/lvm/lvm.conf and disable any custom filter you may have, change the file to its original behavior like the following:

cat /etc/lvm/lvm.conf | grep filter
    # A filter that tells LVM2 to only use a restricted set of devices.
    # The filter consists of an array of regular expressions.  These
    # Don't have more than one filter line active at once: only one gets used.
    filter = [ "a/.*/" ]

STEP 2

You need to recreate a new initrd image for the kernel you might be using, for doing this task execute the following:

Example kernel being used: 2.6.18-348.el5

To recreate the initrd image type:

 mkinitrd /boot/initrd-2.6.18-348.img 2.6.18-348.el5

STEP 3

Reboot the server.

References:

http://mintojoseph.blogspot.mx/2009/06/kernel-panic-on-boot-and-lvm-filters.html

http://forums.fedoraforum.org/showthread.php?t=111565

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s