此内容没有您所选择的语言版本。

4.7. Synchronizing Configuration Files


After configuring the primary LVS router, there are several configuration files that must be copied to the backup LVS router before you start the Load Balancer Add-On.
These files include:
  • /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.

Important

The /etc/sysctl.conf and /etc/sysconfig/iptables files do not change when you configure the Load Balancer Add-On using the Piranha Configuration Tool.

4.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 2.1, “Configuring Services on the LVS Router” 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.
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.