4.7. Synchronizing Configuration Files
/etc/sysconfig/ha/lvs.cf— the configuration file for the LVS routers.
/etc/sysctl— the configuration file that, among other things, turns on packet forwarding in the kernel.
/etc/sysconfig/iptables— If you are using firewall marks, you should synchronize one of these files based on which network packet filter you are using.
/etc/sysconfig/iptablesfiles do not change when you configure the Load Balancer Add-On using the Piranha Configuration Tool.
4.7.1. Synchronizing lvs.cf
/etc/sysconfig/ha/lvs.cf, is created or updated, you must copy it to the backup LVS router node.
lvs.cffiles. Mismatched LVS configuration files between the LVS router nodes can prevent failover.
sshdmust be running on the backup router, see Section 2.1, “Configuring Services on the LVS Router” for details on how to properly configure the necessary services on the LVS routers.
lvs.cffiles between the router nodes:
scp /etc/sysconfig/ha/lvs.cf n.n.n.n:/etc/sysconfig/ha/lvs.cf
4.7.2. Synchronizing sysctl
sysctlfile is only modified once in most situations. This file is read at boot time and tells the kernel to turn on packet forwarding.
4.7.3. Synchronizing Network Packet Filtering Rules
iptables, you will need to synchronize the appropriate configuration file on the backup LVS router.
scp /etc/sysconfig/iptables n.n.n.n:/etc/sysconfig/
sshsession to the backup router or log into the machine as root and type the following command:
/sbin/service iptables restart