Summary: | carp MASTER/MASTER status when adding or removing carp IP addresses | ||
---|---|---|---|
Product: | Base System | Reporter: | Kajetan Staszkiewicz <vegeta> |
Component: | kern | Assignee: | freebsd-net (Nobody) <net> |
Status: | New --- | ||
Severity: | Affects Only Me | CC: | eugen, ozkan.kirik |
Priority: | --- | ||
Version: | 11.2-RELEASE | ||
Hardware: | Any | ||
OS: | Any |
Description
Kajetan Staszkiewicz
2019-02-28 12:27:54 UTC
It will be a good option. Have you tried setting sysctl net.inet.carp.demotion=240 before changing carp IP at backup and setting it back there after both master and backup configuraion changed? You would not need patching sources. While master and backup configuration is updating, HMACs are changing also. So that, incrementing net.inet.carp.demotion don't help. Both of master and backup, dismiss the recevied multicast messages because of different HMACs. By the way, MASTER/MASTER state occured. FreeBSD stable/12 also same. Playing with demotion configuration won't help, as there is no demotion happening. It's a MASTER/MASTER operation due to configuration difference. (In reply to Kajetan Staszkiewicz from comment #5) Right, but why do you need to apply configuration to both master and backup in parallel? Do it sequentially, first remove vhid from the backup, then reconfigure the master and, at last, re-add vhid to the backup. There are too many assigned IP addresses. It takes much time to remove/add ip addresses. # ifconfig | grep vhid\ | wc -l 1075 -- Is there a way for removing/adding bulk ip addresses? Such as prepare and then swap atomically ifconfig configuration like ipfw does (ipfw sets can be swapped atomically)? (In reply to Ozkan KIRIK from comment #7) I don't think there is a way for bulk replacing other than writing your own binary performing same syscalls as ifconfig binary does. Maybe new libifconfig would help, it exists in 12-STABLE and will present in upcoming 12.2-RELEASE. However, you still can process different vhid(s) in parallel but reconfigure master/backup of single vhid in sync. |