Hi all,

 

I am using heartbeat 2.0.8 (two node cluster) and single resource of
class 'heartbeat'. My script is configured for start, status and stop
calls. 

 

When I start cluster lunixha is able to invoke start call on both the
nodes. On first node start fails as script calls echo "stopped"
followed by exit 1 as this resource needs to be running on the second
node. After that it successfully starts on second node. But if I
simulate error conditions on second node it does not invoke the script
on first node resulting no failover.

 

CRM_VERIFY -VL returns 

 

crm_verify[32634]: 2007/07/18_10:40:43 WARN: unpack_rsc_op: Processing
failed op (res_ttsvc_monitor_2000) for res_ttsvc on wabtecwl1.patni.com

crm_verify[32634]: 2007/07/18_10:40:43 WARN: unpack_rsc_op: Processing
failed op (res_ttsvc_start_0) for res_ttsvc on wabtecwl1.patni.com

crm_verify[32634]: 2007/07/18_10:40:43 WARN: unpack_rsc_op: Handling
failed start for res_ttsvc on wabtecwl1.patni.com

crm_verify[32634]: 2007/07/18_10:40:43 WARN: unpack_rsc_op: Processing
failed op (res_ttsvc_start_0) for res_ttsvc on
wabtectestconfig.patni.com

crm_verify[32634]: 2007/07/18_10:40:43 WARN: unpack_rsc_op: Handling
failed start for res_ttsvc on wabtectestconfig.patni.com

Warnings found during check: config may not be valid

 

I have attached cib.xml. Am I missing anything (start,stop,status) in my
script? Please help.

 

Thanks,

Chetan

 


http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_____________________________________________________________________

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete  this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at [EMAIL PROTECTED] and delete this mail. 
_____________________________________________________________________
<?xml version="1.0" ?>
<cib>
    <configuration>
        <crm_config>
           <cluster_property_set id="cib-bootstrap-options">
             <attributes>
                 <nvpair id="symmetric_cluster" name="symmetric_cluster" 
value="true"/>
                 <nvpair id="no_quorum_policy" name="no_quorum_policy" 
value="stop"/>
                 <nvpair id="default_resource_stickiness" 
name="default_resource_stickiness" value="-200"/>
                 <nvpair id="default_resource_failure_stickiness" 
name="default_resource_failure_stickiness" value="-101"/>
                 <nvpair id="stonith_enabled" name="stonith_enabled" 
value="false"/>
                 <nvpair id="stop_orphan_resources" 
name="stop_orphan_resources" value="true"/>
                 <nvpair id="stop_orphan_actions" name="stop_orphan_actions" 
value="true"/>
                 <nvpair id="remove_after_stop" name="remove_after_stop" 
value="true"/>
                 <nvpair id="is_managed_default" name="is_managed_default" 
value="true"/>
                 <nvpair id="short_resource_names" name="short_resource_names" 
value="true"/>
             </attributes>
           </cluster_property_set>
        </crm_config>
        <nodes/>
        <resources>
                <primitive id="res_ttsvc" class="heartbeat" type="ttmgr.sh" 
provider="heartbeat">
                  <instance_attributes id="res_ttsvc_instance_attrs">
                    <attributes/>
                  </instance_attributes>
                  <operations>
                        <op id="tt_start_1" name="start" description="begin op" 
timeout="2s" start_delay="0" disabled="false" on_fail="restart"/>
                        <op id="tt_status_1" name="monitor" description="check 
state" interval="2s" timeout="3s" start_delay="0" disabled="false" 
on_fail="restart"/>
                        <op id="tt_stop_1" name="stop" description="stop status 
check" timeout="2s" start_delay="0" disabled="false" on_fail="restart"/>
                  </operations>
               </primitive>
        </resources>
        <constraints>
            <rsc_location id="place_testconfig" rsc="res_ttsvc">
                <rule id="prefered_testconfig" score="101000">
                    <expression id="e1" attribute="#uname" operation="eq" 
value="wabtectestconfig.patni.com"/>
                </rule>
            </rsc_location>
            <rsc_location id="place_wl1config" rsc="res_ttsvc">
                <rule id="prefered_wl1config" score="101000">
                    <expression id="e2" attribute="#uname" operation="eq" 
value="wabtecwl1.patni.com"/>
                </rule>
            </rsc_location>
        </constraints>
    </configuration>
    <status/>
</cib>
_______________________________________________
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