您可以检查 MetroCluster 配置中的组件和关系是否运行正常。在初始配置完成后以及在对 MetroCluster 配置做出任何更改后,都应该执行一次检查。您还应在执行协商(计划内)切换或切回操作之前执行一次检查。
如果在任一集群或同时在两个集群上短时间发出两次 metrocluster check run 命令,则可能发生冲突,并且此命令可能不会收集所有数据。如果此后再发出 metrocluster check show 命令,则不会显示应有的输出。
cluster_A::> metrocluster check run The operation has been started and is running in the background. Wait for it to complete and run "metrocluster check show" to view the results. To check the status of the running metrocluster check operation, use the command, "metrocluster operation history show -job-id 2245"
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.
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.