Getting Started

I got most of what I needed from the blog post I mentioned previously. It's a great reference and starting point. I used the MariaDB downloads page to get the information needed to configure APT (we run Ubuntu 16.04 as our base OS). Once that was done, I installed MariaDB 10.1 with Galera and set up the config as mentioned in the blog post, and started trying to bootstrap the cluster. I got the nodes to join, but replication wasn't working, so I had to dig a little deeper.

IPv6 and SST

After turning up logging and digging a bit, I saw that SST was failing and rsync was throwing an error. I dug into the rsync SST script and found that the line assigning the RSYNC_PORT variable assumed IPv4 syntax. I could have fixed the awk statement by changing $2 to $NF, but I wanted to do a simple fix and by the time I patched this I really just wanted to see replication work, so I was a bit heavy handed. I ended up with a patch like this for /usr/bin/wsrep_sst_rsync:

Victory

Once I patched all the nodes rsync_sst script, had all the configs set up, and did the cluster bootstrap, I was finally able to check replication and state via the SHOW STATUS LIKE 'wsrep_%' statement.