lvs-users Digest, Vol 41, Issue 28

Jiang bearie66 at gmail.com
Sun Jun 25 08:18:17 BST 2006


Hi Todd,

Attached is the ldirectord debug log caputured by running it from /

*****************************************************************
[root at ctestsrv2 /]# 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: 16125
Starting Linux Director v1.77.2.32 with pid: 16125
DEBUG2: Running system(/sbin/ipvsadm -E -t 10.226.193.250:80 -s rr )
Running system(/sbin/ipvsadm -E -t 10.226.193.250:80 -s rr )
DEBUG2: Changed virtual server: 10.226.193.250:80
Changed virtual server: 10.226.193.250:80
DEBUG2: Running system(/sbin/ipvsadm -E -t 10.226.193.230:8070 -s rr )
Running system(/sbin/ipvsadm -E -t 10.226.193.230:8070 -s rr )
DEBUG2: Changed virtual server: 10.226.193.230:8070
Changed virtual server: 10.226.193.230:8070
DEBUG2: Enabled server=10.226.193.189
DEBUG2: Enabled server=10.226.193.190
DEBUG2: Disabled server=10.226.193.189
DEBUG2: Running system(/sbin/ipvsadm -e -t 10.226.193.230:8070 -r
10.226.193.190:8070 -g -w 0)
Running system(/sbin/ipvsadm -e -t 10.226.193.230:8070 -r
10.226.193.190:8070 -g -w 0)
DEBUG2: Quiescent real server: 10.226.193.190:8070 ( x
10.226.193.230:8070) (Weight set to 0)
Quiescent real server: 10.226.193.190:8070 ( x 10.226.193.230:8070)
(Weight set to 0)
DEBUG2: Disabled server=10.226.193.190
DEBUG2: Checking negotiate: real
server=negotiate:http:tcp:10.226.193.189:80:::\/ldirector\.html:lb
(virtual=tcp:10.226.193.250:80)
DEBUG2: check_http: url="http://10.226.193.189:80/ldirector.html"
virtualhost="10.226.193.189"
LWP::UserAgent::new: ()
LWP::UserAgent::request: ()
LWP::UserAgent::send_request: GET http://10.226.193.189:80/ldirector.html
LWP::UserAgent::_need_proxy: Not proxied
LWP::Protocol::http::request: ()
LWP::Protocol::collect: read 3 bytes
LWP::UserAgent::request: Simple response: OK
DEBUG2: Enabled server=10.226.193.189
DEBUG2: check_http: http://10.226.193.189:80/ldirector.html is up
DEBUG2: Checking negotiate: real
server=negotiate:http:tcp:10.226.193.190:80:::\/ldirector\.html:lb
(virtual=tcp:10.226.193.250:80)
DEBUG2: check_http: url="http://10.226.193.190:80/ldirector.html"
virtualhost="10.226.193.190"
LWP::UserAgent::new: ()
LWP::UserAgent::request: ()
LWP::UserAgent::send_request: GET http://10.226.193.190:80/ldirector.html
LWP::UserAgent::_need_proxy: Not proxied
LWP::Protocol::http::request: ()
LWP::Protocol::collect: read 3 bytes
LWP::UserAgent::request: Simple response: OK
DEBUG2: Enabled server=10.226.193.190
DEBUG2: check_http: http://10.226.193.190:80/ldirector.html is up
DEBUG2: Checking connect: real
server=connect:tcp:10.226.193.189:8070:::\/:
(virtual=tcp:10.226.193.230:8070)
DEBUG2: Disabled server=10.226.193.189
DEBUG3: Deactivated service 10.226.193.189:8070: Died at
/usr/sbin/ldirectord line 2000.
DEBUG2: Checking connect: real
server=connect:tcp:10.226.193.190:8070:::\/:
(virtual=tcp:10.226.193.230:8070)
DEBUG2: Disabled server=10.226.193.190
DEBUG3: Deactivated service 10.226.193.190:8070: Died at
/usr/sbin/ldirectord line 2000.
Alarm clock
*****************************************************************

But again, ldirectord was dead immediately. Any ideas?

- Jiang -


On 6/24/06, lvs-users-request at linuxvirtualserver.org
<lvs-users-request at linuxvirtualserver.org> wrote:
> Send lvs-users mailing list submissions to
>         lvs-users at LinuxVirtualServer.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://www.in-addr.de/mailman/listinfo/lvs-users
> or, via email, send a message with subject or body 'help' to
>         lvs-users-request at LinuxVirtualServer.org
>
> You can reach the person managing the list at
>         lvs-users-owner at LinuxVirtualServer.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of lvs-users digest..."
>
>
> Today's Topics:
>
>    1. Re: ldirecotord failed to restart after changing
>       checkinterval! pls        help!! urgent!!!! (Todd Lyons)
>
>
>
> ---------- Forwarded message ----------
> From: Todd Lyons <tlyons at ivenue.com>
> To: lvs-users at LinuxVirtualServer.org
> Date: Fri, 23 Jun 2006 09:48:32 -0700
> Subject: Re: ldirecotord failed to restart after changing checkinterval! pls help!! urgent!!!!
> 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 at 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
>
>
> _______________________________________________
> lvs-users mailing list
> lvs-users at LinuxVirtualServer.org
> http://www.in-addr.de/mailman/listinfo/lvs-users
>
>
>


--

Search lvs-users Archives
Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort

More information about the lvs-users mailing list