SQL Server 2017 AlwaysOn on Linux 配置和维护(12)
2.4.1 手动故障转移
移动AG资源
手动故障转移AG资源ag_cluster到群集节点nodeName2:
sudopcsresourcemoveag_cluster-masternodeName2--master
删除位置约束
先查看新的目标节点上添加的资源的位置约束:
sudopcsconstraintlist--full
例如:
Enabled on: Node1 (score:INFINITY) (role: Master) (id:cli-prefer-ag_cluster-master)
cli-prefer-ag_cluster-master是需要删除的约束ID。
执行删除:
sudo pcs constraint remove cli-prefer-ag_cluster-master
备注:自动故障转移不会添加位置约束,因此不需要进行清除。
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。