LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: ldirecotord failed to restart after changing checkinterval! pls help

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: ldirecotord failed to restart after changing checkinterval! pls help!! urgent!!!!
From: Todd Lyons <tlyons@xxxxxxxxxx>
Date: Fri, 23 Jun 2006 09:48:32 -0700
On Fri, Jun 23, 2006 at 08:21:23PM +0800, Jiang wrote:

>Hi,
>
>I tried to increase the check interval from 1s to 10s, but after that,
>ldirecitord daemon disappeared, and nothing has been recorded in log
>file. attached is the record I run it in debug mode.
>
>***********************************************************
>[root@ctestsrv1 init.d]# ldirectord -d /etc/ha.d/ldirectord.cf start
>DEBUG2: Running exec(/usr/sbin/ldirectord -d /etc/ha.d/ldirectord.cf start)
>Running exec(/usr/sbin/ldirectord -d /etc/ha.d/ldirectord.cf start)
>DEBUG2: Starting Linux Director v1.77.2.32 with pid: 10790
>Starting Linux Director v1.77.2.32 with pid: 10790
>DEBUG2: Running system(./ipvsadm -A -t 10.226.193.250:80 -s rr )
>Running system(./ipvsadm -A -t 10.226.193.250:80 -s rr )
>Usage: ipvsadm
>         {start|stop|restart|status|panic|save|reload|reload-force}

It looks like it's running an ipvsadm init script in /etc/init.d instead
of the ipvsadm binary, usually in /sbin.

>Any ideas? Many thanks!!!!!

Don't be in /etc/init.d when running in debug mode.  Here's the relevant
code from ldirectord:

   if ($DEBUG>0 and -f "./ipvsadm") {
        $IPVSADM="./ipvsadm";

The above means that if it finds an ipvsadm in the current directory, it
will use that instead of the normal locations that it would look for it,
as shown below:

   } else {
        if (-x "/sbin/ipvsadm") {
                $IPVSADM="/sbin/ipvsadm";
        } elsif (-x "/usr/sbin/ipvsadm") {
                $IPVSADM="/usr/sbin/ipvsadm";
        } else {
                die "Can not find ipvsadm";
        }
   }

-- 
Regards...              Todd
we're off on the usual strange tangents.  next will be whether
it is ethical to walk in your neighbor's open house if they're
running ipv6:-).                                  --Randy Bush
Linux kernel 2.6.12-22mdksmp   2 users,  load average: 0.00, 0.04, 0.07

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