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