3.4. 验证升级后状态
验证升级是否成功。
本章中的说明对应于 从 RHEL 8 升级到 RHEL 9 文档中的 验证升级后状态 部分。
流程
验证当前操作系统版本是否为 Red Hat Enterprise Linux 9。例如,从 RHEL 8.10 升级到 RHEL 9.6:
# cat /etc/redhat-release Red Hat Enterprise Linux release 9.6 (Plow)验证 RHEL 发行版本锁定是否已设置为所需的目标操作系统版本。例如,当您从 RHEL 8.10 升级到 RHEL 9.6 时:
在非云或 BYOS 云系统上:
确保 RHEL 版本锁定设定为 9.6,且以
baseurl开头的/etc/yum.repos.d/redhat.repo中的所有行都包含字符串rhel9/9.6(例如,rhel9/8.10)。输入:# subscription-manager release --set=9.6 Release set to: 9.6在 AWS、Google Cloud 或 Azure 上的 PAYG 云实例上,输入:
# cat /etc/dnf/vars/releasever 9.6
验证系统是否启用了所有必要的软件仓库:
# dnf repolist在非云或 BYOS 云系统上,输出应包含:
rhel-9-for-x86_64-appstream-e4s-rpms rhel-9-for-x86_64-baseos-e4s-rpms rhel-9-for-x86_64-sap-netweaver-e4s-rpms rhel-9-for-x86_64-sap-solutions-e4s-rpms关闭所有常规(=non-e4s)软件仓库:
# subscription-manager repos \ --disable="*" \ --enable="rhel-9-for-x86_64-baseos-e4s-rpms" \ --enable="rhel-9-for-x86_64-appstream-e4s-rpms" \ --enable="rhel-9-for-x86_64-sap-solutions-e4s-rpms" \ --enable="rhel-9-for-x86_64-sap-netweaver-e4s-rpms"+*在 AWS 上的 PAYG 云实例中,输出应包含:
rhel-9-for-x86_64-appstream-e4s-rhui-rpms rhel-9-for-x86_64-baseos-e4s-rhui-rpms rhel-9-for-x86_64-highavailability-e4s-rhui-rpms rhel-9-for-x86_64-sap-netweaver-e4s-rhui-rpms rhel-9-for-x86_64-sap-solutions-e4s-rhui-rpms rhui-client-config-server-9-sap-bundle在 Google Cloud 上的 PAYG 云实例上,输出应包含:
google-cloud-sdk google-compute-engine rhui-rhel-9-for-x86_64-appstream-e4s-rhui-rpms rhui-rhel-9-for-x86_64-baseos-e4s-rhui-rpms rhui-rhel-9-for-x86_64-highavailability-e4s-rhui-rpms rhui-rhel-9-for-x86_64-sap-netweaver-e4s-rhui-rpms rhui-rhel-9-for-x86_64-sap-solutions-e4s-rhui-rpms在 Microsoft Azure 上的 PAYG 云实例中,输出应包含:
rhel-9-for-x86_64-appstream-e4s-rhui-rpms rhel-9-for-x86_64-baseos-e4s-rhui-rpms rhel-9-for-x86_64-highavailability-e4s-rhui-rpms rhel-9-for-x86_64-sap-netweaver-e4s-rhui-rpms rhel-9-for-x86_64-sap-solutions-e4s-rhui-rpms rhui-microsoft-azure-rhel9-sap-ha
- 验证网络服务是否正常运行。例如,尝试使用 SSH 连接到系统。