0
問題與repmgr: failed to register in clasterRepmgr無法在claster中註冊待機,我錯過了什麼?
請說說我,我有什麼錯過?
MASTER CONFIG:
failover=automatic
follow_command='repmgr standby follow -f /etc/repmgr.conf --log-to-file'
cluster=cluster1
node=1
node_name=node100
conninfo='host=192.168.22.200 port=6432 user=repmgr dbname=repmgr'
master_response_timeout=30
pg_bindir=/usr/local/bin/
service_start_command = systemctl start postgresql-9.6
service_stop_command = systemctl stop postgresql-9.6
service_restart_command = systemctl restart postgresql-9.6
STANDBY CONFIG:
failover=automatic
follow_command='repmgr standby follow -f /etc/repmgr.conf --log-to-file'
cluster=cluster1
node=3
node_name=replica
conninfo='host=slav port=6432 user=repmgr dbname=repmgr'
master_response_timeout=30
pg_bindir=/usr/local/bin/
service_start_command = systemctl start postgresql-9.6
service_stop_command = systemctl stop postgresql-9.6
service_restart_command = systemctl restart postgresql-9.6
REPMGR LOG:
[2017-08-09 10:36:37] [WARNING] No record found for node 3
[2017-08-09 10:36:37] [ERROR] No metadata record found for this node - terminating
[2017-08-09 10:36:37] [HINT] Check that 'repmgr (master|standby) register' was executed for this node
但是當嘗試註冊節點STANDBY:
-bash-4.2$ repmgr -f /etc/repmgr.conf standby register
ERROR: Node 3 exists already with node_name "replica"
NOW待命錯誤:[ERROR]該節點被標記爲不活動的,並且不能用於故障轉移 – Reset