[Linux-HA] fall-back of a apache resource failed ha-v2 CentOs 5.3

Dejan Muhamedagic dejanmm at fastmail.fm
Wed Jul 15 06:44:11 MDT 2009


Hi,

On Wed, Jul 15, 2009 at 01:46:50PM +0200, Testuser  SST wrote:
> Hi,
> 
> I tried to test a operation-function on a apache resource. the
> resource was working on the a-node, I forbid the access to
> /server-status on the a-node, so the monitoring failed and the
> resource switched over to the b-node. So I fixed the access to
> /server-status and check it with lynx, access is ok. But, when
> I use crm_standby to take the b-node out of order, the
> apache-resource is not coming up on the a-node. The ip-resource
> is working well on both nodes. I also reseted the crm_failcount
> of the resouce on both nodes. The apache resource comes up,
> when I switch back the standby of the b-node, both resources
> (ip and apache) will then run on the b-node.

The answer's probably in the logs. Whenever there's a problem
with a resource failing to operate, look for lrmd logs. In case
the CRM won't place the resource where you think it should, check
the scores with ptest -L -s. In that case resource cleanup
usually helps.

Thanks,

Dejan

> 
> this is my apache resource configuration:
> 
> <resources>
> <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>
>  <operations>
>   <op id="op_apache" name="monitor" interval="60s" timeout="20s" disabled="false" role="Started" prereq="quorum" on_fail="restart"/>
>  </operations>
> </primitive>
> </resources>
> 
> 
> Any suggestions are welcome
> 
> Kind Regards
> 
> SST  
> -- 
> Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 -
> sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser
> _______________________________________________
> 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