一.本案例适合什么场景?
1.近期执行过配置LVS
2.近期可能重启过集群或CN
二.如何确定是该问题?
1.集群降级 cluster_state 为Degraded

2.CN的statue为down

三.问题根因
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

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