[Bug 192663] Incorrect info in handbook for carp on 10+
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Mar 31 08:09:33 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192663
Karl Sundström <rootvg at unix.pizza> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rootvg at unix.pizza
--- Comment #5 from Karl Sundström <rootvg at unix.pizza> ---
I stumbled upon this documentation error as well.
For instance, Hast documentation suggests:
notify 30 {
match "system" "IFNET";
match "subsystem" "carp0";
match "type" "LINK_UP";
action "/usr/local/sbin/carp-hast-switch master";
};
notify 30 {
match "system" "IFNET";
match "subsystem" "carp0";
match "type" "LINK_DOWN";
action "/usr/local/sbin/carp-hast-switch slave";
};
But, since you are not using pseudo-devices for CARP anymore, you hook it up to
an already existing device, such as em0, the correct example would then be (for
VHID 1 on em0):
notify 30 {
match "system" "CARP";
match "subsystem" "1 at em0";
match "type" "MASTER";
action "/opt/scripts/carp-hast-switch master";
};
notify 30 {
match "system" "CARP";
match "subsystem" "1 at em0";
match "type" "BACKUP";
action "/opt/scripts/carp-hast-switch slave";
};
devd.conf documentation has this as an example as well, but its not reflected
in the handbook.
It requires a bit more than just "If the systems are running FreeBSD 10 or
higher, replace carp0 with the name of the CARP-configured interface.", becuase
it uses CARP system now, instead of CARP as a subsystem.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-doc
mailing list