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 192.168.10.1 - working fine, I can ping the world.
NodeB has an ip address 192.168.10.2 - working fine, I can ping the world.
NodeA is the primary node.
What I want is for testcluster to have a single IP address 192.168.10.3
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 192.168.10.3. 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:
<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="192.168.10.3/255.255.255.0" sleeptime="10"/>