服务器升级

Before running the upgrade command, it is required to upgrade the mgradm tool first.

过程:升级服务器
  1. 使用 zypper 刷新软件储存库:

    zypper ref
  2. 应用可用更新:

    1. 对于 SLE Micro:

      transactional-update

      如果已应用更新,请重引导

    2. 对于 SUSE Linux Enterprise Server:

      zypper up
  3. 可使用以下命令更新 SUSE Manager 服务器容器:

    Risk of Automated Version Downgrade and PTF Loss

    Running the mgradm upgrade podman command 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

+

此命令可使容器保持最新状态并重启服务器。

+

  1. 清理未使用的容器映像以释放磁盘空间:

    podman image prune -a
升级到特定版本

如果未指定标记参数,则默认会升级到最新版本。要升级到特定版本,请为标记参数提供所需的映像标记。

要查看 upgrade 命令及其参数的详细信息,请使用以下命令:

Risk of Automated Version Downgrade and PTF Loss

Running the mgradm upgrade podman command 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 -h

对于隔离的安装,请先升级容器 RPM 软件包,然后运行 mgradm 命令。