为每个 HA 对禁用存储故障转移:storage failover modify -node node_name -enabled false
对于每个 HA 对,您只需要禁用一次存储故障转移。
对某个节点禁用存储故障转移后,此节点的配对节点也将禁用存储故障转移。
暂停除恢复节点以外的每个节点:system node halt -node node_name -reason "text"
示例
cluster1::*> system node halt -node node0 -reason "recovering cluster"
Warning: Are you sure you want to halt the node? {y|n}: y
将权限级别设置为高级:set -privilege advanced
在恢复节点上,使用 system configuration recovery cluster recreate 命令重新创建集群。
示例
以下示例使用在恢复节点上存储的配置信息来重新创建集群:
cluster1::*> configuration recovery cluster recreate -from node
Warning: This command will destroy your existing cluster. It will
rebuild a new single-node cluster consisting of this node
and its current configuration. This feature should only be
used to recover from a disaster. Do not perform any other
recovery operations while this operation is in progress.
Do you want to continue? {y|n}: y
即会在恢复节点上创建新集群。
如果要从配置备份文件重新创建集群,请验证集群恢复是否仍在进行中:system configuration recovery cluster show
如果要从运行状况良好的节点重新创建集群,则无需验证集群恢复状态。
示例
cluster1::*> system configuration recovery cluster show
Recovery Status: in-progress
Is Recovery Status Persisted: false
cluster1::*> system configuration recovery cluster rejoin -node node2
Warning: This command will rejoin node "node2" into the local
cluster, potentially overwriting critical cluster
configuration files. This command 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 node "node2" to reboot.
Do you want to continue? {y|n}: y
目标节点即会重新启动并加入集群中。
验证目标节点是否运行状况良好并且已与集群中的其余节点形成仲裁:cluster show -eligibility true
目标节点必须重新加入重新创建的集群,然后才能重新加入其他节点。
示例
cluster1::*> cluster show -eligibility true
Node Health Eligibility Epsilon
-------------------- ------- ------------ ------------
node0 true true false
node1 true true false
2 entries were displayed.