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>
|