GBase 8a集群LOCK,其它节点都是CLOSE/OFFLINE,只能看到自己OPEN

GBase 8a集群LOCK,其它节点都是CLOSE/OFFLINE,只能看到自己OPEN,一般是防火墙的问题。

现象

自己只能看到自己为OPEN,看其它节点都是CLOSE/OFFLINE。

原因

1、如果所有服务都是CLOSE,则代表节点ssh可连通,但服务侦测不到。如果是OFFLINE则是连ssh都无法连通。 已知原因是防火墙、selinux服务。

2、如果只有gcware为CLOSE,则很有可能是脑裂了。

解决

1、关闭防火墙和selinux

redhat 6 
service iptables stop
service ip6tables stop

redhat 7
systemctl stop firewalld.service

关闭自启动防火墙

redhat 6
chkconfig iptables off

redhat 7
systemctl disable firewalld.service

redhat 6关闭selinux, 参考 GBase 8a对selinux的配置要求

2、理论上出现于管理节点高于30个时。 解决方案是关闭所有节点数据库服务,然后再逐台启动。 每启动一台,确认集群能相互看到已经启动的所有节点,且状态OPEN。