<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-AU link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Angie,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I can't tell exactly what's you've provided, can you post your
CRM configuration (the output of 'crm configure show')? While you're at it,
also provide '</span> <span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>crm_verify -LV' and 'crm_mon -fo1'.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>This looks suspicious though:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Nov 19 01:25:08 test2 crmd: [24251]: info: process_lrm_event:
LRM operation WebServer_monitor_60000 (call=483, rc=-2, cib-update=0,
confirmed=true) Cancelled unknown exec error<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Personally I'd start with the OCF RA and leave LSB:httpd alone. From
the above error message, something inside lssb:httpd is returning -2, which is
not a supported return code.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Depending on how confident you are with shell scripts, you might
find it helpful to eliminate Pacemaker from the equation and call the Resource
Agent script yourself to debug problems manually, like so...<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Disable your resource so Pacemaker doesn't interfere:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>crm_resource -r WebSite -m -p target-role -v stopped<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Then move into the RA directory and set a necessary environment
variable:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>cd =/usr/lib/ocf/resource.d/heartbeat<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>export OCF_ROOT=/usr/lib/ocf<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Start testing the apache RA, setting the only mandatory
environment variable for ocf:heartbeat:apache :<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>export OCF_RESKEY_configfile=/path/to/your/main/apache/config<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>./apache start<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>echo $?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>That should echo "0" for success. Judging by your logs,
you can start Apache but the monitor is failing:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>./apache monitor<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>echo $?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>If that doesn't echo "0", you might get a helpful
error message explaining what's wrong. You might have to read through the
apache script itself to figure out why it's failing. Finally test the 'stop'
operation:<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>./apache stop<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>echo $?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Should echo "0" as well. If this all works for you,
but the resource in Pacemaker is still not working, then it's probably something
in your CIB (like a bad attribute), as you've just done pretty much exactly
what Pacemaker will do.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Let us know how you go.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><b><span lang=EN-US style='font-size:14.0pt;font-family:
"Arial","sans-serif";color:#0B53B6'>Luke Bigum<o:p></o:p></span></b></p>

<p class=MsoNormal><b><span lang=EN-US style='font-size:9.0pt;font-family:"Arial","sans-serif";
color:#3989F3'>Systems Administrator<o:p></o:p></span></b></p>

<p class=MsoNormal><span lang=EN-US style='font-size:8.0pt;font-family:"Arial","sans-serif";
color:#5C5C5C'> (p) 1300 661 668<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:8.0pt;font-family:"Arial","sans-serif";
color:#5C5C5C'> (f)  1300 661 540<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:8.0pt;font-family:"Arial","sans-serif";
color:#5C5C5C'>(e)  </span><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:#1F497D'><a href="mailto:lbigum@iseek.com.au"><span lang=EN-US
style='font-size:8.0pt;color:#3989F3'>lbigum@iseek.com.au</span></a></span><span
lang=EN-US style='font-size:8.0pt;font-family:"Arial","sans-serif";color:#5C5C5C'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial","sans-serif";
color:#1F497D'><a href="http://www.iseek.com.au/"><span lang=EN-US
style='font-size:8.0pt;color:#3989F3'>http://www.iseek.com.au</span></a></span><span
lang=EN-US style='font-size:8.0pt;font-family:"Arial","sans-serif";color:#3989F3'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:8.0pt;font-family:"Arial","sans-serif";
color:#5C5C5C'>Level 1, 100 Ipswich Road Woolloongabba QLD 4102<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:8.0pt;font-family:"Calibri","sans-serif";
color:#5C5C5C'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt;font-family:"Calibri","sans-serif";
color:#5C5C5C'><img border=0 width=251 height=29 id="Picture_x0020_34"
src="cid:image001.jpg@01CA6901.D25D3CD0" alt=iseekbar.jpg><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt;font-family:"Calibri","sans-serif";
color:#5C5C5C'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:8.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>This e-mail and any files transmitted with it may contain
confidential and privileged material for the sole use of the intended
recipient. Any review, use, distribution or disclosure by others is strictly
prohibited. If you are not the intended recipient (or authorised to receive for
the recipient), please contact the sender by reply e-mail and delete all copies
of this message.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:8.0pt;font-family:"Calibri","sans-serif";
color:#5C5C5C'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> Angie T. Muhammad
[mailto:angie.tawfik@gmail.com] <br>
<b>Sent:</b> Thursday 19 November 2009 9:57 AM<br>
<b>To:</b> pacemaker@oss.clusterlabs.org<br>
<b>Subject:</b> [Pacemaker] Error starting Apache on 2 nodes cluster<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<div>

<p class=MsoNormal>Hello <br>
I'm a pacemaker and openais beginner.<br>
I followed the document 'cluster from scratch' and I successfully managed to
create and monitor a 'ClusterIP' and 'LoadBalancer' resources.<br>
<br>
But, Whenever I try to start Apache: <br>
# crm configure primitive WebSite ocf:heartbeat:apache params
configfile=/etc/httpd/conf/httpd.conf op monitor interval=1min<br>
<br>
whether using (ocf:heartbeat:apache) or (lsb::httpd) I get the following errors
when watching crm_mon:<br>
<br>
============<br>
Last updated: Thu Nov 19 01:38:33 2009<br>
Stack: openais<br>
Current DC: test1.localdomain - partition with quorum<br>
Version: 1.0.5-462f1569a43740667daf7b0f6b521742e9eb8fa7<br>
2 Nodes configured, 2 expected votes<br>
3 Resources configured.<br>
============<br>
<br>
Online: [ test1.localdomain test2.localdomain ]<br>
<br>
ClusterIP      
(ocf::heartbeat:IPaddr2):       Started
test1.localdomain<br>
LoadBalancer    (lsb:haproxy):  Started test1.localdomain<br>
<br>
<span style='color:red'>Failed actions:<br>
    WebSite_start_0 (node=test1.localdomain, call=9, rc=1,
status=complete): unknown error<br>
    WebSite_start_0 (node=test2.localdomain, call=5, rc=1,
status=complete): unknown error<br>
</span>/************************************************************************************************************/<br>
<br>
Knowing that I am using:<br>
CentOS 5.4.. <br>
openais-0.80.5-15.1<br>
pacemaker-1.0.5-4.1<br>
# chkconfig httpd off <br>
server-status is not enabled in my httpd.conf ... <br>
<br>
I always check apache processes before configuring my crm using:<br>
<br>
# ps aux | grep httpd <br>
/* to make sure there are no zombie processes */<br>
<br>
# /etc/init.d/httpd status<br>
/* to gurantee it's stopped and nothing is locked */<br clear=all>
<br>
Last but not least I am ataching the <b>last 100 lines of my /var/log/messages</b>
of the 2nd node to help you help me. <br>
I have been on this loop for four days now and I have no idea why the crm can't
start apache though when manually starting it, everything runs smoothly!!! <br>
<br>
Thank you in advance<br>
-- <br>
All the best,<br>
Angie<o:p></o:p></p>

</div>

</div>

</body>

</html>