4.2. 为升级准备注册了 Satellite 的系统
此流程描述了为升级到 RHEL 8 准备已注册到 Satellite 的系统所需的步骤。
如果您计划升级 Satellite 系统本身,请按照 使用 Leapp 将 Satellite 或 Capsule 升级到 Red Hat Enterprise Linux 8 In-Place 中所述的流程操作。
Satellite 系统上的用户必须完成此流程和 为升级准备 RHEL 7 系统 中所描述的步骤。
先决条件
- 您有对 Satellite 服务器的管理特权。
流程
- 验证 Satellite 是否是完全支持或维护支持的版本。如需更多信息,请参阅 Red Hat Satellite 产品生命周期。
- 将带有 RHEL 8 存储库的订阅清单导入到 Satellite 服务器。如需更多信息,请参阅 Red Hat Satellite 特定版本(例如 6.12 版本)的管理内容指南中的管理红帽订阅一章。
- 使用 RHEL 7.9 和目标操作系统版本(如 RHEL 8.10)的最新更新在 Satellite 服务器上启用并同步所有需要的 RHEL 7 和 RHEL 8 存储库。所需的软件仓库必须在内容视图中提供,并在关联的激活码中启用。 注意- 对于 RHEL 8 存储库,启用每个存储库的目标操作系统版本,例如 8.10。如果您只启用了存储库的 RHEL 8 版本,则原位升级被禁止。 - 例如,对于没有延长更新支持(EUS)订阅的 Intel 构架,至少启用以下软件仓库: - Red Hat Enterprise Linux 7 Server (RPMs) - rhel-7-server-rpms - x86_64 7Server 
- Red Hat Enterprise Linux 7 Server - Extras (RPMs) - rhel-7-server-extras-rpms - x86_64 
- Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) - rhel-8-for-x86_64-appstream-rpms - x86_64 <target_os_version> 
- Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) - rhel-8-for-x86_64-baseos-rpms - x86_64 <target_os_version> - 将 target_os_version 替换为目标操作系统版本,如 8.10。 - 有关其他构架,请参阅 RHEL 7 软件仓库 和 RHEL 8 软件仓库。 - 如需更多信息,请参阅 Red Hat Satellite 特定版本(例如 版本 6.12)的 管理内容指南 中的 导入内容 一章。 
 
- 将内容主机附加到包含所需的 RHEL 7 和 RHEL 8 软件仓库的内容视图。 - 如需更多信息,请参阅 Red Hat Satellite 特定版本(例如 6.12 版本)的 管理内容指南 中的 管理内容视图 一章。 
验证
- 验证正确的 RHEL 7 和 RHEL 8 存储库是否已添加到 Satellite 服务器上正确的内容视图中。 - 在 Satellite Web UI 中,导航到 Content > Lifecycle > Content Views,然后点击内容视图的名称。
- 点 Repositories 选项卡,并验证存储库是否正确出现。 注意- 您还可以使用以下命令验证存储库是否已添加到内容视图中: - hammer repository list --search 'content_label ~ rhel-7' --content-view <content_view_name> --organization <organization> --lifecycle-environment <lifecycle_environment> hammer repository list --search 'content_label ~ rhel-8' --content-view <content_view_name> --organization <organization> --lifecycle-environment <lifecycle_environment> - # hammer repository list --search 'content_label ~ rhel-7' --content-view <content_view_name> --organization <organization> --lifecycle-environment <lifecycle_environment> # hammer repository list --search 'content_label ~ rhel-8' --content-view <content_view_name> --organization <organization> --lifecycle-environment <lifecycle_environment>- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow - 将 <content_view_name> 替换为内容视图的名称,将 <organization> 替换为机构,将 <lifecycle_environement> 替换为生命周期环境的名称。 
 
- 验证与内容视图关联的激活码中是否启用了正确的 RHEL 8 存储库: - 在 Satellite Web UI 中,导航到 Content > Lifecycle > Activation Keys,然后点击激活码的名称。
- 
								单击 Repository Sets 选项卡,验证所需存储库的状态是否为 Enabled。
 
- 验证所有期望的 RHEL 7 存储库是否已在主机上启用。例如: - subscription-manager repos --list-enabled | grep "^Repo ID" - # subscription-manager repos --list-enabled | grep "^Repo ID" Repo ID: rhel-7-server-extras-rpms Repo ID: rhel-7-server-rpm- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow