[Linux-HA] pingd crm
Andrew Beekhof
beekhof at gmail.com
Fri Apr 4 07:50:54 MDT 2008
Just add:
<nvpair id="pingd-1" name="name" value="pingd"/>
and everything should work
On Fri, Apr 4, 2008 at 11:32 AM, Guy <wyldfury at gmail.com> wrote:
> Hi,
>
> I'm currently starting pingd in the ha.cf file but I'd like to use the
> crm to start it. I've tried using the example from
> http://www.linux-ha.org/v2/faq/pingd and the pingd resource looks like
> it has started. Shouldn't I just need to change the attribute name in
> the constraint to pingd-clone for this to work or is there something
> else I need to do?
>
> Thanks
> Guy
>
> This is the clone for pingd:
> <clone id="pingd-clone">
> <meta_attributes id="pingd-clone-ma">
> <attributes>
> <nvpair id="pingd-clone-1" name="globally_unique" value="false"/>
> </attributes>
> </meta_attributes>
> <primitive id="pingd-child" provider="heartbeat" class="ocf"
> type="pingd">
> <operations>
> <op id="pingd-child-monitor" name="monitor"
> interval="20s" timeout="60s" prereq="nothing"/>
> <op id="pingd-child-start" name="start" prereq="nothing"/>
> </operations>
> <instance_attributes id="pingd_inst_attr">
> <attributes>
> <nvpair id="pingd-1" name="dampen" value="5s"/>
> <nvpair id="pingd-2" name="multiplier" value="100"/>
> </attributes>
> </instance_attributes>
> </primitive>
> </clone>
>
> Below are my constraints:
> <rsc_location id="ms-drbd0:connected" rsc="ms-drbd0">
> <rule role="master" id="ms-drbd0:connected:rule"
> score="-INFINITY" boolean_op="or">
> <expression id="ms-drbd0:connected:expr:undefined"
> attribute="pingd" operation="not_defined"/>
> <expression id="ms-drbd0:connected:expr:zero"
> attribute="pingd" operation="lte" value="0"/>
> </rule>
> </rsc_location>
> <rsc_location id="ms-drbd1:connected" rsc="ms-drbd1">
> <rule role="master" id="ms-drbd1:connected:rule"
> score="-INFINITY" boolean_op="or">
> <expression id="ms-drbd1:connected:expr:undefined"
> attribute="pingd" operation="not_defined"/>
> <expression id="ms-drbd1:connected:expr:zero"
> attribute="pingd" operation="lte" value="0"/>
> </rule>
> </rsc_location>
>
>
> --
> Don't just do something...sit there!
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
More information about the Linux-HA
mailing list