第 4 章 更新 Capsule 服务器
将 Capsule 服务器更新至下一个补丁版本。
流程
-
同步 Satellite 服务器中的
satellite-capsule-6.16-for-rhel-8-x86_64-rpms存储库。 - 发布和提升注册胶囊的内容视图的新版本。
确保启用了 Satellite Maintenance 存储库:
在 Red Hat Enterprise Linux 9 中:
subscription-manager repos --enable \ satellite-maintenance-6.16-for-rhel-9-x86_64-rpms
# subscription-manager repos --enable \ satellite-maintenance-6.16-for-rhel-9-x86_64-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow 在 Red Hat Enterprise Linux 8 中:
subscription-manager repos --enable \ satellite-maintenance-6.16-for-rhel-8-x86_64-rpms
# subscription-manager repos --enable \ satellite-maintenance-6.16-for-rhel-8-x86_64-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow
使用健康检查选项来确定系统是否准备好更新:
satellite-maintain update check
# satellite-maintain update checkCopy to Clipboard Copied! Toggle word wrap Toggle overflow 检查结果,并在执行更新前解决所有突出显示的错误条件。
由于更新时间较长,使用
tmux等实用程序挂起和重新连接通信会话。然后,您可以在不持续连接到命令 shell 的情况下检查更新进度。如果您丢失了运行 update 命令的命令 shell,您可以在
/var/log/foreman-installer/capsule.log文件中看到日志记录的消息,以检查进程是否已成功完成。执行更新:
satellite-maintain update run
# satellite-maintain update runCopy to Clipboard Copied! Toggle word wrap Toggle overflow 如果 satellite-maintain 命令通知您重启,请重启系统:
reboot
# rebootCopy to Clipboard Copied! Toggle word wrap Toggle overflow