Installation guide
• /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.
Important
The /etc/sysctl.conf and /etc/sysconfig/iptables files do not change
when you configure LVS using the Piranha Configuration Tool.
7.1. Synchronizing lvs.cf
Anytime the LVS configuration file, /etc/sysconfig/ha/lvs.cf, is created or updated, you
must copy it to the backup LVS router node.
Warning
Both the active and backup LVS router nodes must have identical lvs.cf files.
Mismatched LVS configuration files between the LVS router nodes can prevent
failover.
The best way to do this is to use the scp command.
Important
To use scp the sshd must be running on the backup router, see Section 1,
“Configuring Services on the LVS Routers” for details on how to properly
configure the necessary services on the LVS routers.
Issue the following command as the root user from the primary LVS router to sync the lvs.cf
files between the router nodes:
scp /etc/sysconfig/ha/lvs.cf n.n.n.n:/etc/sysconfig/ha/lvs.cf
In the command, replace n.n.n.n with the real IP address of the backup LVS router.
7.2. Synchronizing sysctl
The sysctl file is only modified once in most situations. This file is read at boot time and tells
the kernel to turn on packet forwarding.
Chapter 4. Configuring the LVS Routers with Piranha Configuration Tool
54