0
問題: failed to register in clasterRepmgrがクラスターのスタンバイ登録に失敗しました。どうしましたか? repmgrと
私は何を欠場、MEと言うPLEASE?
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
が、スタンバイとしてノードを登録しよう:
-bash-4.2$ repmgr -f /etc/repmgr.conf standby register
ERROR: Node 3 exists already with node_name "replica"
すぎipを使用し....
CONNINFOの= 'ホスト=スラブポートを登録してみてください:[ERROR]このノードは非アクティブとしてマークされ、フェイルオーバーに使用することはできません – Reset