title: “Bootstrap New Cluster”
date: 2020-05-05T17:23:46
slug: bootstrap-new-cluster
On Primary Node (of you think its the primary one):
/usr/bin/mysqld_safe –wsrep-new-cluster
2020-05-05 19:21:02 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 .
vi /data/mysql/data/grastate.dat
Start mariadb on other nodes
systemctl start mariadb
Check for primary
SHOW GLOBAL STATUS LIKE ‘wsrep_cluster_status’;
Wenn das hier im Log File steht, wird repliziert:
WSREP_SST: [INFO] Waiting for SST streaming to complete! (20200506 14:59:19.575)
