Hi,<br><br>I'm trying to set up location contraints for my cluster, but I don't get them to work in the way that I want.<br><br>The constraints should implement the following behaviour:<br>- Normal operation<br>msDRBD0 and resIP0 start on node1, msDRBD1 and resIP1 start on node2<br>
- Loss of network connection<br>When the network connection to the public network is lost (tested with pingd resource) the corresponding DRBD resource should failover to the other node.<br>When the connection comes back again the cluster should go into normal operation again.<br>
<br><br>The pingd resource is configured as follows:<br>primitive resPing ocf:pacemaker:pingd \<br> params host_list="node1 node2 standard-gateway" dampen="5s" interval="2" multiplier="10000" \<br>
op start timeout="90" op stop timeout="120"<br>where node1, node2 and standard-gateway stands for the corresponding IP adress.<br><br>The definition of the location contraints to bind the DRBD partition to one node:<br>
location locDRBD0Node1 msDRBD0 \<br>rule $id="locDRBD0Node1-rule" $role="Master" 1000: #uname eq node1<br>location locDRBD1Node2 msDRBD1 \<br>rule $id="locDRBD1Node2-rule" $role="Master" 1000: #uname eq node2<br>
location locIP0Node1 resIP0 \<br>rule $id="locIP0Node1-rule" 1000: #uname eq node1<br>location locIP1Node2 resIP1 \<br>rule $id="locIP1Node2-rule" 1000: #uname eq node2<br><br><br>I tried the following location constraint:<br>
location locDRBD0Ping msDRBD0 rule $role=Master -inf: not_defined pingd or pingd lte 10000<br><br>But with this constraint the cluster does not go into normal operation again.<br><br><br>Maybe someone has implemented an assimilable configuration.<br clear="all">
Thanks for any answers.<br><br>-- <br><br><br>Regards,<br><br>Simon Jansen<br><br><br>---------------------------<br>Simon Jansen<br>64291 Darmstadt<br>