Andrew Beekhof escribió:
On 6/28/07, Adrian Chapela <[EMAIL PROTECTED]> wrote:

Dominik Klein escribió:
> Read the pre-last chapter on http://www.linux-ha.org/pingd
> This should get you started on how to use pingd to do what you
described.
I read the chapter and now I have more problems....

In the "slave" node appears this error:

heartbeat[2606]: 2007/06/28_17:55:44 WARN: duplicate client add request
[pingd] [2666]
heartbeat[2606]: 2007/06/28_17:55:44 ERROR:
api_process_registration_msg: cannot add client()

This appears when I start heartbeat... what is ?? I am looking for a
solution on the list and in google but I didn't find it.


did you add pingd to ha.cf as well?
you only need it in the cib _OR_ ha.cf, not both

This was solved. My Problem was the ping group. I didn't configure the group. When I configure the group in ha.cf the pingd can detects the network failure.

Now, My problem is to know how can I update an attribute in CIB and the the rule changes the score, as pingd update its attribute.





My cib.xml now is:

<resources>
       <group id="MySQL_GROUP">
         <primitive class="ocf" id="IPaddr_1" provider="heartbeat"
type="IPaddr">
           <operations>
             <op id="1" interval="5s" name="monitor" timeout="5s"/>
           </operations>
           <instance_attributes id="ia1">
             <attributes>
               <nvpair id="ip1" name="ip" value="10.0.200.30"/>
               <nvpair id="ip2" name="netmask" value="16"/>
               <nvpair id="ip3" name="nic" value="eth3"/>
             </attributes>
           </instance_attributes>
         </primitive>
       </group>
       <clone id="pingd">
         <instance_attributes id="pingd">
           <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">
             <attributes>
               <nvpair id="pingd-dampen" name="dampen" value="5s"/>
               <nvpair id="pingd-multiplier" name="multiplier"
value="100"/>
             </attributes>
           </instance_attributes>
         </primitive>
       </clone>
     </resources>
     <constraints>
       <rsc_location id="my:resource:connected" rsc="pingd">  ####-->
Here I must my resource group or resource id??
         <rule id="my:resource:connected:rule" score="-INFINITY"
boolean_op="or">
           <expression id="my:resource:connected:expr:undefined"
attribute="pingd" operation="not_defined"/>
           <expression id="my:resource:connected:expr:zero"
attribute="pingd" operation="lte" value="0"/>
         </rule>
       </rsc_location>
       <rsc_location id="rsc_location_group_1" rsc="MySQL_GROUP">
         <rule id="prefered_location_group_1" role="master" score="100">
           <expression id="ex1" attribute="#uname" operation="eq"
value="semsor10"/>
         </rule>
       </rsc_location>
     </constraints>

(I didn't paste all config file, I am only write the parte was changed...)

Regards
>
> Regards
> Dominik
>
>> I am using pingd to detects (IPFAIL isn't valid to HA V2 no ??) a
>> network failure. I start the heartbeat in two servers. Then I unplug
>> the wire on the "master" server. The VIP still is in the "master"
>> server and the "slave" server doesn't assume the VIP.
>>
>> I am doing something wrong ??
>
>
> _______________________________________________
> 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