> -----Original Message-----
> From: [email protected] [mailto:lvs-users-
> [email protected]] On Behalf Of
> [email protected]
> Sent: Thursday, December 17, 2009 10:22 AM
> To: [email protected]
> Subject: Re: [lvs-users] LVS Sync in Ldirectord
> 
> I'm using ldirectord to load LVS modules rather than the ipvsadm init
> script. Man ipvsadm says you need to start the ipvsadm sync daemon
> using --start-daemon state and --stop-daemon. As ldirectord is doing
> the loading / unloading of ipvsadm rules then I think the ldirectord
> script itself needs to support ipvsadm daemon sync states?
> 
> Regards
> Darren
> 

Hey,

I'm using keepalived, which has built-in support for LVS syncing, but I still 
choose to load the modules manually. Simply put commands like these in your 
rc.local, and the syncing works. I like doing it this way because it makes it 
where I can stop keepalived, the ip addresses failover, but yet the connection 
state table is still being synced for when I need to failback.

PRIMARY:
/sbin/ipvsadm --start-daemon master --syncid 101 # startup master
/sbin/ipvsadm --start-daemon backup --syncid 201 # startup backup

BACKUP:
/sbin/ipvsadm --start-daemon master --syncid 201 # startup master
/sbin/ipvsadm --start-daemon backup --syncid 101 # startup backup

Jason Faulkner
Linux Engineer, Rackspace Email & Apps
[email protected]


_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - [email protected]
Send requests to [email protected]
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

Reply via email to