On 02/08/2011 02:37 PM, u.schmel...@online.de wrote:
> 
> Hi list,
> 
> have some problems to setup the above configuration. My environment is as 
> follows:
> 
> rhel6 , pacemaker-1.1.2-7.el6.x86_64, apache2, haproxy running on both nodes, 
> service addresses are managed by pacemaker
> there is an additional resource script, that takes care of 
> reloading/restarting apache in case of failover. This script doesn't work ass 
> expected.
> The lsb checks are passed by the script, however when running in lrmd context 
> I get:
> 
> [9555]: info: rsc:apacheIP:13: monitor
> lrmd: [9555]: info: rsc:haproxyIP:12: monitor
> lrmd: [9555]: notice: lrmd_rsc_new(): No lrm_rprovider field in message
> lrmd: [9555]: info: rsc:webservice:21: probe
> lrmd: [7177]: ERROR: (raexeclsb.c:execra:267) execv failed for 
> /etc/init.d/apache2: Exec format error
> lrmd: [9555]: info: rsc:webservice:22: stop
> lrmd: [7178]: WARN: For LSB init script, no additional parameters are needed.
> lrmd: [7178]: ERROR: (raexeclsb.c:execra:267) execv failed for 
> /etc/init.d/apache2: Exec format error

what happens if you execute /etc/init.d/apache2 without any parameter?

what dies "file -k /etc/init.d/apache2" show?

> primitive webservice lsb:apache2 \
> op start interval="0"

why do you use lsb instead of the ocf:heartbeat:apache?

cheers,
raoul
-- 
_______________________________

_____________________________________
DI (FH) Raoul Bhatia M.Sc. email. r.bha...@ipax.at
Technischer Leiter

IPAX - Aloy Bhatia Hava OG web. http://www.ipax.at http://www.ipax.at 
Barawitzkagasse 10/2/2/11 email. off...@ipax.at
1190 Wien tel. +43 1 3670030
FN 277995t HG Wien fax. +43 1 3670030 15
____________________________________________________________________

Hi Raoul,

I don't use ocf:heartbeat:apache because of my special configuration:

apache is active on both nodes, the access is via haproxy, we have an url 
http://localhost:80 which accesses the local apache via ssl and delivers a 
static page (returning a fix text).
So if we switch over, the stop action does an apache_force_reload and sets the 
current node to standby. The new active node performs an apache_start (to be 
sure apache is running) and a force_reload to
establish the virtual ips. /etc/init.d/apache2 without any parameter gives no 
output. The output of file -k /etc/init.d/apache2 gives /etc/init.d/apache2: 
ASCII English text

regards Uwe

_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker

Reply via email to