CLUSTERS ON VIRTUAL MACHINE

Hi all, from previous two posts we talked about how to create a virtual machine using virtual box and then we checked how to do various installations and customizations on our virtual machine. From this post let’s see how to create a cluster on your virtual machine.

1

2

3

4

  • Next add IP address details to /etc/hosts file.

5

6.png

  • Before creating clusters we need to install lucci, it provide a graphical user interface for work with clusters.

7

  • After a successful installation we can start the service.

8

  • After starting the service for the first time we need to provide a password as well. This password is needed to access the GUI.

9

  • Then start the GUI by following command.

service luci start

10

  • Using the mentioned port number we can access the GUI as follows. Change the hostname to IP address.

11

  • First time it will give a warring message and ignore it.

12

Now we are ready to create a cluster. Let’s see how to work with clusters from here on.

  • Go to manage clusters on the GUI.

13

  • Then click on Add icon. This will give a new pop up window to add details for the new cluster. Here the nodes are the VMs we are going to connect to the cluster. By ticking use same password we can use the same credentials for all the nodes.

15

  • After clicking on the create cluster, it will create your cluster and show it like this.

16

  • Under nodes you can see your VMs which are added on this cluster.

17

  • Also we can check the details by directly from the terminal by giving following command.

18

  • Now check the same thing from your second VM, it will show the created cluster here as well.

19

20

Now our cluster have been created successfully. Now let’s install ftp on nodes and try to add the service to cluster.

  • Using yum we can install ftp.

24

25

  • Now again go to your cluster from any VM. Next we are going to create a fail over domain for our cluster. Click Add on failover domains.

2728

  • Give a name, check the Prioritized check box and then prioritize nodes.

29

  • It will look like this. Then click on Create.

30

  • After creating the failover domain you can check it under failover domains.

31

  • Now let’s add resources to our failover domain.

32

  • Click on Add in Failover domains.

33

  • It will open a pop up window like this and select script from the drop down. Give a name and click Submit.

34

36

  • Now go to service groups and then click add to add a new service group to our cluster.

38

  • Fill the relevant information and click on add resource.

39

41

  • Add the ftp service you created and give the full path to the script file.

40

  • Now click the create button.

43

  • You can check the created cluster service like below. Now we have add ftp service to our cluster as Active/Active.

45

Hope now you have a clear idea about creating clusters and how to add services, failover domains, and service groups to your cluster. See you soon with another interesting topic. Thank you!

 

 

Advertisements

One thought on “CLUSTERS ON VIRTUAL MACHINE

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s