验证 MetroCluster 配置的运行状况

您应检查 MetroCluster 配置的运行状况,以验证是否正常。

步骤

  1. 检查每个集群上是否已配置 MetroCluster 且其处于正常模式:metrocluster show
    示例
    cluster_A::> metrocluster show
    Cluster                   Entry Name          State
    ------------------------- ------------------- -----------
     Local: cluster_A         Configuration state configured
                              Mode                normal
                              AUSO Failure Domain auso-on-cluster-disaster
    Remote: cluster_B         Configuration state configured
                              Mode                normal
                              AUSO Failure Domain auso-on-cluster-disaster
  2. 检查在每个节点上是否已启用镜像:metrocluster node show
    示例
    cluster_A::> metrocluster node show
    DR                           Configuration  DR
    Group Cluster Node           State          Mirroring Mode
    ----- ------- -------------- -------------- --------- --------------------
    1     cluster_A
                  node_A_1       configured     enabled   normal
          cluster_B
                  node_B_1       configured     enabled   normal
    2 entries were displayed.
    
  3. 检查 MetroCluster 组件的运行状况是否良好:metrocluster check run
    示例
    cluster_A::> metrocluster check run
    
    Last Checked On: 10/1/2014 16:03:37
    
    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.
    
  4. 检查是否不存在运行状况警报:system health alert show
  5. 模拟切换操作:
    1. 在任一节点的提示符处,更改为高级权限级别:set -privilege advanced
      在系统提示您继续进入高级模式时,您需要回答 y,然后您将看到高级模式提示符 (*>)。
    2. 使用 -simulate 参数执行切换操作:metrocluster switchover -simulate
    3. Return to the admin privilege level: set -privilege admin
  6. 对于使用 ONTAP 调解器服务的 MetroCluster IP 配置,请确认调解器服务已启动并正在运行。
    1. 检查调解器磁盘是否对系统可见: storage failover mailbox-disk show
      示例
      以下示例显示邮箱磁盘已被识别。
      node_A_1::*> storage failover mailbox-disk show                     
                       Mailbox
      Node             Owner     Disk    Name        Disk UUID
      -------------     ------   -----   -----        ----------------
      sti113-vsim-ucs626g                
      .
      .
           local     0m.i2.3L26      7BBA77C9:AD702D14:831B3E7E:0B0730EE:00000000:00000000:00000000:00000000:00000000:00000000
           local     0m.i2.3L27      928F79AE:631EA9F9:4DCB5DE6:3402AC48:00000000:00000000:00000000:00000000:00000000:00000000
           local     0m.i1.0L60      B7BCDB3C:297A4459:318C2748:181565A3:00000000:00000000:00000000:00000000:00000000:00000000
      .
      .
      .
           partner   0m.i1.0L14      EA71F260:D4DD5F22:E3422387:61D475B2:00000000:00000000:00000000:00000000:00000000:00000000
           partner   0m.i2.3L64      4460F436:AAE5AB9E:D1ED414E:ABF811F7:00000000:00000000:00000000:00000000:00000000:00000000 
      28 entries were displayed.
    2. 更改为高级权限级别:set -privilege advanced
    3. 检查邮箱 LUN 是否对系统可见: storage iscsi-initiator show
      示例
      输出将显示邮箱 LUN 是否存在:
      Node    Type       Label      Target Portal     Target Name                                 Admin/Op
      ----    ----       --------   ---------    --------- --------------------------------       --------
      .
      .
      .
      .node_A_1    
                     mailbox
                           mediator 172.16.254.1    iqn.2012-05.local:mailbox.target.db5f02d6-e3d3    up/up
      .
      .
      .
      17 entries were displayed.
    4. 返回到管理权限级别:set -privilege admin