title: How to bootstrap a MariaDB cluster on CentOS 7?
body: <p>I have consulted three guides to setting up a MariaDB cluster with Galera replication, but cannot get it bootstrapped.</p>
  
  <p>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.</p>
  
  <p>I have consulted MariaDB's guide to <a href="https://mariadb.com/kb/en/mariadb/getting-started-with-mariadb-galera-cluster/" rel="nofollow noreferrer">getting started with MariaDB Galera cluster</a></p>
  
  <p>Issuing <code>galera_new_cluster</code> starts MariaDB on my first node. But starting the other nodes just starts them up normally. Querying <code>SHOW STATUS LIKE 'wsrep_%';</code> shows a cluster size of <code>0</code> and status <code>Disconnected</code>.</p>
  
  <p>I also consulted <a href="https://www.digitalocean.com/community/tutorials/how-to-configure-a-galera-cluster-with-mariadb-on-ubuntu-12-04-servers" rel="nofollow noreferrer">Digital Oceans's guide for Ubuntu</a> and get the same results.</p>
  
  <p>As I'm on CentOS, I also checked <a href="https://www.linode.com/docs/websites/host-a-website-with-high-availability#galera-with-xtradb" rel="nofollow noreferrer">Linode's guide</a> except it installs the Percona XtraDB package so the <code>mysql@bootstrap</code> command doesn't apply.</p>
  
  <p>What is the correct procedure for starting up the cluster for the first time under CentOS 7 using Maria DB 10.1?</p>