我正在尝试在 3 台 Ubuntu 机器上配置 Pacemaker,我正在关注微软的说明
完成后,所有集群节点均被阻止,并且没有资源正在启动。我从 corosync.log 中读取的错误是:
资源必须配置为notify = true
电脑状态:
Cluster name: ag_cluster
Stack: corosync
Current DC: serv-01 (version 1.1.18-2b07d5c5a9) - partition with quorum
Last updated: Wed Apr 29 11:29:03 2020
Last change: Wed Apr 29 09:51:23 2020 by root via crm_resource on serv-01
3 nodes configured
4 resources configured
Online: [ serv-01 serv-02 serv-03 ]
Full list of resources:
Master/Slave Set: ag_cluster-master [ag_cluster]
ag_cluster (ocf::mssql:ag): FAILED serv-01 (blocked)
ag_cluster (ocf::mssql:ag): FAILED serv-02 (blocked)
ag_cluster (ocf::mssql:ag): FAILED serv-03 (blocked)
virtualip (ocf::heartbeat:IPaddr2): Stopped
Failed Actions:
* ag_cluster_stop_0 on serv-01 'not configured' (6): call=33, status=complete, exitreason='Resource must be configured with notify=true',
last-rc-change='Wed Apr 29 09:50:16 2020', queued=0ms, exec=64ms
* ag_cluster_stop_0 on serv-02 'not configured' (6): call=30, status=complete, exitreason='Resource must be configured with notify=true',
last-rc-change='Wed Apr 29 09:50:16 2020', queued=0ms, exec=73ms
* ag_cluster_stop_0 on serv-03 'not configured' (6): call=30, status=complete, exitreason='Resource must be configured with notify=true',
last-rc-change='Wed Apr 29 09:50:16 2020', queued=0ms, exec=68ms
Daemon Status:
corosync: active/enabled
pacemaker: active/enabled
pcsd: active/enabled
该 cmd 已运行并且资源配置如下:
sudo pcs resource create ag_cluster ocf:mssql:ag ag_name=ag1 meta failure-timeout=30s --master meta notify=true
答案1
pcs 资源创建 ag_cluster ocf:mssql:ag ag_name=my_ag1 meta Failure-Timeout=30s Master 通知=true
删除 master 之前的 --。微软搞砸了他们的文档 :)