Fixed.

Thanks for all the information, you set me on the right track.  It turns out
I had an older version of the apache init script that returned 1 when
already running.  I don't understand how it was updated on one computer and
not the other.  But, C'est La Vie.  Once I got that updated it works like a
charm.

Thanks again.

--Jason W. Allen

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rafal Kupka
Sent: Tuesday, December 18, 2007 9:40 AM
To: [email protected]
Subject: Re: [Linux-HA] Failover, apache start then fail issues

On Tue, Dec 18, 2007 at 09:10:04AM -0500, Jason W. Allen wrote:
Hello,

> >From what I have been able to deduce, I don't think it's a problem 
> >with
> apache.  Everything runs fine if I start apache manually, or if I let 
> heartbeat start apache.  The only time it doesn't work is when I try 
> to fail back to the Sys1 computer.  And only after It has already been
reported as
> started.   For some reason it looks like heartbeat tries to start
everything
> twice, it is at this point that apache returns and RC=1 error.  
> Heartbeat

I believe that start action on already started resource should return
success, not error (RC=1).

Look at http://wiki.linux-ha.org/LSBResourceAgent
...
The most common problems are:
- Starting a started resource returns an error (this violates the LSB spec)
...

Fix it or switch to apache RA from heartbeat.

> then shuts everything down. After it has been stopped I can run 
> heartbeat start again and it all comes back as good as new.  If I look 
> in the apache logs (all the way at the bottom of my original email) 
> apache returns NO error.

> I may be mistaken, but I thought the Apache RA is only for version 2. 
> These are production machines and I'm a bit apprehensive to go to 
> version 2 with no experience with it.

My systems have /etc/ha.d/resource.d/apache wrapper for OCF apache RA. I
think it should work with heartbeat v1.

Kupson
--
Great software without the knowledge to run it is pretty useless.
(Linux Gazette #1)
_______________________________________________
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