This repository contains shell scripts designed to facilitate the upgrade process from RHEL 8 to RHEL 9.3. The inhibitors fixes in this repo if not fixed leapp will probably not upgrade your system.
First of all, to update rhel 8 to rhel 9.3 your server need to be in 8.9 to use leapp upgrade. With this command subscription-manager release --set 8.9
after that we need to update with dnf.
About Leapp Warnings, i cant make sure the warning i got will be the same. In this scripts i fixed the following Inhibitors :
- Leapp inhibitor detected rpms with rsa/sha1 signature
- Inhibitor: cannot perform the vdo check of block devices
- Inhibitor: Firewalld Configuration AllowZoneDrifting Is Unsupported
- Automated upgrade process: The scripts automate the execution of key steps required to upgrade from RHEL 8 to RHEL 9, reducing manual intervention.
- RHEL 8 system
- Permission to register rhel systems
- Root access
-
Clone this repository to your RHEL 8 system.
git clone https://github.com/iagor1/scripts_upgrade_rhel8_to_9.git
-
Run script
./config_pre_upgrade_rhel8.sh | tee output_pre_upgrade.txt
After this script system will reboot!
Finaly if you got the same warnings you can upgrade
./upgrade_rhel8.sh | tee output_upgrade.txt
You may use nohup to run in backgroud and save the output
-
Info about others Inhibitors check the file
others_inhibitors.md
If you are having long downtime at reboot you should consider modify SELinux autorelabel process to ignore dirs with large files before upgrade, after the upgrade you can fixfiles restore
. This trick can avoid long downtime.
Link how to avoid downtime : https://access.redhat.com/solutions/7005567