RedHat AS4 U4 kernel-2.6.9-5 --> kernel-2.6.9-42 升级

RedHat AS4 U4 kernel-2.6.9-42 升级
[root@guolinuxorcl2 ~]# uname -ra
Linux guolinuxorcl2 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST 2005 i686 i686 i386 GNU/Linux

做oracle rac 10g


 ocfs2-2.6.9-42.EL-1.2.4-2.i686.rpm 要求内核为 2.6.9-42.EL (找不到 2.6.9-42.ELsmp 的内核升级rpm所以只好找个EL的应付一下 )
 
 先在网上找到 kernel-2.6.9-42.EL.i686.rpm,mkinitrd-4.2.1.6-1.i386.rpm 这两个rpm,
 1、更新 mkinitrd
 删除 mkinitrd-4.1.18
 [root@guolinuxorcl1 oracle]# rpm -e --nodeps mkinitrd-4.1.18-2
 安装 mkinitrd-4.2.1.6
 
 [root@guolinuxorcl1 oracle]# rpm -ivh mkinitrd-4.2.1.6-1.i386.rpm
warning: mkinitrd-4.2.1.6-1.i386.rpm: V3 DSA signature: NOKEY, key ID 443e1821
Preparing...                ########################################### [100%]
   1:mkinitrd               ########################################### [100%]
  
 2、安装    kernel-2.6.9-42.EL 内核
 备份 /boot
 [root@guolinuxorcl1 ~]# cp -R /boot /boot.old
 [root@guolinuxorcl1 oracle]# rpm -ivh kernel-2.6.9-42.EL.i686.rpm
warning: kernel-2.6.9-42.EL.i686.rpm: V3 DSA signature: NOKEY, key ID a7048f8d
Preparing...                ########################################### [100%]
   1:kernel                 ########################################### [100%]
  
   3、编辑 grub.conf

[root@guolinuxorcl1 oracle]# cd /boot/grub  
  
   [root@guolinuxorcl1 grub]# vi 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/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
#default=1
default=0
timeout=20
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux AS (2.6.9-42.EL)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-42.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.9-42.EL.img
title Red Hat Enterprise Linux AS (2.6.9-5.ELsmp)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-5.ELsmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.9-5.ELsmp.img
title Red Hat Enterprise Linux AS-up (2.6.9-5.EL)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-5.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.9-5.EL.img
~

重启系统 reboot

你可能感兴趣的:(redhat)