Re: LVS daemon not showing.
Brian Gray <[email protected]>
| Newsgroups | gmane.linux.redhat.piranha |
|---|---|
| Message-ID | <[email protected]> |
Fredrik Johansson wrote:
>
> Hi!
>
> Following the nice guide made by Peter Baitz(noticed some errors though), but I
> still have some questions:
>
> * When starting upp the lvs-daemon doesnt show(both in piranha-gui and ps ax),
> just the nanny daemons? Everything seems to work... Is this correct behavior? If
> not, what could be wrong?
ps -ax should show show the following, or at least simular.
665 ? S 0:00 /usr/sbin/lvs --nofork -c
/etc/sysconfig/ha/lvs.cf
a bunch of
693 ? S 3:24 /usr/sbin/nanny {the command it's
running......}
and
599 ? S 0:53 /usr/sbin/piranha_gui -D HAVE_PHP3 -f
/etc/sysconfig/
615 ? S 0:45 pulse
My guess would be pulse is not running. Why? /etc/sysconfig/ha/lvs.cf
foo?
>
> * We're using the apache-tomcat server. For testing that its up I did this
> little script that seems to work(at least in shell):
What are you running that uses tomcat? Is this a recompiled apache or
just mod_jk?
> ------- checkwww.sh
> WEBTEST=`/usr/bin/lynx -dump -connect_timeout=1 $1/pub/index.html 2>&1|egrep -i
> 'unable to connect to remote host'\|'Internal Server Error'|wc -l`
> if [ ${WEBTEST} -ge 1 ]; then
> echo "FAIL"
> else
> echo "OK"
> fi
> -------
> But when adding it to the lvs.cf he doesnt seem to run the script.
> ------- from lvs.cf
> persistent = 900
> expect = "OK"
> send_program = "/etc/sysconfig/ha/checkwww.sh %h"
> -------
I would use something like (remserv=$1) at the begining of the script
and replace the $1 with $remserv or something like that. My guess is %h
is not being passed to your script for some reason. I know for a fact
that piranha is very purticular when it comes to syntax, so make sure
what you expect piranha is getting as feedback from the script is
actually what it's getting. Strace should be usefull here.
> What can be wrong?
> This is a bit confusing, I tried both 'send' and 'send_program' but when should
> I use what? In PB's HOWTO he's using 'send' for the smtp-test script but this
> seems wrong?
'send_program' is what you want in your case. Can't speak for PB's
HOWTO, don't think I've read it. :/
> The default testing of http works...
>
> I'm using a rh 7.2 with:
> kernel-2.4.9-34
> ipvsadm-1.20-7
> piranha-0.6.1-3
>
> /Fredrik
>
> Ps. Peter, if youre reading this the errors I found was somewhat minor but youre
> still testing smtp on the http port and the other way around in your
> lvs.cf-example. Anyway thanks for the howto! :-)
>
> _______________________________________________
> Piranha-list mailing list
> [email protected]
> https://listman.redhat.com/mailman/listinfo/piranha-list
--
Regards,
BMan
"Things should be made as simple as possible, but not any simpler."
A.E.