關(guān)于PXC集群首節(jié)點(diǎn)恢復(fù)的問題
我嘗試使用docker搭建了一個3節(jié)點(diǎn)PXC集群
啟動第一個節(jié)點(diǎn),后面兩個加入,完成之后測試了一下數(shù)據(jù)同步?jīng)]有問題
然后關(guān)閉第一個啟動的節(jié)點(diǎn),再恢復(fù)無法加入集群
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
嘗試關(guān)閉第二個和第三個節(jié)點(diǎn)都沒有問題,請問第一個節(jié)點(diǎn)如果故障如何恢復(fù)呢?
2021-07-29
啟動的方式有問題應(yīng)該是。直接mysql start啟動就可以了,不需要在引導(dǎo)
2019-06-10
指令中需要加入? -e CLUSTER_JOIN=其他的一個節(jié)點(diǎn)
你的第一個是主節(jié)點(diǎn)的化? 可以修改/var/lib/docker/volumes/v1/_data/gratxxx.bat文件中的最后一個參數(shù) 0改成1
也可以直接啟動