pacemaker+corosync+pg13的搭建大体内容可以参考上一篇的pacemaker+corosync+pg11的搭建,对于pg13的或者说是pg12以及以上版本,需要更新resource-agents
如果使用pg12以上的版本的话,需要把resource-agents升级一下,安装一个支持pg12以上的版本
我这里使用了resource-agents-4-11
安装resource-agents-4-11
先安装依赖包
yum install autoconf automake libtool docbook-style-xsl glib2-devel -y
unzip resource-agents-4.11.0.zip
cd resource-agents-4.11.0/
./autogen.sh
./configure
make
make install
查看/usr/lib/ocf/resource.d/heartbeat/psql中的地1918行,看版本是否支持pg12以上。
ocf_version_cmp "$version" "12"
再进行pacemaker的启动

本文介绍了如何为pg12及以上版本的PostgreSQL升级resource-agents,涉及依赖包安装、resource-agents源码编译和配置,以及检查psql支持版本,并确保Pacemaker的正确启动。
3049

被折叠的 条评论
为什么被折叠?



