LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   2 node clustering in Redhat (https://www.linuxquestions.org/questions/linux-server-73/2-node-clustering-in-redhat-4175440244/)

sankarg304 12-06-2012 04:42 AM

2 node clustering in Redhat
 
I made 2 node redhat cluster using luci,ricci,rgmanager and cman, If i shutdown or restart or disable the eth0 means the cluster services automatically transferred to node 2, But If I stop the network(service network stop) or directly power off the node 1 means the cluster service is not transferred to node 2.
Here Each node have 2 IP, one for local network and one for heartbeat ip, (And I using one common virtual ip).
Here I am using 2 virtual redhat5 server and shared iscsi storage.
And give me any idea, if I am directly turn off (UPS down) node1 means the cluster service automatically should go to node2. and my cluster.conf file is

<?xml version="1.0"?>
<cluster alias="new-cluster" config_version="41" name="new-cluster">
<fence_daemon clean_start="0" post_fail_delay="0" post_join_delay="3"/>
<clusternodes>
<clusternode name="rheltest1.arowana.com" nodeid="1" votes="1">
<fence/>
</clusternode>
<clusternode name="rheltest2.arowana.com" nodeid="2" votes="1">
<fence/>
</clusternode>
</clusternodes>
<cman expected_votes="1" two_node="1"/>
<fencedevices/>
<rm>
<failoverdomains>
<failoverdomain name="star" nofailback="0" ordered="1" restricted="0">
<failoverdomainnode name="rheltest1.arowana.com" priority="1"/>
<failoverdomainnode name="rheltest2.arowana.com" priority="2"/>
</failoverdomain>
</failoverdomains>
<resources>
<ip address="192.168.0.245" monitor_link="1"/>
</resources>
<service autostart="1" exclusive="1" name="cluster" recovery="relocate">
<ip ref="192.168.0.245">
<ip ref="192.168.0.245"/>
</ip>
</service>
</rm>
</cluster>

sandeep_hello 12-19-2012 10:35 AM

Please use standard tool to configure cluster in linux. Like in Redhat, luci and ricci.

Your configuration seems to be incomplete but to configure failover domain in below cluster configuration.

Modify service section

<service autostart="1" domain="star" exclusive="1" name="cluster" recovery="relocate" name="ipservice">
<ip ref="192.168.0.245"/>
</service>

sheelnidhipandey 01-05-2013 01:07 AM

Here, I am added the fencing device hp ilo3, Then I am getting the following error


Node 1

Dec 26 19:31:01 sheel1 fenced[11263]: fence "san2" failed
Dec 26 19:31:06 sheel1 fenced[11263]: fencing node "san2"
Dec 26 19:31:25 sheel1 fenced[11263]: agent "fence_ipmilan" reports: Rebooting machine @ IPMI:10.196.11.167...ipmilan: Power still on Failed



Node 2

Dec 26 18:31:35 san2 fenced[11199]: fence "sheel1" failed
Dec 26 18:31:40 san2 fenced[11199]: fencing node "sheel1"
Dec 26 18:31:59 san2 fenced[11199]: agent "fence_ipmilan" reports: Rebooting machine @ IPMI:10.196.11.141...ipmilan: Power still on Failed


All times are GMT -5. The time now is 07:40 AM.