Reputation: 8606
I have consulted three guides to setting up a MariaDB cluster with Galera replication, but cannot get it bootstrapped.
I'm on CentOS 7 and have opted for installing MariaDB 10.1 from its official repository. The guides I've followed all differ slightly and none of their steps have worked for me.
I have consulted MariaDB's guide to getting started with MariaDB Galera cluster
Issuing galera_new_cluster
starts MariaDB on my first node. But starting the other nodes just starts them up normally. Querying SHOW STATUS LIKE 'wsrep_%';
shows a cluster size of 0
and status Disconnected
.
I also consulted Digital Oceans's guide for Ubuntu and get the same results.
As I'm on CentOS, I also checked Linode's guide except it installs the Percona XtraDB package so the mysql@bootstrap
command doesn't apply.
What is the correct procedure for starting up the cluster for the first time under CentOS 7 using Maria DB 10.1?
Upvotes: 0
Views: 1435
Reputation: 100
To start first Node on galera cluster called bootstrap that is below
service mysql start --wsrep-new-cluster
Upvotes: 1
Reputation: 8606
Turns out I had the wrong path to the provider library.
#wsrep_provider=/usr/lib/galera/libgalera_smm.so
wsrep_provider=/usr/lib64/galera/libgalera_smm.so
Pointing to a file that doesn't exist wasn't raising any errors, so was just doing nothing.
Upvotes: 0