Installation guide
4.7.3. Synchronizing Network Packet Filtering Rules
If you are using iptables, you will need to synchronize the appropriate configuration file on the backup
LVS router.
If you alter the any network packet filter rules, enter the following command as root from the primary LVS
router:
scp /etc/sysconfig/iptables n.n.n.n:/etc/sysconfig/
In the command, replace n.n.n.n with the real IP address of the backup LVS router.
Next either open an ssh session to the backup router or log into the machine as root and type the
following command:
/sbin/service iptables restart
Once you have copied these files over to the backup router and started the appropriate services (see
Section 2.1, “Configuring Services on the LVS Routers” for more on this topic) you are ready to start LVS.
4.8. Starting LVS
To start LVS, it is best to have two root terminals open simultaneously or two simultaneous root open
ssh sessions to the primary LVS router.
In one terminal, watch the kernel log messages with the command:
tail -f /var/log/m essages
Then start LVS by typing the following command into the other terminal:
/sbin/service pulse start
Follow the progress of the pulse service's startup in the terminal with the kernel log messages. When
you see the following output, the pulse daemon has started properly:
gratuitous lvs arps finished
To stop watching /var/log/m essages, type Ctrl+c.
From this point on, the primary LVS router is also the active LVS router. While you can make requests to
LVS at this point, you should start the backup LVS router before putting LVS into service. To do this,
simply repeat the process described above on the backup LVS router node.
After completing this final step, LVS will be up and running.
Red Hat Enterprise Linux 4 Virtual Server Administration
50