Saturday, August 22, 2015

Kernel issue


[root@rmdb-db-35 ~]# diff /etc/grub.conf.1.12.2014 ../boot/grub/grub.conf
10c10,12
< default=0
---
> ###default=0 was changed to 1 to point to the old kernel because the new 348.6.1 keep panicking
> #default=0
> default=1
[root@rmdb-db-35 ~]# more ../boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/mapper/mpath2p3
#          initrd /initrd-version.img
#boot=/dev/mapper/mpath2
###default=0 was changed to 1 to point to the old kernel because the new 348.6.1 keep panicking
#default=0
default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-348.6.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-348.6.1.el5 ro root=/dev/mapper/mpath2p3
        initrd /initrd-2.6.18-348.6.1.el5.img
title Red Hat Enterprise Linux Server (2.6.18-348.1.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-348.1.1.el5 ro root=/dev/mapper/mpath2p3
        initrd /initrd-2.6.18-348.1.1.el5.img
title Red Hat Enterprise Linux Server (2.6.18-308.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-308.el5 ro root=/dev/mapper/mpath2p3
        initrd /initrd-2.6.18-308.el5.img
title Other
        rootnoverify (hd1,0)
        chainloader +1
[root@rmdb-db-35 ~]# more /etc/grub.conf.1.12.2014
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/mapper/mpath2p3
#          initrd /initrd-version.img
#boot=/dev/mapper/mpath2
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-348.6.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-348.6.1.el5 ro root=/dev/mapper/mpath2p3
        initrd /initrd-2.6.18-348.6.1.el5.img
title Red Hat Enterprise Linux Server (2.6.18-348.1.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-348.1.1.el5 ro root=/dev/mapper/mpath2p3
        initrd /initrd-2.6.18-348.1.1.el5.img
title Red Hat Enterprise Linux Server (2.6.18-308.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-308.el5 ro root=/dev/mapper/mpath2p3
        initrd /initrd-2.6.18-308.el5.img
title Other
        rootnoverify (hd1,0)
        chainloader +1
[root@rmdb-db-35 ~]#



After a fix,

[root@rmdb-db-35 ~]# more /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/mapper/mpath2p3
#          initrd /initrd-version.img
#boot=/dev/mapper/mpath2
###default=0 was changed to 1 to point to the old kernel because the new 348.6.1 keep panicking
default=0
#default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-348.6.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-348.6.1.el5 ro root=/dev/mapper/mpath2p3
        initrd /initrd-2.6.18-348.6.1.el5.img
title Red Hat Enterprise Linux Server (2.6.18-348.1.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-348.1.1.el5 ro root=/dev/mapper/mpath2p3
        initrd /initrd-2.6.18-348.1.1.el5.img
title Red Hat Enterprise Linux Server (2.6.18-308.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-308.el5 ro root=/dev/mapper/mpath2p3
        initrd /initrd-2.6.18-308.el5.img
title Other
        rootnoverify (hd1,0)
        chainloader +1
[root@rmdb-db-35 ~]#

No comments:

Post a Comment