Skip to main content
简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。

在ONTAP 9.2或更早版本中无中断升级双节点MetroCluster配置

贡献者

双节点MetroCluster配置的升级方式因ONTAP版本而异。如果您运行的是ONTAP 9.2或更早版本、则应使用此操作步骤执行手动无中断升级、其中包括启动协商切换、更新"`failed`"站点上的集群、启动切回、然后在另一站点的集群上重复此过程。

如果您的双节点MetroCluster配置运行ONTAP 9.3或更高版本、请执行 使用System Manager自动升级

步骤
  1. 将权限级别设置为高级,在系统提示您继续时输入*y*:

    set -privilege advanced

    高级提示符 (*>)。

  2. 在要升级的集群上、将新的ONTAP软件映像安装为默认映像:

    system node image update -package package_location -setdefault true -replace-package true
    cluster_B::*> system node image update -package http://www.example.com/NewImage.tgz -setdefault true -replace-package true
  3. 验证目标软件映像是否设置为默认映像:

    system node image show

    以下示例显示了这一点 NewImage 设置为默认图像:

    cluster_B::*> system node image show
                        Is      Is                           Install
    Node     Image      Default Current Version              Date
    -------- -------    ------- ------- -------------------- -------------------
    node_B_1
             OldImage  false   true    X.X.X                MM/DD/YYYY TIME
             NewImage  true    false   Y.Y.Y                MM/DD/YYYY TIME
    2 entries were displayed.
  4. 如果目标软件映像未设置为默认映像、请进行更改:

    system image modify {-node * -iscurrent false} -isdefault true
  5. 验证所有集群SVM是否均处于运行状况:

    metrocluster vserver show
  6. 在未更新的集群上、启动协商切换:

    metrocluster switchover

    此操作可能需要几分钟时间。您可以使用 MetroCluster operation show 命令验证切换是否已完成。

    在以下示例中,在远程集群( "`cluster_A` " )上执行协商切换。这会导致本地集群( "`cluster_B` " )暂停,以便您可以对其进行更新。

    cluster_A::> metrocluster switchover
    
    Warning: negotiated switchover is about to start. It will stop all the data
             Vservers on cluster "cluster_B" and
             automatically re-start them on cluster
             "cluster_A". It will finally gracefully shutdown
             cluster "cluster_B".
    Do you want to continue? {y|n}: y
  7. 验证所有集群SVM是否均处于运行状况:

    metrocluster vserver show
  8. `s"正在运行`"集群上的数据聚合:

    metrocluster heal -phase aggregates

    将 MetroCluster IP 配置升级到 ONTAP 9.5 或更高版本后,聚合将在短时间内处于降级状态,然后再重新同步并返回到镜像状态。

    cluster_A::> metrocluster heal -phase aggregates
    [Job 130] Job succeeded: Heal Aggregates is successful.
  9. 验证修复操作是否已成功完成:

    metrocluster operation show
    cluster_A::> metrocluster operation show
    Operation: heal-aggregates
    State: successful
    Start Time: MM/DD/YYYY TIME
    End Time: MM/DD/YYYY TIME
    Errors: -
  10. `s"正在运行`"集群上的根聚合:

    metrocluster heal -phase root-aggregates
    cluster_A::> metrocluster heal -phase root-aggregates
    [Job 131] Job succeeded: Heal Root Aggregates is successful.
  11. 验证修复操作是否已成功完成:

    metrocluster operation show
    cluster_A::> metrocluster operation show
    Operation: heal-root-aggregates
    State: successful
    Start Time: MM/DD/YYYY TIME
    End Time: MM/DD/YYYY TIME
    Errors: -
  12. 在暂停的集群上、从加载程序提示符启动节点:

    boot_ontap
  13. 等待启动过程完成、然后验证所有集群SVM是否均处于运行状况:

    metrocluster vserver show
  14. 从"`s`"集群执行切回:

    metrocluster switchback
  15. 验证切回是否已成功完成:

    metrocluster operation show
    cluster_A::> metrocluster operation show
    Operation: switchback
    State: successful
    Start Time: MM/DD/YYYY TIME
    End Time: MM/DD/YYYY TIME
    Errors: -
  16. 验证所有集群SVM是否均处于运行状况:

    metrocluster vserver show
  17. 对另一个集群重复上述所有步骤。

  18. 验证 MetroCluster 配置是否运行正常:

    1. 检查配置:

      metrocluster check run
      cluster_A::> metrocluster check run
      Last Checked On: MM/DD/YYYY TIME
      Component           Result
      ------------------- ---------
      nodes               ok
      lifs                ok
      config-replication  ok
      aggregates          ok
      4 entries were displayed.
      
      Command completed. Use the "metrocluster check show -instance"
      command or sub-commands in "metrocluster check" directory for
      detailed results.
      To check if the nodes are ready to do a switchover or switchback
      operation, run "metrocluster switchover -simulate" or "metrocluster
      switchback -simulate", respectively.
    2. 如果要查看更详细的结果、请使用MetroCluster check run命令:

      metrocluster check aggregate show
      metrocluster check config-replication show
      metrocluster check lif show
      metrocluster check node show
    3. 将权限级别设置为高级:

      set -privilege advanced
    4. 模拟切换操作:

      metrocluster switchover -simulate
    5. 查看切换模拟的结果:

      metrocluster operation show
      cluster_A::*> metrocluster operation show
          Operation: switchover
              State: successful
         Start time: MM/DD/YYYY TIME
           End time: MM/DD/YYYY TIME
             Errors: -
    6. 返回到管理权限级别:

      set -privilege admin
    7. 在另一个集群上重复这些子步骤。

完成后

执行任何 "升级后任务"