Database Clustering Tutorial 8 – Installing Clustercontrol

In this blog, we’re finally going to install ClusterControl! It’s taken us a long time to get to this point, but now we have a good foundation on which to work from.

Before we begin, open up your three virtual machines, and use the one we named “ClusterControl” to install ClusterControl onto.

Installation

One way to install ClusterControl is to follow the guide on their website.  That way you get the most up-to-date information. Alternatively, follow my simplified guide by reading this blog!



The commands are pretty easy; just copy and paste.

First, go to the virtual machine that we will be installing ClusterControl on and open a terminal.

The first command to run is:




The second command is:



Now the next command we will need to run as root (think super user) by using the sudo keyword. To do this, run:



Now, it will begin to give you a lot of prompts with questions about settings and so forth. Many of these are not that important if you are working in a testing environment. In this blog, I will cover the ones that I feel are most important. For the rest, just answer in accordance with what you think is best in your situation.

MySQL

It is going to install MySQL, which is the database that ClusterControl needs in order to store its own data. This is not the database you are going to be using for your cluster. So, if you don’t already have MySQL installed, it will be asking you a lot of questions related to setting up MySQL. Just make sure you write some of this information down, like the username and password, so that you have it if you happen to need it latter on.

Security

You will also get several questions about security.

Now, because this is a testing environment, I don’t particularly care a whole lot about security. If you are practicing for a production environment, however, you will want to pay a lot more attention to what these questions have to say. I, however, am just going to pick whatever sounds nice. I’m specifically not going to enable the VALIDATE PASSWORD plugin. The reason I don’t want a secure password right now is because I will forget it (LOL). I said yes to everything else though.

Controller Hostname

It will mention that two IP addresses were detected.

We will need to change this to one IP address: the IP address of the correct network card. When we set up our machines in a previous blog, we had them set to 10.71.34.*

To do this, say yes to the prompt asking you if you want to change this, and then type in the IP address of the correct machine.

Reloading Privilege Tables

The last question it will ask you is whether you want to reload the privilege tables. This is important to do because, as it says, this will “ensure that all changes made so far will take effect immediately.” So, say yes to this prompt as well.

Now the installation is done!

Admin Email & Password

One last thing we need to do before we finish is to set up an admin email and password.

To do this, take note of the public/external IP on the terminal.



You will see a link. Hold ctrl and click this link, and then it will bring you to the web page on Firefox.

Here you are going to set up an admin email and password.

Once you do this, you will have created a user.  This is the username and password to login to ClusterControl.

It helps to bookmark the page, so press ctrl D.

Conclusion

We now have ClusterControl installed and ready to go. At this point, we are ready to move forward and actually make a cluster! We’ll be doing this in the next blog!