pxc容器启动报错了
来源:4-2 创建MySQL集群

天空纸飞机
2018-07-07
2018-07-07T03:04:43.250316Z 0 [ERROR] WSREP: It may not be safe to bootstrap the cluster from this node. It was not the last one to leave the cluster and may not contain all the updates. To force cluster bootstrap with this node, edit the grastate.dat file manually and set safe_to_bootstrap to 1 .
2018-07-07T03:04:43.250343Z 0 [ERROR] WSREP: Provider/Node (gcomm://) failed to establish connection with cluster (reason: 7)
2018-07-07T03:04:43.250356Z 0 [ERROR] Aborting
由于Note1节点被我最先停止了服务, 导致现在宿主机重启后,note1启动不起来了,其它节点也就启不来了 我问下提示中说的 请编辑grastate。手动并将safetobootstrap设置为1 这个是通过命令怎么设置啊
1回答
-
同学你好,非容器化的pxc节点重启的时候,主节点的safe_to_bootstrap的值必须是1。话说回来,如果node1节点宕机了重启,这时候如果存在其它运行的pxc节点,node的启动参数要加上cluser_join=node2,表示与其他节点同步数据。如果没有启动的pxc节点,想要启动node1,可以把node1容器删掉,重新创建node1,挂载数据卷v1就好了,数据也没丢失。
032018-07-08
相似问题