4.2. Assessing upgradability of RHEL 9 to RHEL 10 from the command line
You can identify potential upgrade problems during the pre-upgrade phase before the upgrade by using the command line.
Prerequisites
- You completed the in Preparing for the upgrade procedure.
You are logged in as the root user with the unconfined SELinux role.
참고If you use the
sudocommand, you must use the-r unconfined_r -t unconfined_toptions when entering eachleappcommand, for example:$ sudo -r unconfined_r -t unconfined_t leapp preupgrade
Procedure
On your RHEL 9 system, perform the pre-upgrade phase:
# leapp preupgrade --target <_target_os_version_>Replace target_os_version with the target OS version, for example
10.0. If no target OS version is defined,Leappuses the default target OS version specified in the table 1.1 in Supported upgrade paths.If you are using custom repositories from the
/etc/yum.repos.d/directory for the upgrade, enable the selected repositories as follows:# leapp preupgrade --enablerepo <repository_id1> --enablerepo <repository_id2> ...Replace repository_id with the repository IDs.
-
If you are upgrading without RHSM or by using RHUI, add the
--no-rhsmoption. -
If you have an Extended Upgrade Support (EUS) or Advanced Update Support (AUS) subscription, add the
--channel <channel>option. Replace <channel> with the channel name, for example,eusoraus. If you are using RHEL for Real Time or the Real Time for Network Functions Virtualization (NFV) in your Red Hat OpenStack Platform, enable the deployment by using the
--enablerepooption. For example:# leapp preupgrade --enablerepo rhel-10-for-x86_64-rt-rpmsFor more information, see Configuring Real-Time Compute.
Examine the report in the
/var/log/leapp/leapp-report.txtfile and manually resolve all the reported problems. Some reported problems contain remediation suggestions. Inhibitor problems prevent you from upgrading until you have resolved them.The report contains the following risk factor levels:
- High - Very likely to result in a deteriorated system state.
- Medium - Can impact both the system and applications.
- Low - Should not impact the system but can have an impact on applications.
- Info - Informational with no expected impact to the system or applications.
In certain system configurations, the
Leapputility generates true or false questions that you must answer manually. If the pre-upgrade report contains a Missing required answers in the answer file message, complete the following steps:-
Open the
/var/log/leapp/answerfilefile and review the true or false questions. Manually edit the
/var/log/leapp/answerfilefile, uncomment the confirm line of the file by deleting the#symbol, and confirm your answer asTrueorFalse. For more information, see the Troubleshooting tips.참고Alternatively, you can answer the true or false question by running the following command:
# leapp answer --section <question_section>.<field_name>=<answer>
-
Open the
- Repeat the previous steps to rerun the pre-upgrade report to verify that you have resolved all critical issues.