Hi,

On Mon, Oct 08, 2007 at 11:04:42AM -0400, Tony Nelson wrote:
> Hi all,
> 
> I thought I was making good progress setting up a 2 node cluster to run 
> DRBD, Tomcat and Apache.
> 
> I setup DRBD first, and got that working fine.  Added an IP address that 
> follows the DRBD master.  Added Pingd so the nodes would failover on 
> connectivity loss.. great!
> 
> Adding Tomcat and Apache should be a breeze right.  I add them both and 
> the fire up just fine on the first server.  As soon as I try to get it 
> to failover, I get the dreaded "tomcat cannot run anywhere".
> 
> There is of course a lot more in my logs, but..
> 
> Oct  5 14:15:55 thebrain pengine: [9928]: WARN: native_color: Resource 
> tomcat cannot run anywhere
> Oct  5 14:15:55 thebrain pengine: [9928]: WARN: native_color: Resource 
> apache cannot run anywhere
> 
> I know for a fact that neither tomcat nor apache is running on either 
> node at this point.  Restarting heartbeat or rebooting the boxes doesn't 
> help either now.
> 
> I also know that I must have a configuration issue somewhere, and for 
> the life of me I just can't spot it.

The problem is most probably somewhere with the resource agents
apache2 and tomcat5. The logs should say.

BTW, you should be better off with the OCF apache agent. There's
also as of recently an OCF tomcat agent, so you may try that one
as well. Both are part of the Heartbeat package package.

Thanks,

Dejan

> If I can provide any more information, or anyone can educate me as to 
> the errors of my ways, I would really appreciate it.
> 
> OS: OpenSuse 10.2
> Heartbeat: 2.1.2
> 
> Thanks
> Tony Nelson
> Starpoint Solutions
> 
> Here is my cib.xml
> 
> -------- [ snip ] --------
> 
>  <cib generated="true" admin_epoch="0" have_quorum="true" num_peers="2" 
> cib_feature_revision="1.3" ignore_dtd="false" ccm_transition="6" 
> dc_uuid="df864bca-c42a-4f5b-9a12-14826b3d6d30" epoch="661" 
> num_updates="1" cib-last-written="Fri Oct  5 14:15:55 2007">
>    <configuration>
>      <crm_config>
>        <cluster_property_set id="cib-bootstrap-options">
>          <attributes>
>            <nvpair id="cib-bootstrap-options-last-lrm-refresh" 
> name="last-lrm-refresh" value="1191511426"/>
>            <nvpair 
> id="cib-bootstrap-options-default_resource_failure_stickiness" 
> name="default_resource_failure_stickiness" value="0"/>
>            <nvpair id="cib-bootstrap-options-no_quorum_policy" 
> name="no_quorum_policy" value="ignore"/>
>          </attributes>
>        </cluster_property_set>
>      </crm_config>
>      <nodes>
>        <node id="df864bca-c42a-4f5b-9a12-14826b3d6d30" uname="thebrain" 
> type="normal"/>
>        <node id="6deaf16f-a98f-4c56-af00-a97be99f2e68" uname="pinky" 
> type="normal"/>
>      </nodes>
>      <resources>
>        <master_slave id="drbd_ms">
>          <instance_attributes id="drbd_ms_instance_attrs">
>            <attributes>
>              <nvpair id="drbd_ms_clone_max" name="clone_max" value="2"/>
>              <nvpair id="drbd_ms_clone_node_max" name="clone_node_max" 
> value="1"/>
>              <nvpair id="drbd_ms_master_max" name="master_max" value="1"/>
>              <nvpair id="drbd_ms_master_node_max" 
> name="master_node_max" value="1"/>
>              <nvpair id="1d42a22f-4e66-4196-b19e-60d4f629b167" 
> name="notify" value="yes"/>
>              <nvpair id="17672fa9-44fb-46cd-b641-19dc503e7530" 
> name="globally_unique" value="false"/>
>              <nvpair id="drbd_ms_target_role" name="target_role" 
> value="started"/>
>            </attributes>
>          </instance_attributes>
>          <primitive id="drbd_sys" class="ocf" type="drbd" 
> provider="heartbeat">
>            <instance_attributes id="drbd_sys_instance_attrs">
>              <attributes>
>                <nvpair id="drbd_sys_target_role" name="target_role" 
> value="started"/>
>                <nvpair id="086a5e39-d257-4a33-9228-7ba47bcb7b44" 
> name="drbd_resource" value="mirror"/>
>                <nvpair id="4e352efe-63d1-4ea0-8f8a-26654f5cfb65" 
> name="clone_max" value="2"/>
>                <nvpair id="d785dfba-4285-4e41-8942-9bbdacf94db3" 
> name="clone_node_max" value="1"/>
>                <nvpair id="29ed11bc-4387-436c-9868-aafbcfd704fc" 
> name="master_max" value="1"/>
>                <nvpair id="c89c7af3-60c9-418c-95e0-06a90b6ff46d" 
> name="master_node_max" value="1"/>
>              </attributes>
>            </instance_attributes>
>            <operations/>
>          </primitive>
>        </master_slave>
>        <primitive id="ha_fs" class="ocf" type="Filesystem" 
> provider="heartbeat">
>          <instance_attributes id="ha_fs_instance_attrs">
>            <attributes>
>              <nvpair id="ha_fs_target_role" name="target_role" 
> value="started"/>
>              <nvpair id="a09d5acc-ab47-49ed-9c3c-5a41b1da7353" 
> name="fstype" value="ext3"/>
>              <nvpair id="7a207faa-c8d1-4d2f-88fa-f23d8513c7b8" 
> name="device" value="/dev/drbd0"/>
>              <nvpair id="d0dfa1e0-4bb8-4353-9c18-6d372bd2b96c" 
> name="directory" value="/ha"/>
>            </attributes>
>          </instance_attributes>
>          <operations>
>            <op id="bbfc8577-80d7-4d5c-be78-1c2fd7ad0c47" name="start" 
> interval="0s" timeout="60s"/>
>            <op id="0a899061-91f2-4f5f-905c-a08fb29e5253" name="stop" 
> interval="0s" timeout="60s"/>
>            <op id="be43236a-ec29-4fa9-a8a1-f32ee150a900" name="monitor" 
> interval="120s" timeout="15s"/>
>          </operations>
>        </primitive>
>        <primitive class="ocf" type="IPaddr2" provider="heartbeat" 
> id="ipaddr">
>          <instance_attributes id="ipaddr_instance_attrs">
>            <attributes>
>              <nvpair id="ipaddr_target_role" name="target_role" 
> value="started"/>
>              <nvpair id="c0bc398e-7de0-49b7-9836-cf3b0534c330" 
> name="ip" value="192.168.41.4"/>
>            </attributes>
>          </instance_attributes>
>          <operations/>
>        </primitive>
>        <clone id="pingd">
>          <instance_attributes id="pingd_instance_attrs">
>            <attributes>
>              <nvpair id="pingd_clone_node_max" name="clone_node_max" 
> value="1"/>
>              <nvpair id="pingd_target_role" name="target_role" 
> value="started"/>
>            </attributes>
>          </instance_attributes>
>          <primitive id="pingd-child" class="ocf" type="pingd" 
> provider="heartbeat">
>            <instance_attributes id="pingd-child_instance_attrs">
>              <attributes>
>                <nvpair id="pingd-child_target_role" name="target_role" 
> value="started"/>
>                <nvpair id="ad5388c5-0382-43a1-affb-7f1c6d3421f7" 
> name="dampen" value="5s"/>
>                <nvpair id="bb30ec1a-2db4-4ffe-8e64-570d3b508524" 
> name="multiplier" value="100"/>
>              </attributes>
>            </instance_attributes>
>            <operations>
>              <op id="37c67dad-a907-4eff-afbc-976c3e119d58" 
> name="monitor" interval="60s" timeout="5s"/>
>            </operations>
>          </primitive>
>        </clone>
>        <primitive id="tomcat" class="lsb" type="tomcat5" 
> provider="heartbeat">
>          <instance_attributes id="tomcat_instance_attrs">
>            <attributes>
>              <nvpair id="tomcat_target_role" name="target_role" 
> value="started"/>
>            </attributes>
>          </instance_attributes>
>          <operations>
>            <op id="49cd3674-0868-410d-8906-6061b6ff5a50" name="start" 
> interval="0s" timeout="120s"/>
>            <op id="e3872dc5-80ac-4ca0-a8b9-c0928cc405f4" name="stop" 
> interval="0s" timeout="120s"/>
>            <op id="dd319019-75a0-4d90-b852-2194920434ec" name="monitor" 
> interval="30s" timeout="15s"/>
>          </operations>
>        </primitive>
>        <primitive id="apache" class="lsb" type="apache2" 
> provider="heartbeat">
>          <instance_attributes id="apache_instance_attrs">
>            <attributes>
>              <nvpair id="apache_target_role" name="target_role" 
> value="started"/>
>            </attributes>
>          </instance_attributes>
>          <operations>
>            <op id="e64687b4-fa35-4888-a7f5-8a46c02c9682" name="start" 
> interval="0s" timeout="60s"/>
>            <op id="9b32af7f-d9a4-49a4-93d1-bd31085cc068" name="stop" 
> interval="0s" timeout="60s"/>
>            <op id="eabcafa8-4961-4c9b-a9dc-53a702ddc53e" name="status" 
> interval="30s" timeout="15s"/>
>          </operations>
>        </primitive>
>      </resources>
>      <constraints>
>        <rsc_order id="order_drbd_ms_before_ha_fs" from="drbd_ms" 
> type="before" to="ha_fs"/>
>        <rsc_colocation id="colocation_ha_fs_on_drdb0" from="ha_fs" 
> to="drbd_ms" score="INFINITY" to_role="master"/>
>        <rsc_order id="order_ha_fs_before_ipaddr" from="ha_fs" 
> type="before" to="ipaddr"/>
>        <rsc_colocation id="colocation_ipaddr_on_ha_fs" from="ipaddr" 
> to="ha_fs" score="INFINITY"/>
>        <rsc_location id="ha_fs:connected" rsc="ha_fs">
>          <rule id="ha_fs:connected:rule" score="-INFINITY" boolean_op="or">
>            <expression id="ha_fs:connected:expr:undefined" 
> attribute="pingd" operation="not_defined"/>
>            <expression id="ha_fs:connected:expr:zero" attribute="pingd" 
> operation="lte" value="0"/>
>          </rule>
>        </rsc_location>
>        <rsc_order id="order_ipaddr_before_tomcat" from="ipaddr" 
> type="before" to="tomcat"/>
>        <rsc_order id="order_tomcat_before_apache" from="tomcat" 
> type="before" to="apache"/>
>        <rsc_colocation id="colocation_tomat_on_ipaddr" from="tomcat" 
> to="ipaddr" score="INFINITY"/>
>        <rsc_colocation id="colocation_apache_on_tomcat" from="apache" 
> to="tomcat" score="INFINITY"/>
>      </constraints>
>    </configuration>
>  </cib>
> -------- [ snip ] --------
> 
> 
> 
>       
> Tony Nelson <[EMAIL PROTECTED]>
> Dir of IT Operation
> Starpoint Solutions

> begin:vcard
> fn:Tony Nelson
> n:Nelson;Tony
> org:Starpoint Solutions
> adr;dom:2nd Floor;;115 Broadyway;New York;NY;10006
> email;internet:[EMAIL PROTECTED]
> title:Dir of IT Operation
> x-mozilla-html:FALSE
> url:http://www.starpoint.com
> version:2.1
> end:vcard
> 

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