I have three machines named anlutest1, anlutest2, and anlutest3 that I'm trying to get IP failover working on. I'm using heartbeat for the messaging layer, and everything works great when a machine goes down. But I also would like to failover an IP when EITHER the eth0 or eth1 network interfaces fail. From reading<div>
<br></div><div><a href="http://www.clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/ch09s03s03.html">http://www.clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/ch09s03s03.html</a></div><div>
<br></div><div>it seems the right way to do this is to add a ping resource.</div><div><br></div><div>Here is my XML configuration:</div><div><br></div><div><a href="http://pastebin.com/05z7eB2s">http://pastebin.com/05z7eB2s</a></div>
<div><br></div><div>This config doesn't work for me. Using the showscores.sh script found at:</div><div><br></div><div><a href="http://www.mail-archive.com/pacemaker@oss.clusterlabs.org/msg00410.html">http://www.mail-archive.com/pacemaker@oss.clusterlabs.org/msg00410.html</a></div>
<div><br></div><div>I see that my scores are:</div><div><br></div><div><div><font face="'courier new', monospace">Resource Score Node Stickiness #Fail Migration-Threshold</font></div>
<div><font face="'courier new', monospace">address01 0 anlutest3 0 0 </font></div><div><font face="'courier new', monospace">address01 1006 anlutest1 0 5 </font></div>
<div><font face="'courier new', monospace">address01 50 anlutest2 0 157 </font></div><div><font face="'courier new', monospace">address02 0 anlutest3 0 0 </font></div>
<div><font face="'courier new', monospace">address02 1050 anlutest2 0 2 </font></div><div><font face="'courier new', monospace">address02 6 anlutest1 0 0 </font></div>
<div><font face="'courier new', monospace">address03 1000 anlutest3 0 7 </font></div><div><font face="'courier new', monospace">address03 50 anlutest2 0 </font></div>
<div><font face="'courier new', monospace">address03 6 anlutest1 0 0 </font></div><div><font face="'courier new', monospace">ping:0 0 anlutest1 0 6 </font></div>
<div><font face="'courier new', monospace">ping:0 0 anlutest2 0 14 </font></div><div><font face="'courier new', monospace">ping:0 0 anlutest3 0 0 </font></div>
<div><font face="'courier new', monospace">ping:1 0 anlutest2 0 </font></div><div><font face="'courier new', monospace">ping:1 0 anlutest3 0 28 </font></div>
<div><font face="'courier new', monospace">ping:1 -1000000 anlutest1 0 0 </font></div><div><font face="'courier new', monospace">ping:2 0 anlutest3 0 13 </font></div>
<div><font face="'courier new', monospace">ping:2 -1000000 anlutest1 0 0 </font></div><div><font face="'courier new', monospace">ping:2 -1000000 anlutest2 0</font></div>
<div><br></div><div>which make no sense at all. I don't see how I could be getting these scores of 50 and 1006. When I take down an interface on anlutest3, I see scores of 4 and 1004, which sort of make sense, just the multiplier of 100 isn't working. I was experimenting with changing values, so maybe its caching old values. If so, how do I enforce the new values?</div>
</div><div><br></div><div>Furthermore, shouldn't there be no scores of 0? If all 6 IPs I am pinging return successfully, shouldn't my scores be either 600 or 1600?</div><div><br></div><div>In my syslog I also see a ton of messages like</div>
<div><br></div><div><div><font face="'courier new', monospace">Feb 17 03:54:47 anlutest2 lrmd: [1137]: info: perform_op:2877: operations on resource address01 already delayed</font></div><div><font face="'courier new', monospace">Feb 17 03:54:48 anlutest2 lrmd: [1137]: info: perform_op:2873: operation monitor[419] on ocf::ping::ping:1 for client 1140, its parameters: CRM_meta_clone=[1] host_list=[10.54.130.6 10.54.130.8 10.54.130.7 50.97.196.101 50.97.196.103 50.9CRM_meta_clone_max=[3] dampen=[60s] crm_feature_set=[3.0.1] CRM_meta_globally_unique=[false] multiplier=[10000] CRM_meta_name=[monitor] CRM_meta_timeout=[60000] CRM_meta_interval=[5000] for rsc is already running.</font></div>
<div><font face="'courier new', monospace">Feb 17 03:54:48 anlutest2 lrmd: [1137]: info: perform_op:2883: postponing all ops on resource ping:1 by 1000 ms</font></div><div><font face="'courier new', monospace">Feb 17 03:54:48 anlutest2 lrmd: [1137]: info: perform_op:2873: operation monitor[171] on ocf::ping::ping:2 for client 1140, its parameters: CRM_meta_clone=[2] host_list=[10.54.130.6 10.54.130.8 10.54.130.7 50.97.196.101 50.97.196.103 50.9CRM_meta_clone_max=[3] dampen=[60s] crm_feature_set=[3.0.1] CRM_meta_globally_unique=[false] multiplier=[1] CRM_meta_name=[monitor] CRM_meta_timeout=[30000] CRM_meta_interval=[5000] for rsc is already running.</font></div>
<div><font face="'courier new', monospace">Feb 17 03:54:48 anlutest2 lrmd: [1137]: info: perform_op:2883: postponing all ops on resource ping:2 by 1000 ms</font></div></div><div><br></div><div>and occasionally</div>
<div><br></div><div><div><font face="'courier new', monospace">Feb 17 03:54:33 anlutest2 attrd: [1139]: info: attrd_trigger_update: Sending flush op to all hosts for: pingd (4000)</font></div><div><font face="'courier new', monospace">Feb 17 03:54:33 anlutest2 attrd: [1139]: info: attrd_ha_callback: flush message from anlutest2</font></div>
<div><font face="'courier new', monospace">Feb 17 03:54:33 anlutest2 attrd: [1139]: WARN: find_nvpair_attr: Multiple attributes match name=pingd</font></div><div><font face="'courier new', monospace">Feb 17 03:54:33 anlutest2 attrd: [1139]: info: find_nvpair_attr: Value: 50 #011(id=status-d619a94e-ebba-4ed0-8e0f-89837dd7506b-pingd)</font></div>
<div><font face="'courier new', monospace">Feb 17 03:54:33 anlutest2 attrd: [1139]: info: find_nvpair_attr: Value: 3 #011(id=status-ab3c1a25-9471-48f7-9c0b-c76238abd402-pingd)</font></div><div><font face="'courier new', monospace">Feb 17 03:54:33 anlutest2 attrd: [1139]: info: attrd_perform_update: Sent update -40: pingd=4000</font></div>
<div><font face="'courier new', monospace">Feb 17 03:54:33 anlutest2 attrd: [1139]: ERROR: attrd_cib_callback: Update -40 for pingd=4000 failed: Required data for this CIB API call not found</font></div></div><div>
<font face="'courier new', monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">Could someone just take a look at my config and let me know what I'm doing wrong? Or if there's a better way to do what I want to do...</font></div>
<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Thanks in advance,</font></div><div><font face="arial, helvetica, sans-serif">Anlu</font></div>