Percona

Fix: safe_to_bootstrap: 1

# search for node with "safe_to_bootstrap: 1"
cat /var/lib/mysql/grastate.dat
 
killall mysqld
service mysql bootstrap-pxc
#/etc/init.d/mysql bootstrap-pxc
service mysql start
killall -9 mysqld
cat /var/lib/mysql/grastate.dat
mysqld_safe --wsrep-recover
service mysql status
 
service mysql start --wsrep-new-cluster
tail -f /var/log/mysqld.log
 
# n-th hosts
service mysql start
 
 
 
sed -i "/safe_to_bootstrap/s/0/1/" /var/lib/mysql/grastate.dat
 
https://www.percona.com/doc/percona-xtradb-cluster/LATEST/howtos/crash-recovery.html
# https://severalnines.com/blog/updated-how-bootstrap-mysql-or-mariadb-galera-cluster
killall -9 mysqld
cat /var/lib/mysql/grastate.dat
mysqld_safe --wsrep-new-cluster
service mysql restart
 
# restart start on remaining nodes
 
cat /var/lib/mysql/gvwstate.dat

Get cluster status

watch -d -n1 -x mysql -B -e "SHOW STATUS WHERE variable_name ='wsrep_local_state_comment' OR variable_name ='wsrep_cluster_size' OR variable_name ='wsrep_incoming_addresses' OR variable_name ='wsrep_cluster_status' OR variable_name ='wsrep_connected' OR variable_name ='wsrep_ready' OR variable_name ='wsrep_local_state_uuid' OR variable_name ='wsrep_cluster_state_uuid';"

Links
https://www.percona.com/doc/percona-xtradb-cluster/8.0/index.html
https://www.percona.com/blog/2014/09/01/galera-replication-how-to-recover-a-pxc-cluster/
https://pandorafms.com/docs/index.php?title=Pandora:Documentation_en:Percona_Cluster
https://www.claudiokuenzler.com/blog/494/galera-cluster-mysql-not-starting-failed-to-open-channel-reach-primary
https://www.clevernetsystems.com/troubleshooting-a-clustercontrol-mysql-pxc-cluster/