Re: Need help configuring Piranha. Have only a few days left to getthis done.

Edward Croft <[email protected]>
Newsgroups gmane.linux.redhat.piranha
Organization Open Ratings, Inc.
Message-ID <[email protected]>
Sorry Sebastion, I was doing a cut and paste and didn't realize all that
additional material was in there until I got the copy from the list
server. Mea Culpa. 
Now as to the logs, they show absolutely nothing outside of it failing
to stop the service. I am using -v in hopes of finding some reason.
There just isn't anything there. I even threw a mail command into the
head of the script to email me if the script started and I get nothing.
However, if I run the script outside of lvs/piranha, it works fine and
either returns OK or Failed. I also get the emails from it. 
I got an email from Peter Baitz that pointed me to his website so I am
going to go through that and see if I am missing something.

On Wed, 2003-04-23 at 04:27, Sébastien Bonnet wrote:
> Hi Edward,
> 
> > [SMTP stuff]
> 
> You could have snipped it yourself as a courtesy to the list readers.
> 
> > The documentation states that you can use a script for the send,
> > but it never reads it.
> 
> Did you have a look at the logs ? If there's nothing relevant, you might
> restart pulse with -v and look again. IT works fine for me, so it should
> also for you.
> 
> Here is what I have :
> failover jonas {
>         active = 1
>         address = 172.22.40.103 eth0:3
>         vip_nmask = 255.255.240.0
>         port = 1099
>         send_program = "/etc/sysconfig/ha/monitor.jonas.sh"
>         expect = "OK"
>         timeout = 45
>         start_cmd = "/sbin/service jonas restart"
>         stop_cmd = "/sbin/service jonas stop"
> }
> 
> [sbt@ssca4010 sbt]$ cat /etc/sysconfig/ha/monitor.jonas.sh
> #! /bin/sh
> . /etc/profile.d/jonas.sh
> $JONAS_ROOT/bin/unix/JonasAdmin -e 2>&1 | grep -q unreachable && echo
> FAIL || echo OK
> 
> > I verified this by putting a mail command at the very beginning.
> > It isn't a permissions issue as I su'ed into the postgres account
> > and was able to run the scripts.
> 
> Watch out ! your script will be run as the same user pulse is, this is
> generally root !
> 
> > Here is a copy of the lvs.cf from the database server.
> >      vip_nmask = 255.255.255.0
> 
> Eventhough you could be right, 255.0.0.0 is the usual netmask for a
> 10.something network.
> 
> >      send_program = "/scripts/check_pgsql_alive"
> 
> Can you send it ?
> 
> > I had port 5432 in there, but took it out to test that also.
> 
> As you can see, I still have the port ... just in case :)
> 
> > [LVS config]
> > network = nat
> 
> I'm assuming a one NIC NAT setup, is this right ?
> 
> > nat_router = 10.0.13.254 aft0:2
> 
> It this the default route on both real servers ?
> 
> >      address = 10.0.13.20 aft0:1
> >      vip_nmask = 255.255.255.0
> >      fwmark = 1
> >      port = 80
> 
> This is inconsistant. You have to choose between VIP:port and fwmark.
> 
> >      load_monitor = none
> 
> There used to be a bug with that. Please check you have 2 nanny
> processes once pulse is started. If none, replace load_monitor = none by
> load_monitor = uptime (not a matter for the moment).
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.