当前位置: 首页 > news >正文

redhat7.4升级到Oracle Linux8.10

参考文档:

使用leapp升级Linux -CSDN博客

-- 将redhat的YUM源换成oracle的源

https://yum.oracle.com/public-yum-ol7.repo

-- 然后对OS进行update 
yum update 

-- reboot 

-- 安装uek kernel 
yum install kernel-uek

-- 升级完成后,kernel的变化 

[root@node19c02 ~]# uname -r
3.10.0-1160.119.1.0.5.el7.x86_64
[root@node19c02 ~]#
[root@node19c02 ~]# uname -r
5.4.17-2136.338.4.2.el7uek.x86_64
[root@node19c02 ~]#
[root@node19c02 ~]# uname -r
5.4.17-2136.347.6.1.el8uek.x86_64
[root@node19c02 ~]#
[root@node19c01 yum.repos.d]# uname -r
3.10.0-693.el7.x86_64
[root@node19c01 yum.repos.d]# uname -r
5.4.17-2136.338.4.2.el7uek.x86_64
[root@node19c01 yum.repos.d]#[root@node19c01 network-scripts]# uname -r
5.4.17-2136.347.6.1.el8uek.x86_64
[root@node19c01 network-scripts]#

-- OS版本的变化

[root@node19c02 ~]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="8.10"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="8.10"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Oracle Linux Server 8.10"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:8:10:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://github.com/oracle/oracle-linux"ORACLE_BUGZILLA_PRODUCT="Oracle Linux 8"
ORACLE_BUGZILLA_PRODUCT_VERSION=8.10
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=8.10
[root@node19c01 network-scripts]# cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="8.10"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="8.10"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Oracle Linux Server 8.10"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:8:10:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://github.com/oracle/oracle-linux"ORACLE_BUGZILLA_PRODUCT="Oracle Linux 8"
ORACLE_BUGZILLA_PRODUCT_VERSION=8.10
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=8.10
[root@node19c01 network-scripts]#

rac的relink,参考官方文档即可。


---  两个节点升级完成后,有以下提示:

====> * add_upgrade_boot_entryAdd new boot entry for Leapp provided initramfs.
A reboot is required to continue. Please reboot your system.Debug output written to /var/log/leapp/leapp-upgrade.log============================================================REPORT OVERVIEW
============================================================HIGH and MEDIUM severity reports:1. Packages available in excluded repositories will not be installed2. GRUB2 core will be automatically updated during the upgrade3. Packages not signed by Oracle found on the system4. Difference in Python versions and support in OL 85. Default Boot Kernel6. Module pam_pkcs11 will be removed from PAM configurationReports summary:Errors:                      0Inhibitors:                  0HIGH severity reports:       4MEDIUM severity reports:     2LOW severity reports:        1INFO severity reports:       3Before continuing consult the full report:A report has been generated at /var/log/leapp/leapp-report.jsonA report has been generated at /var/log/leapp/leapp-report.txt============================================================END OF REPORT OVERVIEW
============================================================Answerfile has been generated at /var/log/leapp/answerfile
[root@node19c02 ~]# reboot
====> * add_upgrade_boot_entryAdd new boot entry for Leapp provided initramfs.
A reboot is required to continue. Please reboot your system.Debug output written to /var/log/leapp/leapp-upgrade.log============================================================REPORT OVERVIEW
============================================================HIGH and MEDIUM severity reports:1. Packages available in excluded repositories will not be installed2. GRUB2 core will be automatically updated during the upgrade3. Difference in Python versions and support in OL 84. Packages not signed by Oracle found on the system5. Module pam_pkcs11 will be removed from PAM configuration6. Default Boot KernelReports summary:Errors:                      0Inhibitors:                  0HIGH severity reports:       4MEDIUM severity reports:     2LOW severity reports:        1INFO severity reports:       3Before continuing consult the full report:A report has been generated at /var/log/leapp/leapp-report.jsonA report has been generated at /var/log/leapp/leapp-report.txt============================================================END OF REPORT OVERVIEW
============================================================Answerfile has been generated at /var/log/leapp/answerfile
[root@node19c01 ~]#

出现的问题

问题1 ,
导入Oracle的YUM后,无法安装RPM包
解决方法: 
签名不对,需要把gpgcheck=1  改成gpgcheck=0

问题2 
存在1个Inhibitors:, 查看相关日志,发现提示有多个linux 7的YUM源,
解决方法:
/etc/yum.repos.d下,把7的yum源文件,重命名 

[grid@node19c02 yum.repos.d]$ ls -lrt
total 84
-rw-r--r--. 1 root root   120 Apr 25  2020 local.repo_20250922
-rw-r--r--. 1 root root   358 Apr 25  2020 redhat.repo_20250922
-rw-r--r--  1 root root   226 Jun  9  2021 virt-ol7.repo_
-rw-r--r--  1 root root  2587 Jun  9  2021 uek-ol7.repo_
-rw-r--r--  1 root root   243 May 23  2024 virt-ol8.repo
-rw-r--r--  1 root root  4585 May 15 19:16 leapp-upgrade-repos-ol8.repo.save
-rw-r--r--  1 root root 16404 Sep 22 13:25 public-yum.ol7.repo_
-rw-r--r--  1 root root 16404 Sep 22 13:27 public-yum.ol7.repo__
-rw-r--r--  1 root root   358 Sep 22 13:36 redhat.repo_
-rw-r--r--  1 root root  4107 Sep 22 14:53 oracle-linux-ol8.repo
-rw-r--r--  1 root root   941 Sep 22 14:53 uek-ol8.repo
[grid@node19c02 yum.repos.d]$ 

问题3 
存在1个Inhibitors,查看相关日志,发现一些包有冲突
解决方法:
卸载有冲突的包

问题4 
因为原来的OS是redhat,使用了Oracle Linux的源后,虽然update了,但是kernel还是redhat的,不是oracle uek的kernel
解决方法:安装UEK的kernel ,   yum install kernel-uek
 

END 

http://www.dtcms.com/a/395589.html

相关文章:

  • PEFT库实战快速入门
  • PyTorch 核心知识手册:神经网络构建与训练基础
  • DeepSeek对数学工具的分类(2025.1.13)
  • 2025年9月打磨机器人新技术解析与常见知名品牌推荐
  • STM32开发(WiFi - ESP8266)
  • ArcGIS 车辆轨迹跟踪 视频制作 第一人称视觉跟踪
  • Ansible自动化运维平台部署
  • VGG和PyTorch 神经网络工具箱
  • Linux系统nginx(一)
  • 144g网页制作最新 144g网页在线生成方法
  • PyTorch 神经网络工具箱全面解析
  • mac-vlan 概念及题目
  • 【华为OD机考正在更新】2025年双机位A卷真题【完全原创题解 | 详细考点分类 | 不断更新题目 | 六种主流语言Py+Java+Cpp+C+Js+Go】
  • 《Muduo网络库:基于Muduo的网络服务器编程示例》
  • 详解JNI JNA!
  • C# 获取docx文档页数的古怪方法
  • 算法题(215):奶牛飞盘
  • Ubuntu 安装与使用C++ onnxruntime库
  • Ubuntu 部署 Zabbix 6.0 LTS 监控平台
  • 基于springboot家政、上门服务、Java源码系统功能结构
  • 从 “纸笔清单” 到全栈引擎:数据填报与类 Excel 控件如何重塑企业效率曲线
  • FPGA学习笔记——图像处理之饱和度调节(RGB)
  • MySQL 读写分离详解与 MyCat 实战部署
  • SEU-project1项目调试过程记录
  • STM32H743-结合CubeMX新建HAL库MDK工程
  • [国奖版本!更新完毕]2025华为杯E题数学建模研赛E题研究生数学建模思路代码文章成品:高速列车轴承智能故障诊断问题
  • 【一天一个Web3概念】区块链中的双花问题:概念、案例与防范措施
  • Java 大视界 -- Java 大数据机器学习模型在金融衍生品定价与风险管理中的应用(415)
  • STC15W4K56S4 单片机 PWM 功能详解与配置指南
  • 秋招冲刺!AI面试如何破解企业招聘难题?