[Pacemaker] Failover configuration with apache

u.schmeling at online.de u.schmeling at online.de
Tue Feb 8 08:37:33 EST 2011


An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/pacemaker/attachments/20110208/6ab9d5d0/attachment.html>
-------------- next part --------------

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

The cluster config is like this:

node lbv01.dpd.de \
 attributes standby="off"
node lbv02.dpd.de \
 attributes standby="off"
primitive apacheIP ocf:heartbeat:IPaddr2 \
 params ip="10.6.151.175" \
 op monitor interval="10s" \
 meta is-managed="true"
primitive haproxyIP ocf:heartbeat:IPaddr2 \
 params ip="10.6.151.176" \
 op monitor interval="10s"
primitive webservice lsb:apache2 \
 op start interval="0"
group webservice-ips haproxyIP apacheIP \
 meta target-role="Started"
property $id="cib-bootstrap-options" \
 dc-version="1.1.2-f059ec7ced7a86f18e5490b67ebf4a0b963bccfe" \
 cluster-infrastructure="openais" \
 expected-quorum-votes="2" \
 stonith-enabled="false" \
 no-quorum-policy="ignore" \
 last-lrm-refresh="1297170301"

Maybe someone can assist. Thanks and 

regards Uwe



More information about the Pacemaker mailing list