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:
<clone id="pingd">
<instance_attributes id="pingd" globally_unique="false">
<attributes>
<nvpair id="pingd-clone_node_max" name="clone_node_max" value="1"/>
</attributes>
</instance_attributes>
<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_node1">
<rule id="rule_node1_pings_pingnode1">
<expression attribute="#uname" value="node1" operation="eq"
id="ex_uname_node1"/>
</rule>
<attributes>
<nvpair id="host_list_pingnode1" name="host_list" value="pingnode1"/>
</attributes>
</instance_attributes>
<instance_attributes id="pingd_inst_attr_node2">
<rule id="rule_node2_pings_pingnode2">
<expression attribute="#uname" value="node2" operation="eq"
id="ex_uname_node2"/>
</rule>
<attributes>
<nvpair id="host_list_pingnode2" name="host_list" value="pingnode2"/>
</attributes>
</instance_attributes>
<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