Date: Wed, 21 Nov 2007 14:21:30 +0530
From: <[EMAIL PROTECTED]>
Subject: RE: [Linux-HA] Re: Linux-HA Digest, Vol 48, Issue 69
To: <[email protected]>
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain;       charset="iso-8859-1"


Frank,
Congratulations on getting your stonith config to work. Unfortunately,I've not 
been so lucky or I don't understand stonith very well. I've done the exact same 
configuration as you've but for some reason , the stonith RA doesn't start at 
all. I'm using version 2.0.8 and the ssh stonith agent to test my 
configuration. I too have two nodes : active and standby, where I want active 
to stonith standby and vice versa.

I've attached a snapshot of my stonith configuration for you to look at . I 
would really appreciate if you could point out any mistakes I might have made...
        

        <crm_config>
       <cluster_property_set id="cib-bootstrap-options">
         <attributes>
           <nvpair id="cib-bootstrap-options-default-resource-stickiness" 
name="default-resource-stickiness" value="INFINITY"/>
           <nvpair id="cib-bootstrap-options-stonith" name="stonith-enabled" 
value="TRUE"/>
           <nvpair id="cib-bootstrap-options-quorum" name="no-quorum-policy" 
value="IGNORE"/>
         </attributes>
       </cluster_property_set>
     </crm_config>
     <nodes>
       <node id="6f6d5305-43e3-46f9-a8d7-7966218bab0b" uname="standby" 
type="normal"/>
       <node id="bf83d809-e951-4c04-b605-28b5ead6ccfe" uname="active" 
type="normal"/>
     </nodes>
     <resources>
        ...
        ...
        <clone id="stonith_active">
         <instance_attributes id="stonith_active_attr">
           <attributes>
             <nvpair id="stonith_active_clone_max" name="clone_max" value="1"/>
             <nvpair id="stonith_active_clone_node_max" name="clone_node_max" 
value="1"/>
           </attributes>
         </instance_attributes>
         <primitive id="Stonith_active" class="stonith" type="external/rsh" 
provider="heartbeat">
           <operations>
             <op id="4" name="start" timeout="10s" prereq="nothing"/>
             <op id="5" name="monitor" timeout="5s" interval="15s"/>
           </operations>
           <instance_attributes id="rsh_active_instance_attr">
             <attributes>
               <nvpair id="rsh_attr_active" name="hostlist" value="active"/>
             </attributes>
           </instance_attributes>
         </primitive>
       </clone>
       <clone id="stonith_standby">
         <instance_attributes id="stonith_standby_attr">
           <attributes>
             <nvpair id="stonith_standby_clone_max" name="clone_max" value="1"/>
             <nvpair id="stonith_standby_clone_node_max" name="clone_node_max" 
value="1"/>
           </attributes>
         </instance_attributes>
         <primitive id="Stonith_standby" class="stonith" type="external/rsh" 
provider="heartbeat">
           <operations>
             <op id="6" name="start" timeout="10s" prereq="nothing"/>
             <op id="7" name="monitor" timeout="5s" interval="15s"/>
           </operations>
           <instance_attributes id="rsh_standby_instance_attr">
             <attributes>
               <nvpair id="rsh_attr_standby" name="hostlist" value="standby"/>
             </attributes>
           </instance_attributes>
         </primitive>
       </clone>
        </resources>
        <constraints>
         <rsc_location id="proxy_stonith_active_rsc_location" 
rsc="stonith_active">
         <rule id="prefered_location_proxy_stonith_active_rsc" score="INFINITY">
           <expression id="prefered_location_proxy_stonith_active_rsc_expr" attribute="#uname" 
operation="eq" value="standby"/>
         </rule>
       </rsc_location>
       <rsc_location id="proxy_stonith_standby_rsc_location" 
rsc="stonith_standby">
         <rule id="prefered_location_proxy_stonith_standby_rsc" 
score="INFINITY">
           <expression id="prefered_location_proxy_stonith_standby_rsc_expr" attribute="#uname" 
operation="eq" value="active"/>
         </rule>
       </rsc_location>
     </constraints>

Regards,
Abhi.
Hi Abhi,
- first I suppose that you have set pulblic keys so that each host can make ssh to the other without password - define only one ssh stonith clone resource with hostlist set to both nodes, with "clone_max" to 2 and "clone_node_max" to 1 - define 2 place constraints with the clone resource, one with "uname eq node1" on the other with "uname eq 2"
- start stonith resources

I strongly recommend you to read the excellent tutorial "http://linux-ha.org/_cache/HeartbeatTutorials__LCA2007-tutorial.ppt"; to
clarify concepts.

Frank

--
Aquest missatge ha estat analitzat per MailScanner
a la cerca de virus i d'altres continguts perillosos,
i es considera que està net.
For all your IT requirements visit: http://www.transtec.co.uk

_______________________________________________
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