關于PXC集群首節點恢復的問題
我嘗試使用docker搭建了一個3節點PXC集群
啟動第一個節點,后面兩個加入,完成之后測試了一下數據同步沒有問題
然后關閉第一個啟動的節點,再恢復無法加入集群
2018-11-25T04:27:40.930345Z 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-11-25T04:27:40.930352Z 0 [ERROR] WSREP: Provider/Node (gcomm://) failed to establish connection with cluster (reason: 7)
2018-11-25T04:27:40.930356Z 0 [ERROR] Aborting
嘗試關閉第二個和第三個節點都沒有問題,請問第一個節點如果故障如何恢復呢?
2021-07-29
啟動的方式有問題應該是。直接mysql start啟動就可以了,不需要在引導
2019-06-10
指令中需要加入? -e CLUSTER_JOIN=其他的一個節點
你的第一個是主節點的化? 可以修改/var/lib/docker/volumes/v1/_data/gratxxx.bat文件中的最后一個參數 0改成1
也可以直接啟動