跳到主要内容

将节点与集群同步

如果存在集群范围的仲裁,但是一个或多个节点与集群不同步,则必须同步该节点以还原节点上的复制数据库(RDB)并将其置于仲裁中。

在正常运行的节点上,在高级权限级别使用 system configuration recovery cluster sync 命令来同步与集群配置不同步的节点。

示例

本示例将一个节点(node2)与集群中其余的节点同步:
cluster1::*> system configuration recovery cluster sync -node node2

Warning: This command will synchronize node "node2" with the cluster
configuration, potentially overwriting critical cluster
configuration files on the node. This feature should only be
used to recover from a disaster. Do not perform any other
recovery operations while this operation is in progress. This
command will cause all the cluster applications on node
"node2" to restart, interrupting administrative CLI and Web
interface on that node.
Do you want to continue? {y|n}: y
All cluster applications on node "node2" will be restarted. Verify that the cluster applications go online.

结果

RDB 将复制到该节点,随后该节点即符合参与集群的条件。