Hi Allan,

>From an earlier post I did a few days ago - response from Andrew

> How do I configure a location rule on a non-symmetric cluster so that
> pingd:0,1 will run?

<rsc_location id="foo" rsc="pingd" node="dtbaims" score="1"/>
<rsc_location id="foo" rsc="pingd" node="itbaims" score="1"/>

The constraints below all apply to the resources that depend on the
pingd attribute.
But that won't be set if you don't allow pingd to run anywhere too ;-)

Now the bad news, pingd/attrd is busted in 1.0.0 :-(
You'll either have to wait for 1.0.1 next week or grab the latest from:
   http://hg.clusterlabs.org/pacemaker/stable-1.0



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Allan Bailey
Sent: Tuesday, 4 November 2008 8:57 AM
To: [email protected]
Subject: [Linux-HA] how to use pingd for stopping services on a node
when/ifit loses network connectivity?


I'm running on Ubuntu 8.10, heartbeat 2.1.3, using drbd to replicate the
mysql partition.
My group of services is drbd, filesystem, mysql, then a shared IP address.

In /etc/ha.d/ha.cf   I have the IP address of the router/switch for testing
for network connectivity.

>From the documention on the website I am using the following constraint:

       <rsc_location id="group_1:connected" rsc="group_1">
         <rule id="group_1:connected:rule" score="-INFINITY"
boolean_op="or">
           <expression id="group_1:connected:expr:undefined"
attribute="pingd" operation="not_defined"/>
           <expression id="group_1:connected:expr:zero" attribute="pingd"
operation="lte" value="0"/>
         </rule>
       </rsc_location>

On the 2ndary server, this seems to work correctly and not bring up the
service group when network is lost.
On the primary server, it does not shutdown the services.

My question:  Does anyone have an example of where pingd works for the
above?   Or a pointer to documentation/examples
of how to use constraints correctly?

Is the best documentation of constraints, etc., just to read the DTD?

thanks,

--
Allan
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to