重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 206|回复: 0
打印 上一主题 下一主题

repmgr切换报ERROR: unable to execute "repmgr"

[复制链接]
跳转到指定楼层
楼主
发表于 2024-12-28 18:32:50 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
完整信息如下:

[postgres@db124 ~]$ repmgr standby switchover -f /u01/app/postgres/repmgr.conf --siblings-follow --dry-run
NOTICE: checking switchover on node "db124" (ID: 124) in --dry-run mode
INFO: SSH connection to host "192.168.133.122" succeeded
ERROR: unable to execute "repmgr" on "192.168.133.122"
HINT: check "pg_bindir" is set to the correct path in "repmgr.conf"; current value: (not set)


原因是:pg_bindir 没有设置。

解决办法:
    正确设置后,就可:

[postgres@db124 ~]$ cat /u01/app/postgres/repmgr.conf |grep pg_bin
pg_bindir='/u01/app/postgres/product/12.7/dbhome_1/bin'


[postgres@db124 ~]$ repmgr standby switchover -f /u01/app/postgres/repmgr.conf --siblings-follow --dry-run
NOTICE: checking switchover on node "db124" (ID: 124) in --dry-run mode
INFO: SSH connection to host "192.168.133.122" succeeded
INFO: able to execute "repmgr" on remote host "192.168.133.122"
WARNING: option "--sibling-nodes" specified, but no sibling nodes exist
INFO: 1 walsenders required, 10 available
INFO: demotion candidate is able to make replication connection to promotion candidate
INFO: 0 pending archive files
INFO: replication lag on this standby is 0 seconds
NOTICE: attempting to pause repmgrd on 2 nodes
NOTICE: local node "db124" (ID: 124) would be promoted to primary; current primary "db122" (ID: 122) would be demoted to standby
INFO: following shutdown command would be run on node "db122":
  "pg_ctl  -D '/u01/app/postgres/pgdata' -W -m fast stop"
INFO: parameter "shutdown_check_timeout" is set to 60 seconds
INFO: prerequisites for executing STANDBY SWITCHOVER are met


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2025-2-5 14:46 , Processed in 0.082337 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表