LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 10-09-2023, 04:37 AM   #1
cormanstnl
Member
 
Registered: Jul 2007
Posts: 60

Rep: Reputation: 0
default Linux Kernel on OEL8


Hi,

I have Oracle Linux Server release 8.8
Today I run a yum updating the server and I see that the server have 2 kernel version :
Kernel 5.15 and 4.18.

Since the last startup of the server, I run with the kernel 4.18.0-425.10.1.el8_7.x86_64
and if I read correctly the output of grubby :

> grubby --info=ALL
Quote:
index=0
kernel="/boot/vmlinuz-5.15.0-105.125.6.2.2.el8uek.x86_64"
args="ro crashkernel=auto resume=UUID=61a2d0cd-8e09-41c7-b6a1-8477faf6ac26 numa=off transparent_hugepage=never $tuned_params"
root="UUID=016bd340-3a46-4dce-a1a5-e082a4d3c6fb"
initrd="/boot/initramfs-5.15.0-105.125.6.2.2.el8uek.x86_64.img $tuned_initrd"
title="Oracle Linux Server 8 (5.15.0-105.125.6.2.2.el8uek.x86_64) "
id="436a7be9271f4c87a9f545e1d43d9c21-5.15.0-105.125.6.2.2.el8uek.x86_64"
index=1
kernel="/boot/vmlinuz-5.15.0-101.103.2.1.el8uek.x86_64"
args="ro crashkernel=auto resume=UUID=61a2d0cd-8e09-41c7-b6a1-8477faf6ac26 numa=off transparent_hugepage=never $tuned_params"
root="UUID=016bd340-3a46-4dce-a1a5-e082a4d3c6fb"
initrd="/boot/initramfs-5.15.0-101.103.2.1.el8uek.x86_64.img $tuned_initrd"
title="Oracle Linux Server 8 (5.15.0-101.103.2.1.el8uek.x86_64) "
id="436a7be9271f4c87a9f545e1d43d9c21-5.15.0-101.103.2.1.el8uek.x86_64"
index=2
kernel="/boot/vmlinuz-4.18.0-477.27.1.el8_8.x86_64"
args="ro crashkernel=auto resume=UUID=61a2d0cd-8e09-41c7-b6a1-8477faf6ac26 numa=off transparent_hugepage=never $tuned_params"
root="UUID=016bd340-3a46-4dce-a1a5-e082a4d3c6fb"
initrd="/boot/initramfs-4.18.0-477.27.1.el8_8.x86_64.img $tuned_initrd"
title="Oracle Linux Server (4.18.0-477.27.1.el8_8.x86_64) 8.8"
id="436a7be9271f4c87a9f545e1d43d9c21-4.18.0-477.27.1.el8_8.x86_64"
index=3
kernel="/boot/vmlinuz-4.18.0-477.13.1.el8_8.x86_64"
args="ro crashkernel=auto resume=UUID=61a2d0cd-8e09-41c7-b6a1-8477faf6ac26 numa=off transparent_hugepage=never $tuned_params"
root="UUID=016bd340-3a46-4dce-a1a5-e082a4d3c6fb"
initrd="/boot/initramfs-4.18.0-477.13.1.el8_8.x86_64.img $tuned_initrd"
title="Oracle Linux Server (4.18.0-477.13.1.el8_8.x86_64) 8.8"
id="436a7be9271f4c87a9f545e1d43d9c21-4.18.0-477.13.1.el8_8.x86_64"
index=4
kernel="/boot/vmlinuz-4.18.0-425.10.1.el8_7.x86_64"
args="ro crashkernel=auto resume=UUID=61a2d0cd-8e09-41c7-b6a1-8477faf6ac26 numa=off transparent_hugepage=never $tuned_params"
root="UUID=016bd340-3a46-4dce-a1a5-e082a4d3c6fb"
initrd="/boot/initramfs-4.18.0-425.10.1.el8_7.x86_64.img $tuned_initrd"
title="Oracle Linux Server (4.18.0-425.10.1.el8_7.x86_64) 8.7"
id="436a7be9271f4c87a9f545e1d43d9c21-4.18.0-425.10.1.el8_7.x86_64"
index=5
kernel="//boot/vmlinuz-0-rescue-436a7be9271f4c87a9f545e1d43d9c21"
args="ro crashkernel=auto resume=UUID=61a2d0cd-8e09-41c7-b6a1-8477faf6ac26 numa=off transparent_hugepage=never"
root="UUID=016bd340-3a46-4dce-a1a5-e082a4d3c6fb"
initrd="//boot/initramfs-0-rescue-436a7be9271f4c87a9f545e1d43d9c21.img"
title="Oracle Linux Server (0-rescue-436a7be9271f4c87a9f545e1d43d9c21) 8.7"
id="436a7be9271f4c87a9f545e1d43d9c21-0-rescue"
> grubby --default-kernel
Quote:
/boot/vmlinuz-5.15.0-105.125.6.2.2.el8uek.x86_64

the next reboot will switch to kernel 5.15 and I'm not sure that is a good idea.
the content of /etc/sysconfig/kernel :

Quote:
# UPDATEDEFAULT specifies if kernel-install should make
# new kernels the default
UPDATEDEFAULT=yes

# DEFAULTKERNEL specifies the default kernel package type
DEFAULTKERNEL=kernel-uek-core
So if I change the default-kernel by running :
> grub2-set-default 2

is the next boot will be with the kernel vmlinuz-4.18.0-477.27 or the first kernel 5.15.105 ?
or is it better change de default and change the DEFAULT-KERNEL on sysconfig (vi or is there a commande for that ?)

thank you
 
Old 10-10-2023, 04:23 AM   #2
cormanstnl
Member
 
Registered: Jul 2007
Posts: 60

Original Poster
Rep: Reputation: 0
:-(
 
Old 10-10-2023, 04:35 AM   #3
cormanstnl
Member
 
Registered: Jul 2007
Posts: 60

Original Poster
Rep: Reputation: 0
Following that howto : https://docs.oracle.com/en/learn/ora...default-kernel

I just make grubby --set-default 2

So I hope that in next reboot, it will use the 4.18 kernel...
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Quagga default route not showing in kernel default route (netstat -nr) Valkyr1e Linux - Networking 3 08-03-2008 09:20 PM
DMA works but not by default (despite "use DMA by default" kernel) mehlkelm Linux - Hardware 7 04-11-2005 03:29 PM
Default Drowser & Default E-mail Cli sudhasmyle Linux - Networking 1 11-20-2004 10:42 AM
setting default page size and default tray lived4eva Linux - General 1 11-04-2003 02:39 PM
New Virtual Servers Default to Default Server Page? DigiDave Linux - Software 4 10-18-2003 03:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:18 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