I inquired about this a while back. Ldirectord sets weight differently then
ipvsadm, so if you set it with ipvsadm them ldirectord will come behind you and
change it to what the config is. Based on help found here I use a script like
this to take a server offline. You should be able to tailor for your needs to
make a server come back also. The sed command is the important part:
echo "Config backed up"
/bin/cp /etc/ha.d/ldirectord.cf /etc/ha.d/ldirectord.cf.backup
/bin/sed 's/ real=10.37.2.9:25 masq 1/ real=10.37.2.9:25 masq 0/g' $
/bin/mv /etc/ha.d/ldirectord.cf.new /etc/ha.d/ldirectord.cf
echo "Now syncing with tbcsrv907"
/usr/bin/scp /etc/ha.d/ldirectord.cf tbcsrv907:/etc/ha.d/ldirectord.cf
echo "Spamone is Disabled"
-----Original Message-----
From: lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Robinson, Eric
Sent: Thursday, December 04, 2008 11:28 AM
To: LinuxVirtualServer.org users mailing list.
Subject: Re: [lvs-users] How to Tell If an RS Is Really Up
>you're asking if you can tell whether a command
>like `date` was run by a script or from the command line.
Yeah, I figured that out belatedly. I was just explaining the process
that lead me there.
So now I need to figure out why I can set my servers' weights to 0 and
they don't bounce back to 1 after the next healthcheck. Conversely they
do automatically get set from 1 to 0 if the service running on the RS
goes down.
--
Eric Robinson
Disclaimer - December 4, 2008
This email and any files transmitted with it are confidential and intended
solely for LinuxVirtualServer.org users mailing list.. If you are not the named
addressee you should not disseminate, distribute, copy or alter this email. Any
views or opinions presented in this email are solely those of the author and
might not represent those of . Warning: Although has taken reasonable
precautions to ensure no viruses are present in this email, the company cannot
accept responsibility for any loss or damage arising from the use of this email
or attachments.
This disclaimer was added by Policy Patrol: http://www.policypatrol.com/
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
|