Is there some configuration that I am missing then? My services start just 
fine, but then nothing seems to care if one of them dies. Unless the box can't 
be reached, nothing happens if httpd service is stopped, for instance .

Attached are my config files for review of a possible mistake.
Thanks

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Andrew Beekhof
Sent: Friday, July 24, 2009 9:37 AM
To: General Linux-HA mailing list
Subject: Re: [Linux-HA] all or none failover

On Fri, Jul 24, 2009 at 4:35 PM, Cantwell, Bryan<[email protected]> wrote:
> I see no messages at all when I kill httpd.

Then the resource agent is broken.  It should be reporting that httpd is no 
longer running.

> Failover happens only on a catastrophe. I want to have heartbeat start 
> several services and is any of them show dead I want total failover to the 
> other box...
>
>
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Andrew 
> Beekhof
> Sent: Friday, July 24, 2009 1:33 AM
> To: General Linux-HA mailing list
> Subject: Re: [Linux-HA] all or none failover
>
> On Thu, Jul 23, 2009 at 8:03 PM, Cantwell, Bryan<[email protected]> 
> wrote:
>> I have set up a new 2 node environment that right now only runs httpd.
>>
>> I use heartbeat 2.0.8.
>
> yuk
>
>> If I stop the heartbeat on master then slave takes over, and if I power off 
>> master then slave takes over, but if I kill the httpd service on master then 
>> nothing happens.
>
> define nothing.  does the resource stay stopped? does the cluster notice that 
> the resource failed?
> _______________________________________________
> 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

Attachment: ha.cf
Description: ha.cf

Attachment: haresources
Description: haresources

 <cib admin_epoch="0" have_quorum="true" ignore_dtd="false" num_peers="2" cib_feature_revision="1.3" generated="true" ccm_transition="4" dc_uuid="84cb8944-c4a6-4b50-9059-a43bfc17b695" epoch="191" num_updates="764" cib-last-written="Fri Jul 24 13:21:16 2009">
   <configuration>
     <crm_config>
       <cluster_property_set id="cib-bootstrap-options">
         <attributes>
           <nvpair id="cib-bootstrap-options-symmetric-cluster" name="symmetric-cluster" value="true"/>
           <nvpair id="cib-bootstrap-options-no_quorum-policy" name="no_quorum-policy" value="stop"/>
           <nvpair id="cib-bootstrap-options-default-resource-stickiness" name="default-resource-stickiness" value="0"/>
           <nvpair id="cib-bootstrap-options-default-resource-failure-stickiness" name="default-resource-failure-stickiness" value="0"/>
           <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="false"/>
           <nvpair id="cib-bootstrap-options-stonith-action" name="stonith-action" value="reboot"/>
           <nvpair id="cib-bootstrap-options-stop-orphan-resources" name="stop-orphan-resources" value="true"/>
           <nvpair id="cib-bootstrap-options-stop-orphan-actions" name="stop-orphan-actions" value="true"/>
           <nvpair id="cib-bootstrap-options-remove-after-stop" name="remove-after-stop" value="false"/>
           <nvpair id="cib-bootstrap-options-short-resource-names" name="short-resource-names" value="true"/>
           <nvpair id="cib-bootstrap-options-transition-idle-timeout" name="transition-idle-timeout" value="5min"/>
           <nvpair id="cib-bootstrap-options-default-action-timeout" name="default-action-timeout" value="5s"/>
           <nvpair id="cib-bootstrap-options-is-managed-default" name="is-managed-default" value="true"/>
         </attributes>
       </cluster_property_set>
     </crm_config>
     <nodes>
       <node id="84cb8944-c4a6-4b50-9059-a43bfc17b695" uname="slave" type="normal"/>
       <node id="9576ed55-a5fe-4e5b-b1ef-f9935e3b9917" uname="master" type="normal"/>
     </nodes>
     <resources>
       <group id="group_1">
         <primitive class="ocf" id="IPaddr_192_168_56_107" provider="heartbeat" type="IPaddr">
           <operations>
             <op id="IPaddr_192_168_56_107_mon" interval="5s" name="monitor" timeout="5s"/>
           </operations>
           <instance_attributes id="IPaddr_192_168_56_107_inst_attr">
             <attributes>
               <nvpair id="IPaddr_192_168_56_107_attr_0" name="ip" value="192.168.56.107"/>
             </attributes>
           </instance_attributes>
         </primitive>
         <primitive class="lsb" id="firescope_server_2" provider="heartbeat" type="firescope_server">
           <operations>
             <op id="firescope_server_2_mon" interval="120s" name="monitor" timeout="60s"/>
           </operations>
         </primitive>
         <primitive class="lsb" id="httpd_3" provider="heartbeat" type="httpd">
           <operations>
             <op id="httpd_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="master"/>
         </rule>
       </rsc_location>
     </constraints>
   </configuration>
 </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