[Linux-HA] config problem with apache/CentOS 5.3 and ha-v2

Dejan Muhamedagic dejanmm at fastmail.fm
Tue Jul 14 08:22:18 MDT 2009


Hi,

On Tue, Jul 14, 2009 at 03:58:25PM +0200, Testuser  SST wrote:
> Hi,
> 
> I?m running into a problem building a web-cluster. The HA-IP is
> working fine und switches between the two nodes at ease, but
> the apache resource can?t be started.

You should take a look at the logs. Look for lines starting with
lrmd and apache. If there was a timeout, that typically means
that your status page doesn't work. You can also use ocf-tester
with your configuration to test whether the resource work as it
should.

Thanks,

Dejan

> crm_verify -L -VVV
> crm_verify[23244]: 2009/07/14_15:05:24 info: main: =#=#=#=#= Getting XML =#=#=#=#=
> crm_verify[23244]: 2009/07/14_15:05:24 info: main: Reading XML from: live cluster
> crm_verify[23244]: 2009/07/14_15:05:24 notice: main: Required feature set: 2.0
> crm_verify[23244]: 2009/07/14_15:05:24 info: determine_online_status: Node cluster01 is online
> crm_verify[23244]: 2009/07/14_15:05:24 WARN: unpack_rsc_op: Processing failed op resource_apache_start_0 on cluster01: Error
> crm_verify[23244]: 2009/07/14_15:05:24 WARN: unpack_rsc_op: Compatability handling for failed op resource_apache_start_0 on cluster01
> crm_verify[23244]: 2009/07/14_15:05:24 info: determine_online_status: Node cluster02 is online
> crm_verify[23244]: 2009/07/14_15:05:24 WARN: unpack_rsc_op: Processing failed op resource_apache_start_0 on cluster02: Error
> crm_verify[23244]: 2009/07/14_15:05:24 WARN: unpack_rsc_op: Compatability handling for failed op resource_apache_start_0 on cluster02
> crm_verify[23244]: 2009/07/14_15:05:24 notice: native_print: resource_IP        (heartbeat::ocf:IPaddr2):       Started cluster01
> crm_verify[23244]: 2009/07/14_15:05:24 notice: native_print: resource_apache    (heartbeat::ocf:apache):        Stopped
> crm_verify[23244]: 2009/07/14_15:05:24 notice: NoRoleChange: Leave resource resource_IP (cluster01)
> crm_verify[23244]: 2009/07/14_15:05:24 WARN: native_color: Resource resource_apache cannot run anywhere
> Warnings found during check: config may not be valid
> 
> 
> and here comes the cib:
> 
> <cib generated="true" admin_epoch="0" epoch="49" have_quorum="true" ignore_dtd="false" num_peers="2" cib_feature_revision="2.0" num_updates="1" cib-last-written="Tue Jul 14 13:45:04 2009" ccm_transition="4" dc_uuid="8161ed6e-8a0d-48f3-a580-ee9a46e4b109">
>    <configuration>
>      <crm_config>
>        <cluster_property_set id="cib-bootstrap-options">
>          <attributes>
>            <nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="2.1.3-node: 552305612591183b1628baa5bc6e903e0f1e26a3"/>
>          </attributes>
>        </cluster_property_set>
>      </crm_config>
>      <nodes>
>        <node id="8161ed6e-8a0d-48f3-a580-ee9a46e4b109" uname="cluster01" type="normal"/>
>        <node id="8a31d70e-2bbd-46b7-b01b-7df93b1e4b18" uname="cluster02" type="normal"/>
>      </nodes>
>      <resources>
>        <primitive id="resource_IP" class="ocf" type="IPaddr2" provider="heartbeat">
>          <meta_attributes id="resource_IP_meta_attrs">
>            <attributes>
>              <nvpair id="id_stickiness" name="resource_stickiness" value="100"/>
>              <nvpair id="id_failure" name="resource_failure_stickiness" value="-30"/>
>            </attributes>
>          </meta_attributes>
>          <instance_attributes id="resource_IP_instance_attrs">
>            <attributes>
>              <nvpair name="ip" id="ip_id" value="192.168.3.212"/>
>            </attributes>
>          </instance_attributes>
>          <instance_attributes id="resource_IP">
>            <attributes>
>              <nvpair id="resource_IP-target_role" name="target_role" value="started"/>
>            </attributes>
>          </instance_attributes>
>        </primitive>
>        <primitive id="resource_apache" class="ocf" type="apache" provider="heartbeat">
>          <instance_attributes id="resource_apache_instance_attrs">
>            <attributes>
>              <nvpair id="id_config" name="configfile" value="/etc/httpd/conf/httpd.conf"/>
>              <nvpair id="id_bin" name="httpd" value="/usr/sbin/httpd"/>
>            </attributes>
>          </instance_attributes>
>          <instance_attributes id="resource_apache">
>            <attributes>
>              <nvpair id="resource_apache-target_role" name="target_role" value="started"/>
>            </attributes>
>          </instance_attributes>
>        </primitive>
>      </resources>
>      <constraints>
>        <rsc_order id="order_apache_after_IP" from="resource_apache" action="start" type="after" to="resource_IP" to_action="start"/>
>        <rsc_colocation id="colocation_Apache_IP" from="resource_apache" to="resource_IP" score="INFINITY"/>
>      </constraints>
>    </configuration>
>    <status>
>      <node_state id="8161ed6e-8a0d-48f3-a580-ee9a46e4b109" uname="cluster01" crmd="online" crm-debug-origin="do_update_resource" shutdown="0" in_ccm="true" ha="active" join="member" expected="member">
>        <transient_attributes id="8161ed6e-8a0d-48f3-a580-ee9a46e4b109">
>          <instance_attributes id="status-8161ed6e-8a0d-48f3-a580-ee9a46e4b109">
>            <attributes>
>              <nvpair id="status-8161ed6e-8a0d-48f3-a580-ee9a46e4b109-probe_complete" name="probe_complete" value="true"/>
>              <nvpair id="status-8161ed6e-8a0d-48f3-a580-ee9a46e4b109-fail-count-resource_apache" name="fail-count-resource_apache" value="1"/>
>            </attributes>
>          </instance_attributes>
>        </transient_attributes>
>        <lrm id="8161ed6e-8a0d-48f3-a580-ee9a46e4b109">
>          <lrm_resources>
>            <lrm_resource id="resource_IP" type="IPaddr2" class="ocf" provider="heartbeat">
>              <lrm_rsc_op id="resource_IP_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" transition_key="3:13:123a4dee-d944-4750-bfec-9d7cee3f0cfb" transition_magic="0:0;3:13:123a4dee-d944-4750-bfec-9d7cee3f0cfb" call_id="7" crm_feature_set="2.0" rc_code="0" op_status="0" interval="0" op_digest="ddd496cfce23ef1c17cced5ffd78132a"/>
>              <lrm_rsc_op id="resource_IP_start_0" operation="start" crm-debug-origin="do_update_resource" transition_key="5:27:123a4dee-d944-4750-bfec-9d7cee3f0cfb" transition_magic="0:0;5:27:123a4dee-d944-4750-bfec-9d7cee3f0cfb" call_id="12" crm_feature_set="2.0" rc_code="0" op_status="0" interval="0" op_digest="ddd496cfce23ef1c17cced5ffd78132a"/>
>              <lrm_rsc_op id="resource_IP_stop_0" operation="stop" crm-debug-origin="do_update_resource" transition_key="5:24:123a4dee-d944-4750-bfec-9d7cee3f0cfb" transition_magic="0:0;5:24:123a4dee-d944-4750-bfec-9d7cee3f0cfb" call_id="11" crm_feature_set="2.0" rc_code="0" op_status="0" interval="0" op_digest="ddd496cfce23ef1c17cced5ffd78132a"/>
>            </lrm_resource>
>            <lrm_resource id="resource_apache" type="apache" class="ocf" provider="heartbeat">
>              <lrm_rsc_op id="resource_apache_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" transition_key="4:13:123a4dee-d944-4750-bfec-9d7cee3f0cfb" transition_magic="0:7;4:13:123a4dee-d944-4750-bfec-9d7cee3f0cfb" call_id="8" crm_feature_set="2.0" rc_code="7" op_status="0" interval="0" op_digest="78bd7553bdf10a58c69f3a3b70d66ba0"/>
>              <lrm_rsc_op id="resource_apache_start_0" operation="start" crm-debug-origin="do_update_resource" transition_key="8:9:123a4dee-d944-4750-bfec-9d7cee3f0cfb" transition_magic="4:1;8:9:123a4dee-d944-4750-bfec-9d7cee3f0cfb" call_id="5" crm_feature_set="2.0" rc_code="1" op_status="4" interval="0" op_digest="78bd7553bdf10a58c69f3a3b70d66ba0"/>
>              <lrm_rsc_op id="resource_apache_stop_0" operation="stop" crm-debug-origin="do_update_resource" transition_key="1:11:123a4dee-d944-4750-bfec-9d7cee3f0cfb" transition_magic="0:0;1:11:123a4dee-d944-4750-bfec-9d7cee3f0cfb" call_id="6" crm_feature_set="2.0" rc_code="0" op_status="0" interval="0" op_digest="78bd7553bdf10a58c69f3a3b70d66ba0"/>
>            </lrm_resource>
>          </lrm_resources>
>        </lrm>
>      </node_state>
>      <node_state id="8a31d70e-2bbd-46b7-b01b-7df93b1e4b18" uname="cluster02" ha="active" crm-debug-origin="do_update_resource" crmd="online" shutdown="0" in_ccm="true" join="member" expected="member">
>        <lrm id="8a31d70e-2bbd-46b7-b01b-7df93b1e4b18">
>          <lrm_resources>
>            <lrm_resource id="resource_IP" type="IPaddr2" class="ocf" provider="heartbeat">
>              <lrm_rsc_op id="resource_IP_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" transition_key="4:15:123a4dee-d944-4750-bfec-9d7cee3f0cfb" transition_magic="0:7;4:15:123a4dee-d944-4750-bfec-9d7cee3f0cfb" call_id="6" crm_feature_set="2.0" rc_code="7" op_status="0" interval="0" op_digest="ddd496cfce23ef1c17cced5ffd78132a"/>
>            </lrm_resource>
>            <lrm_resource id="resource_apache" type="apache" class="ocf" provider="heartbeat">
>              <lrm_rsc_op id="resource_apache_monitor_0" operation="monitor" crm-debug-origin="do_update_resource" transition_key="5:15:123a4dee-d944-4750-bfec-9d7cee3f0cfb" transition_magic="0:7;5:15:123a4dee-d944-4750-bfec-9d7cee3f0cfb" call_id="7" crm_feature_set="2.0" rc_code="7" op_status="0" interval="0" op_digest="78bd7553bdf10a58c69f3a3b70d66ba0"/>
>              <lrm_rsc_op id="resource_apache_start_0" operation="start" crm-debug-origin="do_update_resource" transition_key="9:7:123a4dee-d944-4750-bfec-9d7cee3f0cfb" transition_magic="4:1;9:7:123a4dee-d944-4750-bfec-9d7cee3f0cfb" call_id="4" crm_feature_set="2.0" rc_code="1" op_status="4" interval="0" op_digest="78bd7553bdf10a58c69f3a3b70d66ba0"/>
>              <lrm_rsc_op id="resource_apache_stop_0" operation="stop" crm-debug-origin="do_update_resource" transition_key="1:9:123a4dee-d944-4750-bfec-9d7cee3f0cfb" transition_magic="0:0;1:9:123a4dee-d944-4750-bfec-9d7cee3f0cfb" call_id="5" crm_feature_set="2.0" rc_code="0" op_status="0" interval="0" op_digest="78bd7553bdf10a58c69f3a3b70d66ba0"/>
>            </lrm_resource>
>          </lrm_resources>
>        </lrm>
>        <transient_attributes id="8a31d70e-2bbd-46b7-b01b-7df93b1e4b18">
>          <instance_attributes id="status-8a31d70e-2bbd-46b7-b01b-7df93b1e4b18">
>            <attributes>
>              <nvpair id="status-8a31d70e-2bbd-46b7-b01b-7df93b1e4b18-probe_complete" name="probe_complete" value="true"/>
>              <nvpair id="status-8a31d70e-2bbd-46b7-b01b-7df93b1e4b18-fail-count-resource_apache" name="fail-count-resource_apache" value="1"/>
>            </attributes>
>          </instance_attributes>
>        </transient_attributes>
>      </node_state>
>    </status>
>  </cib>
> 
> I?m quite lost about this Problem, any sugestions are welcome.
> 
> 
> Kind Regards
> 
> SST btw- Michael Schwartzkopff -> great book, thanks ! 
> 
> 
>  
> -- 
> Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate
> f?r nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems



More information about the Linux-HA mailing list