SUSE Multi-Linux Manager 服务器升级
Before running the upgrade command, it is required to update the host operating system. Updating the host operating system will also result in the update of the SUSE Multi-Linux Manager tooling such as the mgradm tool.
使用
zypper刷新软件储存库:zypper ref根据主机操作系统执行以下步骤:
- 对于 SL Micro 等事务性系统:
使用
transactional-update应用可用的更新:transactional-update如果已应用更新,请
重引导。- 对于 SUSE Linux Enterprise Server:
使用
zypper更新安装的软件:zypper up可使用以下命令更新 SUSE Multi-Linux Manager 服务器容器:
mgradm upgrade podman此命令可使容器保持最新状态并重启服务器。
Clean up the unused container images to free disk space:
podman image prune -a
|
Upgrading with third-party SSL certificate
If you are using third-party certificates, the database container needs to have an SSL certificate with the following Subject Alternate Names (SANs):
The same certificate can be used for both the main container and the database one, but it needs to have those SANs too. In order to pass the new certificate to the upgrade command, use the |
|
升级到特定版本
如果未指定标记参数,则默认会升级到最新版本。要升级到特定版本,请为标记参数提供所需的映像标记。 |
要查看 upgrade 命令及其参数的详细信息,请使用以下命令:
mgradm upgrade podman -h
对于隔离的安装,请先升级容器 RPM 软件包,然后运行 mgradm 命令。
1. 数据库备份卷
通过 mgradm migration 或 mgradm upgrade 执行服务器迁移或升级时,会创建一个包含数据库备份的卷。
当 PostgreSQL 数据库有更新的版本时,必须在执行升级流程前将旧数据库存储到单独的位置。为此,mgradm 会动态创建卷 var-pgsql-backup。当迁移或升级完成且用户已验证新系统可按预期正常运行后,可安全去除该卷。