Piranha allows for ipvs sync daemon to be enabled, but does not allow user to specify sync daemon options. The sync daemon can be told which interface to use for multicast. From ipvsadm(8): --mcast-interface interface Specify the multicast interface that the sync master daemon sends outgoing multicasts through, or the sync backup daemon listens to for multicasts. Since we're already adding the the syncid option (BZ#717556), we should add option for mcast-address for to be complete.
Created attachment 563774 [details] Add option to specify sync daemon mcast interface. This patch adds the ability to specify the sync daemon mcast interface in lvs.cf config file. This parameter is used to tell the sync daemon to use to send/receive multicast messages. Use the lvs.cf option "syncd_iface" to specify the interface. This option is only used it the syncdaemon is enabled (syncdaemon = 1 in lvs.cf). The value of "syncd_iface" must be a valid interface and must not be prefixed with "/dev/" (eg. use "eth1" not "/dev/eth1"). This value specified is passed to ivpsadm via --mcast-interface when the sync daemon starts. The default value is "eth0".
Created attachment 563793 [details] Add sync daemon interface option to piranha web UI. This patch adds set the syncd_iface option via the piranha web ui. This option can be set in the "redundancy" tab of the piranha web ui. If the "Use sync daemon" checkbox is checked and "Sync interface" is empty, the sync interface box will get the default value ("eth0"). If the "Use sync daemon" checkbox is not checked, the "Sync interface" has no effect. The value entered into the "Sync interface" input box should appear as "sync_iface" in the lvs.cf file once the form has been submitted. Conversely, if the lvs.cf file has a value for "sync_iface", that value should be displayed in the "Sync interface" input but regardless of the "Use sync daemon" checkbox value.
Created attachment 563975 [details] Add information about sync_iface option to lvs.cf man page. This patch adds information about the new sync_iface option to the lvs.cf man page. Also add information about the syncdaemon option, which was missing from lvs.cf man page.
The correct option name as it appears in lvs.cf is "syncd_iface", not "sync_iface" as mentioned in the previous comments. Also, the input text box in the piranha web interface is labelled "Sync daemon interface", not "Sync interface".
Fixed in piranha-0.8.5-13.el6.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0891.html