pxc集群退出后不能启动解决办法

报错日志如下 

2020-02-27T14:10:55.075433Z 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 .
2020-02-27T14:10:55.075436Z 0 [ERROR] WSREP: Provider/Node (gcomm://) failed to establish connection with cluster (reason: 7)
2020-02-27T14:10:55.075438Z 0 [ERROR] Aborting

找到数据存储的目录

# 如我存储数据的目录是
/var/lib/docker/volumes/haoke-v1/_data

修改grastate.dat

将其中的safe_to_bootstrap修改为1

safe_to_bootstrap: 1

重启即可

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值