LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Ldirectord starting problems

To: "'lvs-users@xxxxxxxxxxxxxxxxxxxxxx'" <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Ldirectord starting problems
From: Deputy Michael <Michael.Deputy@xxxxxxxxx>
Date: Thu, 19 May 2005 10:59:37 -0500
I have been trying to get load-balancing and fail-over working for about a
week now and just can't seem to figure out what I am doing wrong.  I have
followed the instructions on the ultramonkey site foe the streamline high
availability and load-balancing.  Everything seemed to go well, except I can
not get ldirectord to start.  Here is my configuration:
Two servers running CentOS 4.0.  I have Apache installed on both machines
and have created a hidden file at the web root called .check with the word
alive in it.  If I http://realserver/.check it comes back with alive.

My ldirectord.cf file looks like this:
# Global Directives
checktimeout=3
checkinterval=1
fallback=127.0.0.1:80
autoreload=yes
logfile="/var/log/ldirectord.log"
logfile="local0"
quiescent=yes

virtual=10.90.2.194:80
        real=10.90.2.69:80 gate 
        real=10.90.2.116:80 gate
        fallback=127.0.0.1:80 gate
        service=http
        request=".check"
        receive="alive"
        virtualhost=oailcwbcl1.ssfhs.org
        scheduler=rr
        persistent=600
        netmask=255.255.255.255
        protocol=tcp
        checktype=negotiate

When I try to start in debug mode his is the results:
[root@oailxwbts2 ~]# ldirectord -d  /etc/ha.d/ldirectord.cf
DEBUG2: Running exec(/usr/sbin/ldirectord -d /etc/ha.d/ldirectord.cf)
Running exec(/usr/sbin/ldirectord -d /etc/ha.d/ldirectord.cf)
DEBUG2: Usage ldirectord [-d] [configfile]
{start|stop|restart|try-restart|reload|force-reload|status}
Type ldirectord -h for more information
Usage ldirectord [-d] [configfile]
{start|stop|restart|try-restart|reload|force-reload|status}
Type ldirectord -h for more information
DEBUG2: Exiting with exit_status 1: Initialisation Error
Exiting with exit_status 1: Initialisation Error

This is the contents of my log file:
[Wed May 18 13:34:46 2005|] Usage ldirectord [-d] [configfile]
{start|stop|restart|try-restart|reload|force-reload|status}
Type ldirectord -h for more information
[Wed May 18 13:34:46 2005|] Exiting with exit_status 1: Initialisation Error
[Thu May 19 09:24:55 2005|ldirectord] Usage ldirectord [-d] [configfile]
{start|stop|restart|try-restart|reload|force-reload|status}
Type ldirectord -h for more information
[Thu May 19 09:24:55 2005|ldirectord] Exiting with exit_status 1:
Initialisation Error
[Thu May 19 10:43:19 2005|] Usage ldirectord [-d] [configfile]
{start|stop|restart|try-restart|reload|force-reload|status}
Type ldirectord -h for more information
[Thu May 19 10:43:19 2005|] Exiting with exit_status 1: Initialisation Error

When I type IPVSADM I get this result
[root@oailxwbts2 ~]# ipvsadm
IP Virtual Server version 1.2.0 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn

I have been reading through the archive and googleing on ldirectord and
ldirectord.cf most of the morning and really haven't found anything that
point me to a cure.  If I change my haresources to load httpd instead of
ldirectord::ldirectord.cf fail-over works fine between my two servers using
the virtual name.  I'm sure I'm missing something.  Can anyone point me in
the right direction?

Thanks,


> Michael Deputy
Senior Systems Engineer
Alverno Information Services
317-532-7800 x6287
Michael.Deputy@xxxxxxxxx
http://www.alverno.org


____________________________________________________________________________
__________________________________ 
The information contained in this email and any accompanying documents is
intended for the sole use of the recipient to whom it is addressed, and may
contain information that is privileged, confidential, and prohibited from
disclosure under applicable law. If you are not the intended recipient, or
authorized to receive this on behalf of the recipient, you are hereby
notified that any review, use, disclosure, copying, or distribution is
prohibited. If you are not the intended recipient(s), please contact the
sender by e-mail and destroy all copies of the original message. Thank you.

<Prev in Thread] Current Thread [Next in Thread>