LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: ldirectord not adding new realservers

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: ldirectord not adding new realservers
From: "Sebastian Vieira" <sebvieira@xxxxxxxxx>
Date: Wed, 13 Dec 2006 14:14:19 +0100
Also, removing a server from ldirectord.cf (commenting the RS out) didn't
work:

Dec 13 13:55:21 rpzlvs05 ldirectord[14633]: Configuration file
'/etc/ha.d/ldirectord.cf' has changed on disk
Dec 13 13:55:21 rpzlvs05 ldirectord[14633]:  - reread new configuration
Dec 13 13:55:21 rpzlvs05 ldirectord[14633]: system(/sbin/ipvsadm -e
192.168.14.200:23 -r 192.168.14.20:23  -w ) failed:
Dec 13 13:55:21 rpzlvs05 ldirectord[14633]: Restored real server:
192.168.14.20:23 (192.168.14.200:23) (Weight set to )
Dec 13 13:55:21 rpzlvs05 ldirectord[14633]: emailalert: [rpzlvs05] Restored
real server: 192.168.14.20:23 (192.168.14.200:23)

Nor did things work ok when i changed the weight of one server from 1 to 0.


Strange ...


Sebastian

On 12/13/06, Sebastian Vieira <sebvieira@xxxxxxxxx> wrote:

Hi,

In ldirectord's (1.77.2.87) ldirectord.cf i have specified the option
'autoreload=yes' so all changes to this file will be implemented immediately
in the lvs table. The file had only 1 realserver and i wanted to add more.
However when i added the other realservers i got a nice emailreport (sent by
ldirectord) but it didn't work out the way i hoped. See this piece of log:

Dec 13 12:56:28 rpzlvs05 ldirectord[1196]: Configuration file
'/etc/ha.d/ldirectord.cf' has changed on disk
Dec 13 12:56:28 rpzlvs05 ldirectord[1196]:  - reread new configuration
Dec 13 12:56:29 rpzlvs05 ldirectord[1196]: system(/sbin/ipvsadm -e
192.168.14.200:23 -r 192.168.14.13:23  -w ) failed:
Dec 13 12:56:29 rpzlvs05 ldirectord[1196]: Restored real server:
192.168.14.13:23 (192.168.14.200:23) (Weight set to )
Dec 13 12:56:29 rpzlvs05 ldirectord[1196]: emailalert: [rpzlvs05] Restored
real server: 192.168.14.13:23 (192.168.14.200:23) (Weight set to )

It does this for all the realservers, and despite what it says in the log,
i most definately have specified a weight (1). `ipvsadm -l` lists just the
one realserver that i had, the other ones aren't being listed.

Help, anyone?


kind regards,

Sebastian


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