LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-23-2012, 04:05 AM   #1
Iyyappan
Member
 
Registered: Dec 2008
Location: Chennai, India
Distribution: CentOS 5, SLES 11
Posts: 245

Rep: Reputation: 4
Kernel upgrade from 2.6.18 to 3.1.6


I have tried to upgrade kernel from 2.6.18 to 3.1.6 in RHEL 5. I followed http://linuxgazette.net/111/krishnakumar.html link to do it. While compiling and installing i did not get any error. But while reboot i get an error displayed .
The error is
insmod: error inserting /lib/dm-region hash.ko.

From this i have tried many links to upgrade kernel, but i am unable to upgrade. I face the same error. I am doing some mistake, but i am not able to trace it. It would be helpful if some one provides a doc for upgrading kernel in CentOS or Red Hat.

Kindly provide some links to follow

Last edited by Iyyappan; 01-23-2012 at 07:11 AM.
 
Old 01-23-2012, 08:19 AM   #2
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
I am not very sure you should download a tar file and use it to upgrade your OS

if there is any update available for redhat 5 kernel then you can use

Code:
#rpm -Uvh kernel
But i believe kernel-2.6 is the kernel used in RHEL 5
but if you manage to get any rpm for kernel 3.1 then here is what you need to do

chek your version of kernel
Code:
#rpm -qa | grep kernel
go to your repository location as I have mine inside yum directory
Code:
#rpm -ivh /yum/kernel-2.6.18-8.el5.i686.rpm
now check whether your kernel is installed
Code:
#rpm -qa | grep kernel
you will find two entries in your grub.conf
Code:
#vi /boot/grub/grub.conf
default=1
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-8.el5xen)
        root (hd0,0)
        kernel /boot/xen.gz-2.6.18-8.el5
        module /boot/vmlinuz-2.6.18-8.el5xen ro root=LABEL=/ rhgb quiet
        module /boot/initrd-2.6.18-8.el5xen.img
title Red Hat Enterprise Linux Server (2.6.18-8.el5)
        root (hd0,0)
        kernel /boot/.gz-2.6.18-8.el5
        module /boot/vmlinuz-2.6.18-8.el5 ro root=LABEL=/ rhgb quiet
        module /boot/initrd-2.6.18-8.el5.img
change the
Code:
default=1 ---> default=0
and boot your OS and if your machine boots up properly
then remove the old kernel

Code:
#rpm -e kernel-2.x.x.xel5.rpm
 
Old 01-23-2012, 08:33 AM   #3
Iyyappan
Member
 
Registered: Dec 2008
Location: Chennai, India
Distribution: CentOS 5, SLES 11
Posts: 245

Original Poster
Rep: Reputation: 4
I downloaded the source from http://www.kernel.org/. In many sites n forums, people have specified that upgrading kernel from source is the best method. I did not find an equivalent rpm in net for kernel 3.1.6. If u any one do have any link for download kernel 3*, kindly update. I am just doing this for learning purpose.

Note :My Current Kernel version 2.6.18.238

Last edited by Iyyappan; 01-23-2012 at 08:40 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Audit Support Unavaible error when booting after kernel upgrade abefroman Red Hat 2 03-21-2013 08:32 AM
how to upgrade the Debian 3 kernel 2.4.18 to kernel 2.6 or bigmem- kernel chandu.bezawada Debian 6 11-12-2010 09:33 AM
apt-get upgrade does not upgrade my kernel halfpower Debian 5 12-11-2005 09:53 AM
What first upgrade kernel or upgrade slack 10.0 to current Kelean Slackware 7 01-16-2005 06:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration