SUSE Multi-Linux Managerサーバのアップグレード

アップグレードコマンドを実行する前に、ホストオペレーティングシステムを更新する必要があります。ホストオペレーティングシステムを更新すると、mgradmツールなどのSUSE Multi-Linux Managerツールも更新されます。

プロシージャ: サーバのアップグレード
  1. zypperを使用してソフトウェアリポジトリを更新します。

    zypper ref
  2. ホストオペレーティングシステムに応じて、以下のステップに進みます。

    SL Microなどのトランザクションシステムの場合:
    1. transactional-updateを使用して利用可能な更新を適用します。

      transactional-update
    2. 更新が適用されたら、rebootを実行して再起動します。

    SUSE Linux Enterprise Serverの場合:

    zypperを使用してインストールされたソフトウェアを更新します。

    zypper up
  3. SUSE Multi-Linux 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

    このコマンドは、コンテナのステータスを最新に更新してサーバを再起動します。

  4. 未使用のコンテナイメージをクリーンアップし、ディスク容量を解放します。

    podman image prune -a
サードパーティSSL証明書を使用したアップグレード

サードパーティ証明書を使用している場合、データベースコンテナには、次のサブジェクト代替名(SAN)を持つSSL証明書が必要です。

  • db

  • reportdb

  • 外部向けの完全修飾ドメイン名

メインコンテナとデータベースコンテナの両方に同じ証明書を使用できますが、これらのSANも必要です。

In order to pass the new certificate to the upgrade command, use the --ssl-db-ca-root, --ssl-db-cert and --ssl-db-key parameters.

特定のバージョンへのアップグレード

タグパラメータを指定しない場合、デフォルトで最新バージョンにアップグレードされます。特定のバージョンにアップグレードするには、タグパラメータと目的のイメージタグを指定します。

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

Air-gappedインストールでは、まずコンテナのRPMパッケージをアップグレードし、その後mgradmコマンドを実行します。

1. データベースバックアップボリューム

mgradm migrationまたはmgradm upgradeを使用したサーバ移行またはアップグレードにより、データベースバックアップを含むボリュームを作成できます。

PostgreSQLデータベースのバージョンを上げる際には、アップグレードを実行する前に古いデータベースを別の場所に保存する必要があります。この目的のために、mgradmはボリュームvar-pgsql-backupを動的に作成します。移行またはアップグレードが完了し、ユーザが新しいシステムが期待通りに動作することを確認したら、このボリュームは安全に削除できます。