SUSE Multi-Linux Manager 服务器升级
运行升级命令前,需要更新主机操作系统。更新主机操作系统时,SUSE Multi-Linux Manager 相关工具(如 mgradm)也会同步更新。
使用
zypper刷新软件储存库:zypper ref根据主机操作系统执行以下步骤:
- 对于 SL Micro 等事务性系统:
使用
transactional-update应用可用的更新:transactional-update如果已应用更新,请
重引导。- 对于 SUSE Linux Enterprise Server:
使用
zypper更新安装的软件:zypper up可使用以下命令更新 SUSE Multi-Linux Manager 服务器容器:
Risk of Automated Version Downgrade and PTF Loss
Running the
mgradm upgrade podmancommand when no newer upgrade is available will cause the system to automatically revert to the base version. This process removes all currently applied Program Temporary Fixes (PTFs) without a confirmation prompt.To avoid unintended data or fix loss, verify upgrade availability before execution. Future releases will include a confirmation prompt to prevent this behavior.
mgradm upgrade podman此命令可使容器保持最新状态并重启服务器。
清理未使用的容器映像以释放磁盘空间:
podman image prune -a
|
使用第三方 SSL 证书升级
如果您使用第三方证书,数据库容器需配备包含以下主体备用名称 (SAN) 的 SSL 证书:
同一证书可同时用于主容器与数据库容器,但需包含上述 SAN。 In order to pass the new certificate to the upgrade command, use the |
|
升级到特定版本
如果未指定标记参数,则默认会升级到最新版本。要升级到特定版本,请为标记参数提供所需的映像标记。 |
要查看 upgrade 命令及其参数的详细信息,请使用以下命令:
|
Risk of Automated Version Downgrade and PTF Loss Running the To avoid unintended data or fix loss, verify upgrade availability before execution. Future releases will include a confirmation prompt to prevent this behavior. |
mgradm upgrade podman -h
对于隔离的安装,请先升级容器 RPM 软件包,然后运行 mgradm 命令。
1. 数据库备份卷
通过 mgradm migration 或 mgradm upgrade 执行服务器迁移或升级时,会创建一个包含数据库备份的卷。
当 PostgreSQL 数据库有更新的版本时,必须在执行升级流程前将旧数据库存储到单独的位置。为此,mgradm 会动态创建卷 var-pgsql-backup。当迁移或升级完成且用户已验证新系统可按预期正常运行后,可安全去除该卷。