| Summary: | Incorrect info in handbook for HAST/CARP | ||
|---|---|---|---|
| Product: | Documentation | Reporter: | matt.home |
| Component: | Books & Articles | Assignee: | freebsd-doc (Nobody) <doc> |
| Status: | Closed FIXED | ||
| Severity: | Affects Many People | CC: | allanjude, freebsd, glebius, jrm, pauamma, philipp, rootvg |
| Priority: | --- | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
| Bug Depends on: | |||
| Bug Blocks: | 263315 | ||
|
Description
matt.home
2014-08-14 18:45:38 UTC
Sorry, in the last line I meant 'man page' not file. The main issue in this PR is no longer relevant, since the problematic part of the handbook has been rewritten since the PR was opened. I believe it can/should be closed now. This PR still needs to be addressed. The confusion is the content this PR is talking about is the HAST section (now 18.14), not the CARP section of the handbook https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-hast.html#idp79156160 (In reply to Allan Jude from comment #3) Sorry, it is now section 17.14.2.1 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@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 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.
The problem in documentation still exists. (In reply to Allan Jude from comment #4) 18.15 now. I've posted a review that is addressing this: https://reviews.freebsd.org/D43948 A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/doc/commit/?id=bc3bc049f7e33c6e6a85c19cab03f79c95423b0f commit bc3bc049f7e33c6e6a85c19cab03f79c95423b0f Author: Chris Moerz <freebsd@ny-central.org> AuthorDate: 2024-03-15 19:19:47 +0000 Commit: Joseph Mingrone <jrm@FreeBSD.org> CommitDate: 2024-03-15 19:52:44 +0000 Handbook/Advanced Networking: Remove obsolete CARP content PR: 192663 Reviewed by: emaste, jrm, Pau Amma <pauamma@gundo.com> Differential Revision: https://reviews.freebsd.org/D43948 .../books/handbook/advanced-networking/_index.adoc | 85 +--------------------- 1 file changed, 1 insertion(+), 84 deletions(-) |