-   Linux - General (
-   -   RHCS Cluster - single ip address (

Jman-NZ 03-05-2013 05:23 AM

RHCS Cluster - single ip address

I have a 2 node RHCS cluster called testcluster. I have configured this in the luci web interface. All good.

NodeA has an ip address - working fine, I can ping the world.
NodeB has an ip address - working fine, I can ping the world.

NodeA is the primary node.

What I want is for testcluster to have a single IP address

I will provide a bit more info about what I'm trying to do as it may help:

I have apache running on both nodes. I do all my work on NodeA, and have an rsync process that regularly updated NodeB so the two servers html files are consistent. testcluster resolves to I want to be able to browse to http://testcluster and see my site. If NodeA fails I want to still be able to browse to testcluster.

I think it has to do with setting up an ip adress resource in luci and adding httpd as a cluster service, but I can't figure it out or get it working. Can anyone explain to me in the simplest way possible, what steps I need to take?

Her's my cluster.conf file. As you can see I've added an ip resource but don't know what to do with it now:
<?xml version="1.0"?>
<cluster config_version="7" name="testCluster">
<clusternode name="NodeA" nodeid="1"/>
<clusternode name="NodeB" nodeid="2"/>
<cman expected_votes="1" two_node="1"/>
<ip address="" sleeptime="10"/>

vishesh 03-05-2013 06:13 AM


Open luci , add failover domain and resource . Also share output of clustat command


Jman-NZ 03-05-2013 03:36 PM

I've created a failover domain but still not sure what to do with it - how do I associate the ip address to it?

# clustat
Cluster Status for testCluster @ Wed Mar 6 10:37:20 2013
Member Status: Quorate

Member Name ID Status
------ ---- ---- ------
NodeA 1 Online, Local
NodeB 2 Online


vishesh 03-05-2013 10:10 PM

The servers in the fail over domain , automatically takes over services if one server become down . In your example both server will be in one fail over domain.

A cluster service comprise of resources . IP Address is one of the resource type . So here what you have to do is to create cluster service that comprise a resource of IP address type.


Jman-NZ 03-07-2013 06:15 PM

I'm still not sure about how to associate an ip address with the cluster or cluster service.
As I said in my OP NodeA has a phyiscal ip address and NodeB has a physical ip address I've also configured in DNS a third ip address of which resolves to tesCluster, the name of my cluster.

Question 1 is when I create the ip address resource, should I be creating it for, for, for or should I create separate ip address resources for all or some of them?

Question 2 is when I add the ip address resource to the service, do I add just one or more than one ip address to it? I guess the answer to Question 1 will answer Question 2.

Thanks for taking the time to help me.

vishesh 03-08-2013 08:32 AM

Create IP address resource for your VIP


Jman-NZ 03-10-2013 05:06 PM

ok so I create eth0:0 with IP address of on NodeA
What do I do on NodeB? Create another VIP with a different ip address? Then do I need to have two ip address resources allocated to the Cluster service?

vishesh 03-12-2013 07:07 AM

VIP is will always be one and same IP Address will exist on both server

Jman-NZ 03-12-2013 05:18 PM

Do I need to create an actual VIP device as part of the operating system? Or do I only create the VIP as a resource within the cluster config?

So in other words, do I need an /etc/sysconfig/network-scripts/ifcfg-eth0:0 file or not?


vishesh 03-13-2013 07:39 AM

Just create VIP in cluster config.


All times are GMT -5. The time now is 04:01 AM.