Am Samstag, 5. September 2009 05:30:09 schrieb Michael Hale: > Hi I'm attempting to build a redundant load balanced router using > heartbeat and clusterip. I've read the documentation and the code ad > got as far as I could but I'm unable to get auto failover working when > I unplug the network cable from vm-ubuntu-1. I would expect that while > pinging my shared ip 172.16.209.200 I and then unplugging the network > cable I should notice a small pause while heartbeat figures out that > vm-ubuntu-2 should now respond to all requests, but instead the ping > hangs and heartbeat does nothing. Any ideas? > > Here is my ha.cf: > > logfacility daemon > node vm-ubuntu-1 > node vm-ubuntu-2 > keepalive 1 > deadtime 3 > bcast eth0 > ping 172.16.209.2 > crm yes > autojoin any > > And here is my resources.xml (loaded via cibadmin -R --obj_type > resources --xml-file resources.xml): > > <resources> > <clone id="router"> > <meta_attributes id="router_attributes"> > <attributes> > <nvpair id="router_globally_unique" name="globally_unique" > value="true"/> > <nvpair id="router_target_role" name="target_role" > value="started"/> <nvpair id="router_resource_stickiness" > name="resource-stickiness" value="1"/> > </attributes> > </meta_attributes> > > <primitive id="clusterip" class="ocf" type="IPaddr2" > provider="heartbeat"> <operations> > <op id="clusterip_monitor" name="monitor" interval="3s"/> > </operations> > <instance_attributes id="clusterip_attributes"> > <attributes> > <nvpair id="clusterip_ip" name="ip" value="172.16.209.200"/> > <nvpair id="clusterip_hash_mode" name="clusterip_hash" > value="sourceip-sourceport"/> > <nvpair id="cluster_nic" name="nic" value="eth0"/> > <nvpair id="cluster_mac" name="mac" value="01:00:5e:10:D1:C8"/> > </attributes> > </instance_attributes> > </primitive> > </clone> > </resources>
You do not have any mechanism for the cluster to recornize the failure of network. No action is taken on the loss on the ping node. For the actual version of the cluster softwarte see: http://www.clusterlabs.org For examples of using pingnodes see: http://www.clusterlabs.org/mediawiki/images/f/fb/Configuration_Explained.pdf Greetings, Michael Schwartzkopff _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
