在 ONTAP 9.2 或更早版本中更新双节点 MetroCluster 配置

对于双节点 MetroCluster 配置,您可以无中断地升级并在某些情况下降级 ONTAP。此方法包括几个步骤:启动协商切换,更新“故障”站点的集群,启动切回,然后在其他站点的集群上重复执行此过程。

关于本任务

步骤

  1. 将权限级别设置为高级,在系统提示您是否继续时输入 yset -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. “运行正常的”集群上重新同步数据聚合: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. “正常运行的”集群上重新同步根聚合: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. 在暂停的集群上,从 LOADER 提示符处启动节点:boot_ontap
  13. 等待启动过程完成,然后验证所有集群 SVM 是否均处于正常状态:metrocluster vserver show
  14. “运行正常的”集群执行切回: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 showmetrocluster check node show
    3. Set the privilege level to advanced: 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. Return to the admin privilege level: set -privilege admin
    7. 在其他集群重复执行上述子步骤。

下一步操作

您应执行任何升级后或降级后任务。