Set up MariaDB Cluster script

master
Jeff Moe 7 years ago
parent 00ad89c23d
commit c3b39c1776

@ -64,3 +64,19 @@ service mysql start
# See if it came up:
mysql -p -u root -e 'SELECT VARIABLE_VALUE as "cluster size" FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME="wsrep_cluster_size"'
###############################################
# run this to lock down:
mysql_secure_installation
###########################################
# If all cluster nodes get shutdown at the same time, the cluster needs to be boot strapped again.
# On just one node, the most advanced, if known (e.g. sql1):
galera_new_cluster
# On other nodes sql2 sql3 sql4
service mysql start
# Maybe need on most advanced node:
# sed -i -e 's/safe_to_bootstrap: 0/safe_to_bootstrap: 1/g' /var/lib/mysql/grastate.dat

Loading…
Cancel
Save