克隆复制无法通过repmgr工作

时间:2018-08-07 07:36:55

标签: postgresql repmgr

我们正在postgres中学习复制管理器(repmgr)。创建完服务器数据库后,我们尝试使用以下命令在服务器中进行克隆。

  

$ / var / lib / postgresql / bin / repmgr -h 192.168.12.229 -U repmgr -d repmgr -D /var/lib/postgresql/9.6/data -f /etc/repmgr/repmgr.conf备用克隆- c

它从主服务器开始基本备份。但是,最后它以

的形式抛出警告和错误
WARNING: no record exists for designated upstream node 1
HINT: you'll need to create the replication slot("repmgr_slot_2") manually
Error: no database connection available

在运行此基本备份时,不会自动创建recovery.conf文件。请提出为什么会发生这种情况,以及在基本备份完成后如何自动自动创建recovery.conf文件。 请解释并给出解决此问题的解决方案...

0 个答案:

没有答案