跳到主要内容

检查 MetroCluster 配置

可以检查 MetroCluster 配置中的组件和关系是否正常工作。应该在初始配置之后以及对 MetroCluster 配置进行任何更改后进行检查,还应该在协商(计划内)切换或切回操作之前进行检查。

如果在一个或两个集群上短时间内发出两次 metrocluster check run 命令,可能会发生冲突,该命令可能无法收集所有数据。后续的 metrocluster check show 命令不会显示预期的输出。

  1. 检查配置:metrocluster check run

    该命令作为后台作业运行,可能不会立即完成。

    cluster_A::> metrocluster check show
    Last Checked On: 9/13/2017 20:41:37

    Component Result
    ------------------- ---------
    nodes ok
    lifs ok
    config-replication ok
    aggregates ok
    clusters ok
    5 entries were displayed.


  2. 显示最近一次 metrocluster check run 命令的更详细结果:metrocluster check aggregate show metrocluster check cluster show metrocluster check config-replication show metrocluster check lif show metrocluster check node show

    metrocluster check show 命令显示最近一次 metrocluster check run 命令的结果。在使用 metrocluster check show 命令之前,应始终运行 metrocluster check run 命令,使显示的信息是最新信息。

    以下示例显示了正常运行的四节点 MetroCluster 配置的 metrocluster check aggregate show 命令输出:

    cluster_A::> metrocluster check aggregate show

    Last Checked On: 8/5/2014 00:42:58

    Node Aggregate Check Result
    --------------- -------------------- --------------------- ---------
    controller_A_1 controller_A_1_aggr0
    mirroring-status ok
    disk-pool-allocation ok
    ownership-state ok
    controller_A_1_aggr1
    mirroring-status ok
    disk-pool-allocation ok
    ownership-state ok
    controller_A_1_aggr2
    mirroring-status ok
    disk-pool-allocation ok
    ownership-state ok


    controller_A_2 controller_A_2_aggr0
    mirroring-status ok
    disk-pool-allocation ok
    ownership-state ok
    controller_A_2_aggr1
    mirroring-status ok
    disk-pool-allocation ok
    ownership-state ok
    controller_A_2_aggr2
    mirroring-status ok
    disk-pool-allocation ok
    ownership-state ok

    18 entries were displayed.

    以下示例显示了正常运行的四节点 MetroCluster 配置的 metrocluster check cluster show 命令输出。表明集群已准备好在必要时执行协商切换。
    Last Checked On: 9/13/2017 20:47:04

    Cluster Check Result
    --------------------- ------------------------------- ---------
    mccint-fas9000-0102
    negotiated-switchover-ready not-applicable
    switchback-ready not-applicable
    job-schedules ok
    licenses ok
    periodic-check-enabled ok
    mccint-fas9000-0304
    negotiated-switchover-ready not-applicable
    switchback-ready not-applicable
    job-schedules ok
    licenses ok
    periodic-check-enabled ok
    10 entries were displayed.