[Pacemaker] Pacemaker not switching resources properly.

James Horsfall (CTR) jameshorsfall at stratosgsi.com
Sun Oct 9 02:07:27 EDT 2011


I apologize if this is a double post I sent a message previous before my
subscription was approved.

Greetings all I currently have a 2 node HA cluster set up with heartbeat
and pacemaker. When I set the  "UP-Rule" to -inf it will turn off the
virtual ip addresses and not start them on the other server. I'm trying
to set this server up so when the connectivity on Hub0 is lost the
resources switch and stay on Hub1. Also I'm getting a lot of remnant
errors when making many changes over a course of time is there a way I
can prevent this to make sure that there is no bleed over from
configuration to configuration (CRM specific of course)?

node $id="b240041e-dbb8-43c2-862c-50674636ea54" sgn-pau-hub0 \
        attributes standby="off"
node $id="cb80bd98-806e-45af-98c6-f76699120485" sgn-pau-hub1 \
        attributes standby="off"
primitive ETH2 ocf:heartbeat:IPaddr2 \
        params ip="10.151.9.42" cidr_netmask="255.255.255.248"
nic="eth2" \
        op monitor interval="30s" timeout="60s"
primitive ETH3 ocf:heartbeat:IPaddr2 \
        params ip="10.151.9.50" cidr_netmask="255.255.255.248"
nic="eth3" \
        op monitor interval="30s" timeout="60s"
primitive peth2 ocf:pacemaker:ping \
        params host_list="10.151.9.41 10.151.9.50" multiplier="51" \
        op monitor interval="50s" timeout="100s" \
        op start interval="0s" timeout="90s" \
        op stop interval="0s" timeout="100s"
group IPS ETH2 ETH3 \
        meta target-role="Started"
clone ping-On-both peth2 \
        meta globally-unique="false"
location UPchk IPS \
        rule $id="Up-Rule" -inf: not_defined peth2 or peth2 lte 0
property $id="cib-bootstrap-options" \
        dc-version="1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd" \
        cluster-infrastructure="Heartbeat" \
        stonith-enabled="false" \
        expected-quorum-votes="2" \
        last-lrm-refresh="1318111975" \
        default-resource-stickiness="100"

============
Last updated: Sat Oct  8 23:15:26 2011
Stack: Heartbeat
Current DC: sgn-pau-hub1 (cb80bd98-806e-45af-98c6-f76699120485) -
partition with
 quorum
Version: 1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd
2 Nodes configured, 2 expected votes
2 Resources configured.
============

Online: [ sgn-pau-hub0 sgn-pau-hub1 ]

 Clone Set: ping-On-both
     Started: [ sgn-pau-hub0 sgn-pau-hub1 ]

With -inf set in rule

Below is with the rule set to 51, I've tried setting this as high as
10,000
============
Last updated: Sat Oct  8 23:17:59 2011
Stack: Heartbeat
Current DC: sgn-pau-hub0 (b240041e-dbb8-43c2-862c-50674636ea54) -
partition with
 quorum
Version: 1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd
2 Nodes configured, 2 expected votes
2 Resources configured.
============

Online: [ sgn-pau-hub0 sgn-pau-hub1 ]

 Resource Group: IPS
     ETH2       (ocf::heartbeat:IPaddr2):       Started sgn-pau-hub0
     ETH3       (ocf::heartbeat:IPaddr2):       Started sgn-pau-hub0
 Clone Set: ping-On-both
     Started: [ sgn-pau-hub0 sgn-pau-hub1 ]

Any help is greatly apreciated


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/pacemaker/attachments/20111009/adb46de6/attachment-0002.html>


More information about the Pacemaker mailing list