summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarck <marck@FreeBSD.org>2014-05-29 21:02:57 +0000
committermarck <marck@FreeBSD.org>2014-05-29 21:02:57 +0000
commit393fef9e249af24add064cdafb84b546ef5a40b7 (patch)
tree3a1a0899460a2ddeff9ae2317cdfb03435e19651
parent85b2ab2f9de4eaeb971e79499a457b056b06c505 (diff)
downloadFreeBSD-src-393fef9e249af24add064cdafb84b546ef5a40b7.zip
FreeBSD-src-393fef9e249af24add064cdafb84b546ef5a40b7.tar.gz
Change examples to have master skew above 0 to have ability to overwrite this
from the slave (for example, when master is failing on disk IO and could not be logged into or execute cronjob). Commented out examples changed too to simplify future merging. Idea by: kaa@zvuki.ru Discussed with: glebius MFC after: 1 week
-rw-r--r--share/man/man4/carp.419
1 files changed, 10 insertions, 9 deletions
diff --git a/share/man/man4/carp.4 b/share/man/man4/carp.4
index 84e87d6..ca52ba2 100644
--- a/share/man/man4/carp.4
+++ b/share/man/man4/carp.4
@@ -210,17 +210,18 @@ Enable it on both hosts A and B:
.Pp
Assume that host A is the preferred master and we are running the
192.168.1.0/24 prefix on em0 and 192.168.2.0/24 on em1.
-This is the setup for host A:
+This is the setup for host A (advskew is above 0 so it could be overwritten
+in the emergency situation from the other host):
.Bd -literal -offset indent
-ifconfig em0 vhid 1 pass mekmitasdigoat 192.168.1.1/24
-ifconfig em1 vhid 2 pass mekmitasdigoat 192.168.2.1/24
+ifconfig em0 vhid 1 advskew 100 pass mekmitasdigoat 192.168.1.1/24
+ifconfig em1 vhid 2 advskew 100 pass mekmitasdigoat 192.168.2.1/24
.Ed
.Pp
The setup for host B is identical, but it has a higher
.Cm advskew :
.Bd -literal -offset indent
-ifconfig em0 vhid 1 advskew 100 pass mekmitasdigoat 192.168.1.1/24
-ifconfig em1 vhid 2 advskew 100 pass mekmitasdigoat 192.168.2.1/24
+ifconfig em0 vhid 1 advskew 200 pass mekmitasdigoat 192.168.1.1/24
+ifconfig em1 vhid 2 advskew 200 pass mekmitasdigoat 192.168.2.1/24
.Ed
.Pp
When one of the physical interfaces of host A fails,
@@ -246,9 +247,9 @@ preempt host A on both interfaces instead of just the failed one.
.\"out slightly less frequently.
.\".Bd -literal -offset indent
.\"ifconfig carp0 create
-.\"ifconfig carp0 vhid 1 pass mekmitasdigoat 192.168.1.10/24
+.\"ifconfig carp0 vhid 1 advskew 100 pass mekmitasdigoat 192.168.1.10/24
.\"ifconfig carp1 create
-.\"ifconfig carp1 vhid 2 advskew 100 pass mekmitasdigoat 192.168.1.10/24
+.\"ifconfig carp1 vhid 2 advskew 200 pass mekmitasdigoat 192.168.1.10/24
.\".Ed
.\".Pp
.\"The configuration for host B is identical, except the
@@ -256,9 +257,9 @@ preempt host A on both interfaces instead of just the failed one.
.\"is on virtual host 1 rather than virtual host 2.
.\".Bd -literal -offset indent
.\"ifconfig carp0 create
-.\"ifconfig carp0 vhid 1 advskew 100 pass mekmitasdigoat 192.168.1.10/24
+.\"ifconfig carp0 vhid 1 advskew 200 pass mekmitasdigoat 192.168.1.10/24
.\"ifconfig carp1 create
-.\"ifconfig carp1 vhid 2 pass mekmitasdigoat 192.168.1.10/24
+.\"ifconfig carp1 vhid 2 advskew 100 pass mekmitasdigoat 192.168.1.10/24
.\".Ed
.\".Pp
.\"Finally, the ARP balancing feature must be enabled on both hosts:
OpenPOWER on IntegriCloud