Skip to main content
ONTAP Mediator
本繁體中文版使用機器翻譯,譯文僅供參考,若與英文版本牴觸,應以英文版本為準。

升級 ONTAP 中介器

貢獻者 netapp-aoife netapp-camdenc

若要將 ONTAP Mediator 升級至較新版本而不升級主機作業系統,請下載新版本的安裝套件,並在已安裝 ONTAP Mediator 的主機上執行安裝程式。

註 如果您需要將主機作業系統升級至新版本,並在此過程中重新安裝或升級 ONTAP Mediator,請改為參閱 "升級主機作業系統和 ONTAP Mediator"。
開始之前
關於此任務

升級 ONTAP Mediator 前,請先查看以下資訊。

  • 您應該將 ONTAP Mediator 升級到最新版本。舊版仍然可以與所有 ONTAP 版本相容,但新版本包含針對第三方元件的安全性修補程式。

  • 當您升級到包含 SCST 套件的新 ONTAP Mediator 版本時,安裝程式會自動升級到建議的 SCST 版本,除非有更高版本可用。有關手動安裝更高 SCST 版本的說明,請參閱"維護 ONTAP Mediator 的主機作業系統"。有關支援的版本,請參閱"SCST 支援對照表"。

註
  • 如果升級失敗,您可能需要嘗試使用更新版本的 ONTAP Mediator。

  • 自 2025 年 6 月 15 日起,您將無法安裝或升級 ONTAP Mediator 1.9 和 1.8,因為它們的程式碼簽署憑證已過期。如果升級失敗,請改用 ONTAP Mediator 1.9.1 修補程式版本。

  • 從 ONTAP 9.19.1 和 ONTAP Mediator 1.12 開始,您可以選擇安裝支援 iSCSI 和 HTTPS 的 ONTAP Mediator,或僅支援 HTTPS 的 ONTAP Mediator。如果您選擇僅安裝支援 HTTPS 的 ONTAP Mediator,則不會安裝 SCST 軟體套件。

  • 如果您從安裝了 SCST 的 ONTAP Mediator 1.11 或更早版本升級,並且在升級過程中選擇僅 HTTPS 選項,則 SCST 軟體包將被卸載,新的 ONTAP Mediator 版本將不包含 SCST 軟體包。

  • 如果您打算使用 ONTAP Mediator 監控多個 MetroCluster IP 組態,支援取決於您的 Mediator 類型、ONTAP 版本和作業系統。如需詳細資訊,請參閱 "使用 ONTAP Mediator 監控多個 MetroCluster IP 組態"。

  • 僅支援 HTTPS 的 ONTAP Mediator 安裝方式適用於下列使用情境:

    • 您計劃僅使用 ONTAP Mediator 來監控您的 SnapMirror active sync 叢集。

    • 您計劃設定 ONTAP Mediator 與 HTTPS 以監控一個或多個 MetroCluster IP 組態。

  • 在下列情況下,必須安裝支援 iSCSI 和 HTTPS 的 ONTAP Mediator:

    • 您計劃設定 ONTAP Mediator 與 iSCSI 來監控一個或多個 MetroCluster IP 組態。

  • 當您針對現有的 ONTAP Mediator 安裝執行安裝程式時,它會偵測目前版本並提示您確認升級:

    ONTAP Mediator will be upgraded from version <current-version> to <new-version>.

    Do you wish to continue? Y(es)/n(o):

  • 作為升級的一部分,安裝程式會擷取升級前組態的支援套裝組合,並在升級 ONTAP Mediator 軟體之前遷移資料庫。

  • 對於自動化使用案例,您可以使用 ./ontap-mediator-1.13.0/ontap-mediator-1.13.0 -y 命令來跳過安裝程式提示。

步驟
  1. 在升級之前,如果您要將與下列任一版本配對的 ONTAP Mediator 執行個體升級至 ONTAP Mediator 1.13 或更新版本,請完成下列子步驟:

    • ONTAP 9.11.1 及更早版本

    • 早於 9.12.1P15、9.13.1P12、9.14.1P8 和 9.15.1P2 的 ONTAP 修補程式版本

      1. 將下列這行新增至 /opt/netapp/lib/ontap_mediator/ontap_mediator/server_config/ontap_mediator.user_config.yaml 檔案。

        'generate_unique_ca_name': false

    ONTAP Mediator 升級後,此檔案將會保留。

  2. 執行新版本的安裝程式,並視需要回應提示:

    ./ontap-mediator-1.13.0/ontap-mediator-1.13.0
    註

    若要在升級過程中跳過簽署檢查,請使用 ./ontap-mediator-1.13.0/ontap-mediator-1.13.0 --skip-code-signature-check 命令

    安裝程式會偵測現有安裝並提示您進行升級,然後安裝所需的軟體套件並遷移您的組態。

    支援 HTTPS 和 iSCSI 的 ONTAP Mediator 升級範例(主控台輸出)
    [root@mediator-host ~]# ontap-mediator-1.13.0/ontap-mediator-1.13.0
    
    + Extracting the ONTAP Mediator installation/upgrade archive
    + Performing the ONTAP Mediator run-time code signature check
       Using openssl from the path: /usr/bin/openssl configured for CApath:/etc/pki/tls
    Error querying OCSP responder
    40B70028217F0000:error:1E800080:HTTP routines:OSSL_HTTP_REQ_CTX_nbio:failed reading data:crypto/http/http_client.c:596:
    40B70028217F0000:error:1E800067:HTTP routines:OSSL_HTTP_REQ_CTX_exchange:error receiving:crypto/http/http_client.c:1046:server=http://ocsp.entrust.net:80
       WARNING: The OCSP check failed while attempting to test the Code-Signature-Check certificate
       Continue without code signature checking (only recommended if integrity has been established manually)? y(es)/N(o): yes
     SKIPPING: Code signature check, manual override due to lack of OCSP response
    + Unpacking the ONTAP Mediator installer
    + ONTAP_MEDIATOR_INSTALL_HTTPS_ONLY is set to '0', args are: ''
    + Starting ONTAP Mediator install/update process: previous installation_mode is ''
    
    
    ONTAP Mediator can be installed with iSCSI and HTTPS support, or HTTPS support only.
    Do you wish to install ONTAP Mediator with iSCSI and HTTPS support? Y(es)/n(o): yes
    ONTAP Mediator will be installed with mode: ISCSI_HTTPS
    Selected install package mode: ISCSI_HTTPS
    ONTAP Mediator will be upgraded from version 1.12.1 to 1.13.0.
    Do you wish to continue? Y(es)/n(o): yes
    Capturing support_bundle to save pre-upgrade configuration. API Credentials are required.
        Mediator API User Name: mediatoradmin
                     Password: Running plugins, please wait...
    
    Running 1/11: apis...
    
    Creating tar archive...
    Support bundle has been generated at /opt/netapp/data/support_bundles/sdot-r730-0003a-d4.gdl.englab.netapp.com_1792143997_BASIC.tgz
    Testing the DB can be upgraded
    Cloning database...
    Cloning successful.
    Verifying database is up-to-date...
    Database out-of-date.Migrations are necessary:
    Current revision: 45ca93e60653, Head revision: 086df085a190
    Performing database migrations against clone...
    Migrations successful.
    Database upgrade operation complete.
    + Adding python312 specific packages
    + Upgrading ONTAP Mediator. (Log: /root/ontap_mediator.FO5UgL/ontap-mediator-1.13.0/ontap-mediator-1.13.0/upgrade_20261016054617.log)
    fapolicyd not installed or no rules.d directory found, skipping fapolicyd configuration
        ONTAP Mediator rsyslog and logging rotation enabled
    + Upgrade successful. (Moving log to /opt/netapp/lib/ontap_mediator/log/upgrade_20261016054617.log)\n
    + WARNING: This system supports UEFI
               Secure Boot (SB) is currently enabled on this system.
               The following action need be taken:
               Using the keys in /opt/netapp/lib/ontap_mediator/ontap_mediator/SCST_mod_keys follow
               instructions in /opt/netapp/lib/ontap_mediator/ontap_mediator/SCST_mod_keys/README.module-signing
               to sign the SCST kernel module. Note that reboot will be needed.
         SCST will not start automatically when Secure Boot is enabled and not configured properly.
    
    + Note: ONTAP Mediator generated a self-signed server certificate for temporary use on
        this host. If the DNS name or IP address for the host is changed, the certificate
        will no longer be valid. The default certificates should be replaced with secure
        trusted certificates signed by a known certificate authority prior to use for production.
        For more information, see /opt/netapp/lib/ontap_mediator/README
    
    + Note: ONTAP Mediator uses a kernel module compiled specifically for the current
            OS. Using 'yum update' to upgrade the kernel might cause service interruption.
        For more information, see /opt/netapp/lib/ontap_mediator/README
    [root@mediator-host ~]#
    僅支援 HTTPS 的 ONTAP Mediator 升級範例(主控台輸出)
    [root@mediator-host ~]# ontap-mediator-1.13.0/ontap-mediator-1.13.0 --https-only
    
    ONTAP Mediator: Self Extracting Installer
    
    + Extracting the ONTAP Mediator installation/upgrade archive
    + Performing the ONTAP Mediator run-time code signature check
       Using openssl from the path: /usr/bin/openssl configured for CApath:/etc/pki/tls
    Error querying OCSP responder
    40A73D8E847F0000:error:1E800080:HTTP routines:OSSL_HTTP_REQ_CTX_nbio:failed reading data:crypto/http/http_client.c:614:
    40A73D8E847F0000:error:1E800067:HTTP routines:OSSL_HTTP_REQ_CTX_exchange:error receiving:crypto/http/http_client.c:1075:server=http://ocsp.entrust.net:80
       WARNING: The OCSP check failed while attempting to test the Code-Signature-Check certificate
       Continue without code signature checking (only recommended if integrity has been established manually)? y(es)/N(o): yes
     SKIPPING: Code signature check, manual override due to lack of OCSP response
    + Unpacking the ONTAP Mediator installer
    + ONTAP_MEDIATOR_INSTALL_HTTPS_ONLY is set to '1', args are: ''
    + Starting ONTAP Mediator install/update process: previous installation_mode is 'HTTPS_ONLY'
    + Selected install package mode: HTTPS_ONLY
    ONTAP Mediator will be upgraded from version 1.12.1 to 1.13.0.
    
    
    Do you wish to continue? Y(es)/n(o): yes
    Capturing support_bundle to save pre-upgrade configuration. API Credentials are required.
        Mediator API User Name: mediatoradmin
                     Password: Running plugins, please wait...
    
    
    Creating tar archive...
    Support bundle has been generated at /opt/netapp/data/support_bundles/sdot-r730-0003a-d4.gdl.englab.netapp.com_1792151055_BASIC.tgz
    Testing the DB can be upgraded
    Cloning database...
    Cloning successful.
    Verifying database is up-to-date...
    Database out-of-date.Migrations are necessary:
    Current revision: 45ca93e60653, Head revision: 086df085a190
    Performing database migrations against clone...
    Migrations successful.
    Database upgrade operation complete.
    + Adding python312 specific packages
    + Upgrading ONTAP Mediator. (Log: /root/ontap_mediator.qmrGsH/ontap-mediator-1.13.0/ontap-mediator-1.13.0/upgrade_20261016074342.log)
    fapolicyd not installed or no rules.d directory found, skipping fapolicyd configuration
        ONTAP Mediator rsyslog and logging rotation enabled
    + Upgrade successful. (Moving log to /opt/netapp/lib/ontap_mediator/log/upgrade_20261016074342.log)\n
    + WARNING: This system supports UEFI
    + Note: Not signing the SCST modules since they were not installed by this installation.
    + Note: SCST will not start automatically if Secure Boot is enabled and not configured properly.
    
    + Note: ONTAP Mediator generated a self-signed server certificate for temporary use on
        this host. If the DNS name or IP address for the host is changed, the certificate
        will no longer be valid. The default certificates should be replaced with secure
        trusted certificates signed by a known certificate authority prior to use for production.
        For more information, see /opt/netapp/lib/ontap_mediator/README
    
    + Note: ONTAP Mediator uses a kernel module compiled specifically for the current
            OS. Using 'yum update' to upgrade the kernel might cause service interruption.
        For more information, see /opt/netapp/lib/ontap_mediator/README
    [root@mediator-host ~]#