Yum Update Kernel on Centos 6.9 - Stuck?
Hi I'm trying to understand a few things about kernels. On one server that I have the kernel is stuck to 2.6.32-696.16.1.el6.x86_64 The system gets the kernel from the repo
In /etc/yum.conf I haven't made an manual changes. There is
However I see that there is an updated kernel on the repo
Shouldn't the system update the kernel?
Repo-id : updates
Repo-name : CentOS-6 - Updates
Repo-mirrors : http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates&infra=stock
Repo-baseurl : http://mirror.umd.edu/centos/6.9/updates/x86_64/ (9 more)In /etc/yum.conf I haven't made an manual changes. There is
exclude=bind-chroot courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* mysql* nsd* p0f php* proftpd* pure-ftpd* spamassassin* squirrelmail*However I see that there is an updated kernel on the repo
kernel-2.6.32-696.18.7.el6.x86_64.rpm 04-Jan-2018 19:42Shouldn't the system update the kernel?
# yum clean all
Loaded plugins: fastestmirror, tsflags, universal-hooks
Cleaning repos: EA4 cpanel-addons-production-feed MariaDB101 base cpanel-plugins epel extras
: kernelcare nginx updates
Cleaning up Everything
Cleaning up list of fastest mirrors
# yum update kernel
Loaded plugins: fastestmirror, tsflags, universal-hooks
Setting up Update Process
Determining fastest mirrors
* EA4: 204.10.37.146
* cpanel-addons-production-feed: 204.10.37.146
* base: mirror.oss.ou.edu
* extras: mirrors.sonic.net
* updates: repos.lax.quadranet.com
EA4 | 3.0 kB 00:00 ...
EA4/primary_db | 34 MB 00:22
cpanel-addons-production-feed | 2.9 kB 00:00 ...
cpanel-addons-production-feed/primary_db | 12 kB 00:00
MariaDB101 | 2.9 kB 00:00
MariaDB101/primary_db | 20 kB 00:00
base | 3.7 kB 00:00
base/primary_db | 4.7 MB 00:01
cpanel-plugins | 2.9 kB 00:00 ...
cpanel-plugins/primary_db | 40 kB 00:00
epel | 4.7 kB 00:00
epel/primary_db | 6.0 MB 00:00
extras | 3.4 kB 00:00
extras/primary_db | 29 kB 00:00
kernelcare | 2.6 kB 00:00
kernelcare/primary_db | 27 kB 00:00
nginx | 2.9 kB 00:00
nginx/primary_db | 98 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 5.8 MB 00:02
No Packages marked for Update
# uname -r
2.6.32-696.16.1.el6.x86_64
-
Hello @EneTar, Did you reboot the server after updating the system to the latest kernel version via YUM? A reboot is required to boot into the new kernel version unless you are using an application such as KernelCare. Thank you. 0 -
Hi Michael of course I have reboot the system several times. A reboot would be required I guess only if the new kernel has been downloaded. For some reason it doesn't even download the kernel. rpm -qa kernel kernel-2.6.32-696.16.1.el6.x86_64 kernel-2.6.32-696.299.3.2.cp6.x86_64 kernel-2.6.32-696.299.3.1.cp6.x86_64 kernel-2.6.32-696.299.10.3.cp6.x86_64 kernel-2.6.32-696.299.1.1.cp6.x86_64
yum list installed 'kernel*' Loaded plugins: fastestmirror, tsflags, universal-hooks Loading mirror speeds from cached hostfile * EA4: 204.10.37.146 * cpanel-addons-production-feed: 204.10.37.146 * base: mirrors.kernel.org * extras: mirrors.cat.pdx.edu * updates: mirrors.xmission.com Installed Packages kernel.x86_64 2.6.32-696.16.1.el6 @updates kernel.x86_64 2.6.32-696.299.1.1.cp6 @cPkernel kernel.x86_64 2.6.32-696.299.3.1.cp6 @cPkernel kernel.x86_64 2.6.32-696.299.3.2.cp6 @cPkernel kernel.x86_64 2.6.32-696.299.10.3.cp6 @cPkernel kernel-devel.x86_64 2.6.32-696.199.cpanel6 @cPkernel kernel-devel.x86_64 2.6.32-696.299.1.1.cp6 @cPkernel kernel-devel.x86_64 2.6.32-696.299.3.1.cp6 @cPkernel kernel-devel.x86_64 2.6.32-696.299.3.2.cp6 @cPkernel kernel-devel.x86_64 2.6.32-696.299.10.3.cp6 @cPkernel kernel-firmware.x86_64 2.6.32-696.299.10.3.cp6 @cPkernel kernel-headers.x86_64 2.6.32-696.299.10.3.cp6 @cPkernel kernelcare.x86_64 2.14-2 @/kernelcare-latest-6
Moreover I use the free kernelcare patch for symlink protection, I don't know if that causes any issues but I have also tried to yum remove kernelcare and reboot -> same... Is there any option anywhere that would disable kernel updates? The only one I know is the exclude in /etc/yum.conf0 -
Hi, Try disabling all other repositories and use only one that is provided by the CentOS-Base*. This will solve the issue. 0 -
Hi I just tried that, it doesn't update. I tried once only with the "base" enabled and then only with the "updates" repo enabled. I also tried to comment the mirror list and enable only the baseurl of those 2 repos. I also tried to disable the GPG check [base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 #released updates [updates] name=CentOS-$releasever - Updates mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-60 -
Hello, It looks like you may have been using the cPanel-hardened kernel. This is deprecated as of cPanel version 68. The following document includes instructions on how to remove it: How to Manually Remove the cPanel-Provided Hardened Kernel - cPanel Knowledge Base - cPanel Documentation Let us know if this helps. Thank you. 0 -
That was it Michael. Thank you 0 -
Hello, I'm glad to see the issue is now solved. Thank you for sharing the outcome. 0
Please sign in to leave a comment.
Comments
7 comments