配置LVS(安装负载均衡)后,集群降级,cn状态为down

一.本案例适合什么场景?

1.近期执行过配置LVS

2.近期可能重启过集群或CN

二.如何确定是该问题?

1.集群降级 cluster_state 为Degraded

image.png

2.CN的statue为down

image.png

三.问题根因

1.安装负载均衡,会将lvs的虚拟ip写入CN的配置文件/src/BigData/mppdb/data*/coordinator/postgresql.conf中listen_address

No virtual ip address on local host.
Begin to install load balance component...
compareAndCheckVirtualIp ...
Begin to check virtual IP...
Virtual ip check succeed.
Begin to install LVS component...
The configuration file of LVS has been configure succeed. 
Succeed to restart /etc/init.d/gs_keepalived service.

2.如果安装过程报错,或者ip填写错误,导致配置文件出错,重启集群或cn,cn会起不来

    四.如何解决

1.正确修改配置文件/src/BigData/mppdb/data*/coordinator/postgresql.conf中listen_address

2.正确例子    localhost,本地ip,lvs ip

image.png

原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/tech/bigdata/316442.html

(0)
上一篇 2025年10月29日 21:17
下一篇 2025年10月29日 21:21

相关推荐

发表回复

登录后才能评论