Search code examples
mysqlmariadbreplicationgalera

How to bootstrap a MariaDB cluster on CentOS 7?


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?


Solution

  • 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.