Creating a Two Node Mysql Cluster On Ubuntu With DRBD

Creating a Two Node Mysql Cluster On Ubuntu With DRBD To create this cluster you will need 2 ubuntu node servers installed as follows.

I am creating this cluster inside of vMware so I created 2 VM's with:

1GB RAM

1 10GB hdd for the root (/) partition.

1 20GB hdd for the database store.

I downloaded the ubuntu 9.10 server iso and presented this to the VM's and started the install.

This is by no means an in depth install instruction.

I have just captured screenshots to show what I did.

So here we go with the install of the machines.

You should see this screen on booting the VM. Select the language you want to use.

Select Language
Select Language

Then push the F3 key to select your keyboard.

Select Keyboard

Then use the up and down arrows to select the install ubuntu server option and push the Enter key.

Select Install

Then select your install language using the up and down keys.

Select Language

Then select your Country

Select Country

Then Enter the hostname for the system

Select Hostname

We then need to partition the disks.

I selected the guided – use entire disk option as these are new servers.

Guided Use fulldisk

Then select the first disk Which is 10GB here. We are only formatting the system disk as we need to make some changes to the other disk before we format it later on in this series.

Selecting this option lets Ubuntu manage the system partition in the default manner.

Select 10GB disk

You will then be asked if you really want to write the changes to the disk. As these are new servers you select YES.

Agree to Changes

Now we create a new User that will be used to access the server to administrate it. Enter the Full name e.g. “John Doe”

Full User Name

After you select continue you will be asked to select or type a username.

User login name

Select continue after you are happy with the username. And you will be prompted for a password.

First password

Enter a new password and select the continue option. You will then be asked to enter the password again.

Second Password

After entering the password again select the continue option. You will then be asked if you want to encrypt your home drive. As this will be a server I selected No.

Encrypt Home Drive

You will then be asked if you need to add a proxy address to access the internet. In some businesses this is a required solution for me it was not necessary. Select Continue when finished.

proxy Info

You will be asked to enable updates for the server. The choice is yours. I prefer to automatically install security updates.

Security Updates

The next screen is related to the software patterns that you would like to install.

Clean Software Patterns

I moved the red bar down and used the space par to select the openssh server. The reason for this is to allow us access t othe console of the server via an ssh terminal.

Select OpenSSH

Once you select continue the install will take place. After a while the following screen will come up that shows the install is complete and that the server will now reboot.

Select reboot

This is the last task for the install process We will move on to the configuration of the server once it has rebooted.

Part 2 can be found here

Posts in this series