Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Mar 2018 08:09:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-doc@FreeBSD.org
Subject:   [Bug 192663] Incorrect info in handbook for carp on 10+
Message-ID:  <bug-192663-9-Nqal6dkstz@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-192663-9@https.bugs.freebsd.org/bugzilla/>
References:  <bug-192663-9@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D192663

Karl Sundstr=C3=B6m <rootvg@unix.pizza> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rootvg@unix.pizza

--- Comment #5 from Karl Sundstr=C3=B6m <rootvg@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 u=
p 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@em0";
        match "type" "MASTER";
        action "/opt/scripts/carp-hast-switch master";
};

notify 30 {
        match "system" "CARP";
        match "subsystem" "1@em0";
        match "type" "BACKUP";
        action "/opt/scripts/carp-hast-switch slave";
};


devd.conf documentation has this as an example as well, but its not reflect=
ed
in the handbook.=20

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.", bec=
uase
it uses CARP system now, instead of CARP as a subsystem.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192663-9-Nqal6dkstz>