<html><body><div style="color:; background-color:; font-family:times new roman, new york, times, serif;font-size:12pt">Hello,<br><br>I've followed various docs referring to setting up a ping primitive to monitor connectivity to, for example, a gateway. If that ping fails, resources that rely on that ping (or rely on connectivity to the gateway) should failover to another node. Below is my configuration. I have a www1-vip that starts up on one of two nodes. I can move it around the nodes just fine by either shutting down a node or manually moving it via a 'crm resource migrate'. When I introduce a location rule, nothing happens when the ping to the gateway stops (i.e. I pull the plug on that interface).<br><br>Both nodes have 2 NICs: eth0 is connected to the 10.0.100.0 network and eth1 is connected to another net specifically setup as a backup cluster connection (I can pull the plug on eth0 but the 2 nodes can
still talk over eth1. The 10.0.100.254 gateway, however, is not reachable from eth1).<br><br><div>node node1<br>node node2<br>primitive ping-gateway ocf:pacemaker:ping \<br> params host_list="10.0.100.254" multiplier="100"<br>primitive www1-vip ocf:heartbeat:IPaddr2 \<br> params ip="10.0.100.163" nic="eth0" cidr_netmask="24" iflabel="eth0" \<br> op start interval="0" timeout="20" \<br> op stop interval="0" timeout="20" \<br> op monitor interval="10" timeout="20" start-delay="0" \<br> meta resource-stickiness="50"<br>clone clone_ping-gateway ping-gateway \<br> meta interleave="true"<br>location location_www1-vip www1-vip
\<br> rule $id="location_www1-vip-rule" pingd: defined pingd<br>property $id="cib-bootstrap-options" \<br> dc-version="1.1.7-6.el6-148fccfd5985c5590cc601123c6c16e966b85d14" \<br> cluster-infrastructure="openais" \<br> expected-quorum-votes="2" \<br> no-quorum-policy="ignore" \<br> stonith-enabled="false"<br>rsc_defaults $id="rsc-options" \<br> resource-stickiness="90"</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent;
font-style: normal;">If www1-vip is running on node1, if I disconnect eth0 on node1, www1-vip does not move over to node2. I have to do a manual 'crm resource migrate www1-vip node2' to move it.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">Any suggestions? Thanks.<br></div></div></body></html>