跳到主要内容

验证扩展集群的配置

扩展集群之后,必须使用一些命令验证集群运行状况和集群复制环,从而验证配置。

  1. 使用 cluster show 命令确保集群中的所有节点都处于正常运行状态。

    示例

    cluster-1::> cluster show
    Node Health Eligibility
    --------------------- ------- ------------
    cluster1-1 true true
    cluster1-2 true true
    cluster1-3 true true
    cluster1-4 true true
    4 entries were displayed.
  2. 确保集群中所有节点上的集群复制环具有相同的时期、数据库时期和数据库事务编号:

    比较事务编号的最简单方法是一次查看一个单元名的事务编号。
    1. 使用 set -privilege advanced 命令将权限级别设置为 advanced。
    2. 使用具有 -unitname mgmt 参数的 cluster ring show 命令查看第一个单元名的集群环信息,并验证所有节点的 Epoch、DB Epoch 和 DB Trnxs 列具有相同的数字。

      示例

      cluster-1::*> cluster ring show -unitname mgmt
      Node UnitName Epoch DB Epoch DB Trnxs Master Online
      --------- -------- -------- -------- -------- --------- ---------
      cluster1-1
      mgmt 2 2 959 cluster1-1
      master
      cluster1-2
      mgmt 2 2 959 cluster1-2
      secondary
      cluster1-3
      mgmt 2 2 959 cluster1-3
      master
      cluster1-4
      mgmt 2 2 959 cluster1-3
      secondary
      4 entries were displayed.
    3. 使用 -unitname vldb 参数重复此命令。
    4. 使用 -unitname vifmgr 参数重复此命令。
    5. 使用 -unitname bcomd 参数重复此命令。
    6. 使用 -unitname crs 参数重复此命令。
    7. 使用 set -privilege admin 命令将权限级别恢复为 admin。