<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><title></title><head><meta http-equiv="Content-type" content="text/html; charset=UTF-8" /><style type="text/css"> html, body {overflow-x: visible; } html { width:100%; height:100%;margin:0px; padding:0px; overflow-y: auto; overflow-x: auto; }body { font-size: 100.01%; font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; background-color:transparent; overflow:show; background-image:none; margin:0px; padding:5px; }p { margin:0px; padding:0px; } body { font-size: 12px; font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; } p { margin: 0; padding: 0; } blockquote { padding-left: 5px; margin-left: 5px; margin-bottom: 0px; margin-top: 0px; } blockquote.quote { border-left: 1px solid #CCC; padding-left: 5px; margin-left: 5px; } .misspelled { background: transparent url(//webmailerng.1und1.de/static_resource/mailclient/widgets/basic/parts/maileditor/spellchecking_underline.gif) repeat-x scroll center bottom; } .correct {} .unknown {} .ignored {}</style></head><body id="bodyElement" style="">
<basefont size="2" face="Verdana"><font face="Verdana" size="2">On 02/08/2011 02:37 PM, u.schmeling@online.de wrote:
<br>> 
<br>> Hi list,
<br>> 
<br>> have some problems to setup the above configuration. My environment is as follows:
<br>> 
<br>> rhel6 , pacemaker-1.1.2-7.el6.x86_64, apache2, haproxy running on both nodes, service addresses are managed by pacemaker
<br>> there is an additional resource script, that takes care of reloading/restarting apache in case of failover. This script doesn't work ass expected.
<br>> The lsb checks are passed by the script, however when running in lrmd context I get:
<br>> 
<br>> [9555]: info: rsc:apacheIP:13: monitor
<br>> lrmd: [9555]: info: rsc:haproxyIP:12: monitor
<br>> lrmd: [9555]: notice: lrmd_rsc_new(): No lrm_rprovider field in message
<br>> lrmd: [9555]: info: rsc:webservice:21: probe
<br>> lrmd: [7177]: ERROR: (raexeclsb.c:execra:267) execv failed for /etc/init.d/apache2: Exec format error
<br>> lrmd: [9555]: info: rsc:webservice:22: stop
<br>> lrmd: [7178]: WARN: For LSB init script, no additional parameters are needed.
<br>> lrmd: [7178]: ERROR: (raexeclsb.c:execra:267) execv failed for /etc/init.d/apache2: Exec format error
<br>
<br></font><p><font face="Verdana" size="2">what happens if you execute  /etc/init.d/apache2 without any parameter?
</font><span></span></p><p id="__paragraph__1297236657000" style=""><font style="" size="2"><span><br></span></font></p><font face="Verdana" size="2">what dies "file -k /etc/init.d/apache2" show?
<br>
<br>> primitive webservice lsb:apache2 \
<br>>  op start interval="0"
<br>
<br>why do you use lsb instead of the ocf:heartbeat:apache?
<br>
<br>cheers,
<br>raoul
<br>-- 
<br>_______________________________<br><br>_____________________________________
<br>DI (FH) Raoul Bhatia M.Sc.          email.          r.bhatia@ipax.at
<br>Technischer Leiter
<br>
<br>IPAX - Aloy Bhatia Hava OG          web.          <a href="http://www.ipax.at" target="_blank">http://www.ipax.at</a>
<br>Barawitzkagasse 10/2/2/11           email.            office@ipax.at
<br>1190 Wien                           tel.               +43 1 3670030
<br>FN 277995t HG Wien                  fax.            +43 1 3670030 15
<br>____________________________________________________________________
<br>
<br></font><p><font face="Verdana" size="2">Hi Raoul,</font><span></span></p><p id="__paragraph__1297236782000" style=""><br><font style="" size="2"><span></span></font></p><p id="__paragraph__1297236782000" style=""><font style="" size="2"><span>I don't use </span></font><font face="Verdana" size="2">ocf:heartbeat:apache because of my special configuration:</font><span></span></p><p id="__paragraph__1297236827000" style=""><br><font style="" size="2"><span></span></font></p><p id="__paragraph__1297236827000" style=""><font style="" size="2"><span>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).</span></font><span></span></p><p id="__paragraph__1297236925000" style=""><font style="" size="2"><span>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</span></font><span></span></p><p id="__paragraph__1297237044000" style=""><font style="" size="2"><span>establish the virtual ips. </span></font><font face="Verdana" size="2">/etc/init.d/apache2 without any parameter gives no output. The output of </font><font face="Verdana" size="2">file -k /etc/init.d/apache2 </font><font face="Verdana" size="2">gives </font><font face="Verdana" size="2">/etc/init.d/apache2: ASCII English text</font><span></span></p><p id="__paragraph__1297237300000" style=""><br><font style="" size="2"><span></span></font></p><p id="__paragraph__1297237300000" style=""><font style="" size="2"><span>regards Uwe<br></span></font></p></body></html>