red hat enterprise linux as4 u4,RedHat AS4 U4 kernel-2.6.9-5 --> kernel-2.6.9-42 升级

该博客详细记录了将RedHat AS4的内核从2.6.9-5.ELsmp升级到2.6.9-42.EL的过程,包括更新mkinitrd、安装内核rpm包、备份/boot目录、编辑grub.conf以及重启系统的步骤。
摘要由CSDN通过智能技术生成

RedHat AS4 U4 kernel-2.6.9-42 升级

[root@www.linuxidc.com ~]# uname -ra

Linux www.linuxidc.com 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@www.linuxidc.com oracle]# rpm -e --nodeps mkinitrd-4.1.18-2

安装 mkinitrd-4.2.1.6

[root@www.linuxidc.com 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@www.linuxidc.com ~]# cp -R /boot /boot.old

[root@www.linuxidc.com 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@www.linuxidc.com oracle]# cd /boot/grub

[root@www.linuxidc.com 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

~

重启系统 reboot0b1331709591d260c1c78e86d0c51c18.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值