On Nov 23, 2007 9:03 AM, Andrew Beekhof <[EMAIL PROTECTED]> wrote:
>
> On Nov 22, 2007, at 10:48 PM, Andreas Kurz wrote:
>
> > On Nov 22, 2007 4:56 PM, Urban Peter <[EMAIL PROTECTED]>
> > wrote:
> >> Hi,
> >>
> >> Despite many efforts (and reading through all the documentation) I
> >> could not
> >> figure out a way to pass over a resource from one node to another
> >> node for
> >> the following situation: I have two nodes on two separate networks.
> >> Both
> >> nodes have one (or more) ping nodes, but those are different for
> >> each node.
> >> e.g.: Node A has ping node 1, node B has ping node 2.
> >> Is it possible to do it by the usual pingd clone ? Can I let pingd
> >> check one
> >> ping_group from ha.cf on one node and an oder one on the other node?
> >
> > Hello,
> >
> > If you specify your two pingnodes in the 'ha.cf' file (ping directive)
> > you can configure your pingd clone resource with the help of rules and
> > the host_list parameter of pingd to ping pingnode1 from node1 and
> > pingnode2 from node2. I think this snippet should to the trick:
>
> IIRC the host_list parameter is optional... it was only intended to be
> used if one didnt want all the configured ping nodes to be considered.
> so, assuming node A only has "ping node1" in ha.cf and node B only has
> "ping node2", then it should be possible to just do:

I see, that reduces the complexity of the cib .... with the small
disadvantage of different ha.cf files on each nodes.

>
> <clone id="pingd">
>   <primitive id="pingd-child" provider="heartbeat" class="ocf"
> type="pingd">
>     <operations>
>       <op id="pingd-child-monitor" name="monitor" interval="20s"
> timeout="40s" prereq="nothing"/>
>       <op id="pingd-child-start" name="start" prereq="nothing"/>
>     </operations>
>     <instance_attributes id="pingd_inst_attr">
>
>       <attributes>
>          <nvpair id="pingd-dampen" name="dampen" value="5s"/>
>          <nvpair id="pingd-multiplier" name="multiplier" value="100"/>
>       </attributes>
>     </instance_attributes>
>   </primitive>
> </clone>
>
>
> > Regards,
> > Andreas
> >
> >>
> >> Thanks!
> >>
> >> Peter Urban
> >>
> >> _______________________________________________
> >> 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
>
> _______________________________________________
> 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