LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 01-18-2013, 02:41 PM   #1
domz
LQ Newbie
 
Registered: May 2010
Posts: 22

Rep: Reputation: 0
Kernel Upgrade on Centos 5.6


I need to upgrade kernel

uname -r
2.6.18-238.19.1.el5.028stab092.2

to something 2.6.24 or later.

My question is, do I need to upgrade to centos 6+ or can I do something such as this tutorial: http://blog.csdn.net/appletreesujie/...etails/6718691
 
Old 01-18-2013, 02:50 PM   #2
adambot
LQ Newbie
 
Registered: Jan 2013
Posts: 10

Rep: Reputation: Disabled
you should just be able to do as root a
Code:
yum update
and that will update everything. if you just want the kernel, they you can do
Code:
yum update kernel
 
Old 01-18-2013, 03:00 PM   #3
domz
LQ Newbie
 
Registered: May 2010
Posts: 22

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by adambot View Post
you should just be able to do as root a
Code:
yum update
and that will update everything. if you just want the kernel, they you can do
Code:
yum update kernel
It doesn't upgrade to kernel 2.6.24 or later. It still at 2.6.18.
 
Old 01-18-2013, 03:15 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,718
Blog Entries: 54

Rep: Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967
What's bad is that you're running an OpenVZ kernel from 2011 and the one you want to upgrade to isn't a support or maintained version either. If you can use Yum to upgrade your kernel, great, else see the "For the latest RHEL5 kernel" link at http://wiki.openvz.org/Download/kernel/rhel5. That web log post "instructs" you to compile and install a vanilla kernel. You do not want that. When you use RHEL or CentOS then consult the RHEL or CentOS documentation! Also you're running CentOS 5.6 so you're two major upgrades behind schedule. Please upgrade RSN.
 
Old 01-18-2013, 07:28 PM   #5
domz
LQ Newbie
 
Registered: May 2010
Posts: 22

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn View Post
What's bad is that you're running an OpenVZ kernel from 2011 and the one you want to upgrade to isn't a support or maintained version either. If you can use Yum to upgrade your kernel, great, else see the "For the latest RHEL5 kernel" link at http://wiki.openvz.org/Download/kernel/rhel5. That web log post "instructs" you to compile and install a vanilla kernel. You do not want that. When you use RHEL or CentOS then consult the RHEL or CentOS documentation! Also you're running CentOS 5.6 so you're two major upgrades behind schedule. Please upgrade RSN.
Thanks, I upgraded to centos 5.9 which installed ovzkernel-2.6.18-308.8.2.el5.028stab101.1.x86_64.
But any way possible I can install 2.6.24 or later?
 
Old 01-18-2013, 07:58 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,718
Blog Entries: 54

Rep: Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967
As I posted above: ...else see the "For the latest RHEL5 kernel" link at http://wiki.openvz.org/Download/kernel/rhel5?
 
Old 01-19-2013, 12:11 AM   #7
domz
LQ Newbie
 
Registered: May 2010
Posts: 22

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn View Post
As I posted above: ...else see the "For the latest RHEL5 kernel" link at http://wiki.openvz.org/Download/kernel/rhel5?
Sorry for my ignorance, but I am total noob when it comes to kernels. I have never installed one before, I know this one says out of date, but can I install it and it will work on centos 5.9?
http://wiki.openvz.org/Download/kern...2-feoktistov.1
 
Old 01-19-2013, 01:56 AM   #8
John VV
Guru
 
Registered: Aug 2005
Posts: 13,488

Rep: Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803
The CentOS team ( and red hat devs) backport all the security patches from the latest 2.6 kernel to the one used in CentOS 5

but you are not using a CentOS kernel .
You are using one built by OpenVZ

so to update that one , you need to build it ( and that is not really an easy task )
At least for the first few times you build a kernel

or do not use the OpenVZ kernel ( but that might not be an option )

I would start with studying the OpenVZ wiki
http://wiki.openvz.org/Main_Page

and really learn the container os that it is
and study up on building a kernel and all that needs to go into it
take a week or so and study up first

non main stream OS's are -- shall we say " fun "

Last edited by John VV; 01-19-2013 at 01:57 AM.
 
Old 01-19-2013, 08:05 AM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,718
Blog Entries: 54

Rep: Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967
Quote:
Originally Posted by John VV View Post
but you are not using a CentOS kernel . You are using one built by OpenVZ
so to update that one , you need to build it
Why? Didn't you see http://wiki.openvz.org/Download/kernel/rhel5 ?
 
Old 01-19-2013, 08:19 AM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,718
Blog Entries: 54

Rep: Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967
Quote:
Originally Posted by domz View Post
I know this one says out of date, but can I install it and it will work on centos 5.9?
http://wiki.openvz.org/Download/kernel/2.6.32/2.6.32-feoktistov.1
CentOS 5.9 was released quite recently so the OpenVZ people may not have had the time to build a kernel for it already. I would have upgraded from CentOS 5.6 to CentOS 5.8 also because it's been around for a while. Ask them what's the most recent OpenVZ kernel version they will support for CentOS 5.8?
 
Old 01-19-2013, 09:17 AM   #11
John VV
Guru
 
Registered: Aug 2005
Posts: 13,488

Rep: Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803Reputation: 1803
re

i did , the op wants something newer than "2.6.18-308.8.2"
 
Old 01-19-2013, 09:33 AM   #12
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,718
Blog Entries: 54

Rep: Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967Reputation: 2967
Hmm, OK. Then you may not have realized the link he posted was for a 2.6.32 kernel...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 6.2 upgrade kernel mdadm not starting on reboot misterpat Linux - Server 1 01-22-2012 02:03 PM
kernel won't upgrade with yum CentOS 5 abefroman Linux - Server 3 05-17-2010 08:07 PM
Centos Kernel Upgrade Issue brentd Linux - Enterprise 4 03-09-2009 05:27 PM
CentOS Latest Kernel upgrade Problem associatedappraisers Linux - Software 8 04-03-2008 02:02 PM
CentOS Kernel Upgrade Error BizHat.com Linux - Kernel 1 08-25-2006 07:01 AM


All times are GMT -5. The time now is 03:39 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration