Hi,

On Fri, Jan 09, 2009 at 10:40:29AM +0100, Tobias Appel wrote:
> > Hi,
> > 
> > On Fri, Jan 09, 2009 at 08:47:02AM +0000, Thomas Mueller wrote:
> > > 
> > > > crmd[11077]: 2008/12/27_13:09:16 info: do_lrm_rsc_op: Performing
> > > > op=WebServerApache_start_0 key=7:3:e4fc23e6-92ab-4683-99ba-df387c448e32)
> > > > lrmd[11074]: 2008/12/27_13:09:16 info: rsc:WebServerApache: start
> > > > apache[11106][11114]: 2008/12/27_13:09:16 ERROR: Cannot parse config
> > > > file [/etc/apache2/httpd.conf]
> > > > 
> > > > There is no /etc/apache2/httpd.conf for it to find and parse.  So that
> > > > is coded somewhere, and I'll need to track that down and start again.
> > > > 
> > > 
> 
> You said you were on RHEL4 iirc ? Well I'm using RHEL5 and this is my
> quick and dirty setup for apache:
> 
>          <primitive id="httpd" class="lsb" type="httpd"
> provider="heartbeat">
>            <operations>
>              <op id="httpd_monitor" name="status" timeout="15"
> disabled="false" role="Started" prereq="quorum" on_
> fail="restart" interval="30" start_delay="60"/>
>            </operations>
>          </primitive>
> 
> Instead of using the supplied OCF script (which is recommended btw)

Indeed it is.

> I
> just call the standard init script for apache which is httpd for RHEL5.
> And I added the monitor operation which just checks if the process is
> alive. In my case it worked, if the apache process died but it will not
> check the webserver to see if it really returns a html page (I use
> Nagios for this anyway, so I don't really need it).

Well, the point of most clusters/HA solutions is to have an
automated recovery process, i.e. that at 3am your local time
and 3pm your customer's (somewhere from down under) there's no
service disruption if a hard disk fails on the node holding the
resource. If you rely on Nagios, that's another story (unless
you're some kind of an uebermensch).

> I also had trouble with the OCF script on RHEL5 that's why I went for
> the lsb script. But again, the OCF is recommended as it has more
> functionality and lets you monitor the resource better.

Looks like an apache OCF guide is due. Or is it that we just hear
from people having trouble with it.

Thanks,

Dejan

> Bye,
> Tobi
> 
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to