Hi,
I've configured two machine with Linux-ha in Active/passive mode. With v1
conf all is ok, instead with v2 conf there are the following behaviours:

PC_A up with resource and PC_B up without resource
                     |
                    V
shutdown heartbeat
                     |
                    V
PC_A down without resource and PC_B up with resource

instead:

PC_A up with resource and PC_B up without resource
                     |
                    V
disconnect ethernet to PC_A (for pingd)
                     |
                    V
PC_A UP with resource (but not net) and PC_B up without resource

I don't understand why the resource remains in PC_A with eth disconnection
in v2 conf (I've tried with both root user and hacluster user for pingd RA)
.

*ha.cf:

use_logd yes
compression zlib
coredumps no
keepalive 1
warntime 2
deadtime 5
deadping 5
udpport 694
bcast eth2
node test-ppc test3
ping 192.168.122.113
#respawn hacluster /rnd/apps/components/heartbeat/lib/heartbeat/ipfail
#respawn root /rnd/apps/components/heartbeat/lib/heartbeat/pingd -m 100 -d
5s
#auto_failback off
crm yes


*cib.xml:

<cib admin_epoch="0" epoch="0" num_updates="0" generated="false"
have_quorum="false" ignore_dtd="false" num_peers="0" cib-last-written="Wed
Dec  5 17:55:00 2007">
   <configuration>
     <crm_config/>
     <nodes>
       <node id="92eb4ad2-6d22-4c98-a909-c7d20009f295" uname="test3"
type="normal"/>
       <node id="d922f754-3142-4e1f-a706-fd30bbe9b57a" uname="test-ppc"
type="normal"/>
     </nodes>
     <resources>
       <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 class="ocf" id="pingd_child" provider="heartbeat"
type="pingd">
           <operations>
             <op id="pingd_child_mon" interval="20s" name="monitor"
timeout="60s"/>
           </operations>
           <instance_attributes id="pingd_inst_attr">
             <attributes>
               <nvpair id="pingd_1" name="dampen" value="5s"/>
               <nvpair id="pingd_2" name="multiplier" value="100"/>
               <nvpair id="pingd_3" name="user" value="hacluster"/>
             </attributes>
           </instance_attributes>
         </primitive>
       </clone>
       <group id="group_1">
         <primitive class="ocf" id="IPaddr_192_168_122_203"
provider="heartbeat" type="IPaddr">
           <operations>
             <op id="IPaddr_192_168_122_203_mon" interval="20s"
name="monitor" timeout="60s"/>
           </operations>
           <instance_attributes id="IPaddr_192_168_122_203_inst_attr">
             <attributes>
               <nvpair id="IPaddr_192_168_122_203_attr_0" name="ip" value="
192.168.122.203"/>
               <nvpair id="IPaddr_192_168_122_203_attr_1" name="netmask"
value="24"/>
             </attributes>
           </instance_attributes>
         </primitive>
         <primitive class="lsb" id="httpd_2" provider="heartbeat"
type="httpd">
           <operations>
             <op id="httpd_2_mon" interval="120s" name="monitor"
timeout="60s"/>
           </operations>
         </primitive>
         <primitive class="lsb" id="squid_3" provider="heartbeat"
type="squid">
           <operations>
             <op id="squid_3_mon" interval="120s" name="monitor"
timeout="60s"/>
           </operations>
         </primitive>
       </group>
     </resources>
     <constraints>
       <rsc_location id="rsc_location_group_1" rsc="group_1">
         <rule id="prefered_location_group_1" score="100">
           <expression attribute="#uname"
id="prefered_location_group_1_expr" operation="eq" value="test-ppc"/>
         </rule>
         <rule id="best_location_group_1" score_attribute="pingd">
           <expression attribute="pingd" id="best_location_group_1_expr"
operation="defined"/>
         </rule>
       </rsc_location>
     </constraints>
   </configuration>
 </cib>

Thanks in advance!

-- 

Davide Belloni
_______________________________________________
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