Clustering

Percona XtraDB Cluster and SELinux: Getting It To Work

In this blog post, I’ll look at how to make Percona XtraDB Cluster and SELinux work when used together.

Recently, I encountered an issue with Percona XtraDB Cluster startup. We tried to setup a three-node cluster using Percona XtraDB Cluster with a Vagrant CentOS box, but somehow node2 was not starting. I did not get enough information to debug the issue in the donor/joiner error log. I got only the following error message:

The donor node error log also failed to give any information to debug the issue. After spending a few hours on the problem, one of our developers (Krunal) found that the error is due to SELinux. By default, SELinux is enabled in Vagrant CentOS boxes.

We have already documented how to disable SELinux when installing Percona XtraDB Cluster. Since we did not find any SELinux related error in the error log, we had to spend few hours finding out the root cause

You should also disable SELinux on the donor node to start the joiner node. Otherwise, the SST script starts but startup will fail with this error:

Disable SELinux on all nodes to start Percona XtraDB Cluster.

The Percona XtraDB Cluster development team is working on providing the proper error message for SELinux issues.

Source link

Leave a Reply

Your email address will not be published. Required fields are marked *