[CentOS] Re: Using CentOS 3 in and LVS?
barton.schaefer at gmail.com
Sat Sep 16 14:56:57 UTC 2006
On 9/15/06, jim bartus <jim.bartus at gmail.com> wrote:
> Btw, are you sure you even want to bother with DR?
We've got an existing server cluster using it and are only trying to
add new machines; changing the setup for the machines already in the
LVS is not really an option.
We found this: http://www.ultramonkey.org/3/topologies/sl-ha-lb-eg.html
And adapted it as follows:
# yum install arptables_jf (if necessary)
# /etc/rc.d/init.d/arptables_jf stop
Flushing all chains: [ OK ]
Removing user defined chains: [ OK ]
Resetting built-in chains to the default ACCEPT policy: [ OK ]
# /sbin/arptables -A IN -d [virtual_ip] -j DROP
# /sbin/arptables -A OUT -j mangle -o eth0 -s [virtual_ip]
# /etc/rc.d/init.d/arptables_jf save
Saving current rules to /etc/sysconfig/arptables: [ OK ]
# /sbin/chkconfig --level 2345 arptables_jf on
# /etc/rc.d/init.d/arptables_jf start
Flushing all current rules and user defined chains: [ OK ]
Clearing all current rules and user defined chains: [ OK ]
Applying arptables firewall rules: [ OK ]
Then do "arptables -L -v -n" to verify that the rules were installed correctly.
More information about the CentOS