LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-09-2013, 07:55 AM   #1
dewanggaba
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Rep: Reputation: Disabled
Smile Uname shows wrong kernel


Hello there,

I've installed new centos 6.2 box minimal. Then, upgrade to centos 6.3 via yum update. The default kernel is .220 and after upgrade, my box are updated to 2.6.32-279.19.1.el6.x86_64.

After yum update finished, I reboot the box and shock, this is the value.

Code:
$ uname -ar
Linux localhost 2.6.32-279.14.1.el6.x86_64 #1 SMP Tue Nov 6 23:43:09 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
I switch to default kernel .220 shows normal like this

Code:
Linux localhost 2.6.32-220.el6.x86_64
Code:
[root@localhost ~]# rpm -qa | grep kernel
dracut-kernel-004-284.el6_3.1.noarch
kernel-devel-2.6.32-279.19.1.el6.x86_64
kernel-2.6.32-279.19.1.el6.x86_64
kernel-headers-2.6.32-279.19.1.el6.x86_64
kernel-2.6.32-220.el6.x86_64
kernel-firmware-2.6.32-279.19.1.el6.noarch
I start to remove stock kernel and only the new kernel installed.

Code:
[root@localhost ~]# rpm -qa | grep kernel
dracut-kernel-004-284.el6_3.1.noarch
kernel-firmware-2.6.32-279.19.1.el6.noarch
kernel-2.6.32-279.19.1.el6.x86_64
Code:
$ uname -ar
Linux localhost 2.6.32-279.14.1.el6.x86_64 #1 SMP Tue Nov 6 23:43:09 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
So what should I do if I want to load the right kernel-2.6.32-279.19.1.el6.x86_64 ?
 
Old 01-09-2013, 08:02 AM   #2
dewanggaba
LQ Newbie
 
Registered: Jan 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Here is the grub menu.lst configuration :

Code:
# 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/vg_localhost-lv_root
#          initrd /initrd-[generic-]version.img
#boot=/dev/sdc
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-279.19.1.el6.x86_64)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-279.19.1.el6.x86_64 ro root=/dev/mapper/vg_localhost-lv_root rd_NO_LUKS  KEYBOARDTYPE=pc KEYTABLE=us LANG=en_US.UTF-8 rd_NO_MD quiet SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto rd_LVM_LV=vg_localhost/lv_swap rd_LVM_LV=vg_localhost/lv_root rd_NO_DM
        initrd /initramfs-2.6.32-279.19.1.el6.x86_64.img
 
Old 01-18-2013, 01:01 AM   #3
wstewart
Member
 
Registered: Dec 2012
Location: Tampa, FL
Distribution: Slackware, FreeBSD, CentOS
Posts: 41

Rep: Reputation: 1
Sounds like something went wrong with the upgrade. I have yet to see one of those go smoothly. Maybe it's using the repo from an older version of CentOS but that's just speculation. What does "cat /etc/centos-release" read?

Edit: Also what do you get with "rpm -qi centos-release"?

If that shows an older version then try "yum update centos-release" then uninstall and reinstall the kernel. You'll need a backup kernel so you may need to get an older kernel from an rpm.

Also run "ls -al /boot/" to see if your kernel is a symbolic link pointing somewhere else. I've hear that sometimes the symbolic link doesn't get updated with an upgrade.

Last edited by wstewart; 01-18-2013 at 03:18 AM.
 
Old 01-20-2013, 08:14 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Well, you've only got the latest kernel-2.6.32-279.19.1.el6.x86_64 in grub (and rpm), so just reboot.

BTW, updating minor versions eg 6.2 => 6.3 is no problem.
Its upgrades across major versions eg 5.x -> 6.x that are contra-indicated eg
https://access.redhat.com/knowledge/...ted_Notes.html
 
Old 01-20-2013, 08:51 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
I have never had an issue upgrading from one minor to the next

Now , if you have 6.2 AS the repo folder in the repo file and NOT 6
then there might be problems
something like this will cause some problems
-----------
http://ftp.scientificlinux.org/linux/scientific/6.2/$basearch/os/
---------

part of my SL 6.3 sl.repo
baseurl=http://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/os/

export "releasever"

Code:
yum --releasever=6.3 upgrade

Last edited by John VV; 01-20-2013 at 08:53 PM.
 
Old 01-21-2013, 05:17 AM   #6
wstewart
Member
 
Registered: Dec 2012
Location: Tampa, FL
Distribution: Slackware, FreeBSD, CentOS
Posts: 41

Rep: Reputation: 1
Quote:
Originally Posted by John VV View Post
I have never had an issue upgrading from one minor to the next

Now , if you have 6.2 AS the repo folder in the repo file and NOT 6
then there might be problems
something like this will cause some problems
-----------
http://ftp.scientificlinux.org/linux/scientific/6.2/$basearch/os/
---------

part of my SL 6.3 sl.repo
baseurl=http://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/os/

export "releasever"

Code:
yum --releasever=6.3 upgrade
That's what I was suspecting may have been the problem. I was thinking maybe the centos-release package may need to be updated as I believe that's what controls the $releasever variable.
 
  


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
uname -r reports wrong version rbees Debian 11 08-01-2010 05:15 AM
uname giving wrong info ddu_ Linux - Newbie 2 06-14-2007 09:05 PM
uname -r reports wrong kernel version branque Fedora 5 09-16-2005 10:26 AM
uname -a gives wrong info vdemuth Slackware 8 01-20-2005 10:26 AM
uname -r is wrong!? eee Linux - Software 9 01-26-2002 09:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 09:51 AM.

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