LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-07-2018, 06:10 PM   #1
nirvaanr
LQ Newbie
 
Registered: Jun 2016
Distribution: Debian 10
Posts: 26

Rep: Reputation: Disabled
Unhappy How to switch back from Oracle Kernel to RedHat?


Hello,
We have RHEL 7.5 server with latest updates. We needed to install Oracle 12 DB on it so chose "easy method" of installing "oracle-database-server-12cR2-preinstall-1.0-3.el7.x86_64.rpm" and then installed oracle DB. Everything went smooth and all OK but later we noticed that it has Oracle Kernel ver 4.14 uek installed instead of using Redhat's 3.10 ver. and using updates from Oracle rep. I managed to configure it back to use updates from Redhat (as we have support from RH) but not sure how to switch the kernel back to Redhat's by keeping all the software (esp Oracle) intact. Redhat is NOT providing any support as this server running Oracle kernel.

We can see both Oracle kernel entries & Redhat entries in grub.conf but not sure If I can simply boot Redhat 3.x kernel with oracle too working fine.

Could anyone please advise how to switch back to RH kernel without breaking anything else? I know rebuilding the server from scratch and not choosing "preinstall rpm" method will fix that but that's a too long process.

Thanks!
 
Old 09-08-2018, 11:27 AM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
you might have to "shut down" for testing, then switch them in grub to see what actually takes place. That is as far as I can go on this issue. good luck.
 
Old 09-08-2018, 11:48 AM   #3
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,732

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
I presume that the Orace kernel is but a version of Red Hat...
That said, I find it difficult to believe that RH and/or Oracle won't provide support if you have a contract with them, even if it's your fault things got messed up.
 
Old 09-08-2018, 06:55 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,533

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
I'm surprised to read that you have a grub.conf file since Red Hat switched to Grub2 with release 7.0. Do you have different options for the different kernels in this file?
 
Old 09-08-2018, 10:37 PM   #5
nirvaanr
LQ Newbie
 
Registered: Jun 2016
Distribution: Debian 10
Posts: 26

Original Poster
Rep: Reputation: Disabled
Thanks everyone for your replies

Quote:
Originally Posted by yancek View Post
I'm surprised to read that you have a grub.conf file since Red Hat switched to Grub2 with release 7.0. Do you have different options for the different kernels in this file?
Very good question. I actually upgraded to RHEL 7.5 from RHEL 6.10 version and later I didn't upgrade grub to grub2 (which I need to do manually as RH upgrade doesn't do it)

Quote:
title Oracle Linux Server 7.5, with Linux 3.10.0-862.11.6.el7.x86_64

root (hd0,0)

kernel /vmlinuz-3.10.0-862.11.6.el7.x86_64 root=/dev/mapper/SystemVG-rootLV ro rd.lvm.lv=SystemVG/swapLV rd.luks=0 KEYBOARDTYPE=pc vconsole.keymap=uk rd.locale.LANG=en_GB.UTF-8 rd.md=0 rd.lvm.lv=SystemVG/rootLV vconsole.font=latarcyrheb-sun16 crashkernel=auto rd.dm=0 rhgb quiet rhgb quiet LANG=en_GB.UTF-8

initrd /initramfs-3.10.0-862.11.6.el7.x86_64.img

title Oracle Linux Server 7.5, with Unbreakable Enterprise Kernel 4.14.35-1818.0.9.el7uek.x86_64

root (hd0,0)

kernel /vmlinuz-4.14.35-1818.0.9.el7uek.x86_64 root=/dev/mapper/SystemVG-rootLV ro rd.lvm.lv=SystemVG/swapLV rd.luks=0 KEYBOARDTYPE=pc vconsole.keymap=uk rd.locale.LANG=en_GB.UTF-8 rd.md=0 rd.lvm.lv=SystemVG/rootLV vconsole.font=latarcyrheb-sun16 crashkernel=auto rd.dm=0 rhgb quiet rhgb quiet LANG=en_GB.UTF-8

initrd /initramfs-4.14.35-1818.0.9.el7uek.x86_64.img

title Red Hat Enterprise Linux Server (3.10.0-862.9.1.el7.x86_64) 7.5 (Maipo)

root (hd0,0)

kernel /vmlinuz-3.10.0-862.9.1.el7.x86_64 root=/dev/mapper/SystemVG-rootLV ro rd.lvm.lv=SystemVG/swapLV rd.luks=0 KEYBOARDTYPE=pc vconsole.keymap=uk rd.locale.LANG=en_GB.UTF-8 rd.md=0 rd.lvm.lv=SystemVG/rootLV vconsole.font=latarcyrheb-sun16 crashkernel=auto rd.dm=0 rhgb quiet rhgb quiet LANG=en_GB.UTF-8

initrd /initramfs-3.10.0-862.9.1.el7.x86_64.img

title Red Hat Enterprise Linux Server 7.5 Rescue d2d830879078ddddf4d061d50000001f (3.10.0-862.el7.x86_64)

root (hd0,0)

kernel /vmlinuz-0-rescue-d2d830879078ddddf4d061d50000001f root=/dev/mapper/SystemVG-rootLV ro rd.lvm.lv=SystemVG/swapLV rd.luks=0 KEYBOARDTYPE=pc vconsole.keymap=uk rd.locale.LANG=en_GB.UTF-8 rd.md=0 rd.lvm.lv=SystemVG/rootLV vconsole.font=latarcyrheb-sun16 crashkernel=auto rd.dm=0 rhgb quiet rhgb quiet LANG=en_GB.UTF-8

initrd /initramfs-0-rescue-d2d830879078ddddf4d061d50000001f.img

title Red Hat Enterprise Linux Server (3.10.0-862.el7.x86_64) 7.5 (Maipo)

root (hd0,0)

kernel /vmlinuz-3.10.0-862.el7.x86_64 root=/dev/mapper/SystemVG-rootLV ro rd.lvm.lv=SystemVG/swapLV rd.luks=0 KEYBOARDTYPE=pc vconsole.keymap=uk rd.locale.LANG=en_GB.UTF-8 rd.md=0 rd.lvm.lv=SystemVG/rootLV vconsole.font=latarcyrheb-sun16 crashkernel=auto rd.dm=0 rhgb quiet rhgb quiet LANG=en_GB.UTF-8

initrd /initramfs-3.10.0-862.el7.x86_64.img

[root@lnxoraprod02 ~]# uname -a

Linux lnxoraprod02 4.14.35-1818.0.9.el7uek.x86_64 #2 SMP Mon Jun 18 20:32:24 PDT 2018 x86_64 x86_64 x86_64 GNU/Linux

[root@lnxoraprod02 ~]#
 
Old 09-14-2018, 06:47 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,657

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by nirvaanr View Post
Very good question. I actually upgraded to RHEL 7.5 from RHEL 6.10 version and later I didn't upgrade grub to grub2 (which I need to do manually as RH upgrade doesn't do it)
So, as asked before: why don't you contact Red Hat support and ask them?? As said, both Oracle and RHEL are pay-for distros...either can give you support since you're paying for them. Personally, I'd reload the box from scratch, since doing an in place upgrade from 6.x to 7.x is NOT a good idea...jumping major versions (and several minor ones), isn't trivial, and is bound to cause issues.
 
Old 09-14-2018, 07:57 AM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,533

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
I've never used either Red Hat or Oracle so I'm not sure exactly what your system does. I notice that all of your Red Hat root entries in grub.conf show root(hd0,0) as does the Oracle entry. So what is the default set to? If it is 0, it should boot the Red Hat kernel, if it is 1 it would boot the Oracle kernel.

Quote:
We can see both Oracle kernel entries & Redhat entries in grub.conf but not sure If I can simply boot Redhat 3.x kernel with oracle too working fine.
Don't know that either, I suppose the simple test is to try it?
 
  


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
please i am new to linux..i want to switch from root to oracle and it's not going tholu LinuxQuestions.org Member Intro 3 05-29-2015 03:36 AM
how to switch from Oracle liux to Redhat Linux thirupathi Linux - Server 8 10-09-2013 07:27 PM
How difficult is it to switch my kernel to 64-bit (and back if it doesn't work out) ? sneakyimp Red Hat 2 10-08-2007 01:31 PM
thread switch results in kernel stack switch superstition Linux - General 1 05-17-2005 11:48 PM
how to switch back to kernel 2.4? spade Linux - Newbie 1 03-09-2004 11:04 AM

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

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