]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r232486
authorremko <remko@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 23 Nov 2012 21:27:26 +0000 (21:27 +0000)
committerremko <remko@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 23 Nov 2012 21:27:26 +0000 (21:27 +0000)
commitf90168eacf4d0a469d9cdb12f7425f5156e52102
tree9b95fe018e4b2ec7c06377e2a59cfd62c128463f
parent2bded8a271e0ba89d48e7cec06881e7d374e589b
MFC r232486

Add an ifconfig carp option that enables users to set
the state of the carp cluster.

This is a direct commit to stable/9 because -HEAD's
code is very different. I discussed this with Gleb
and the reason for this is that since we do not
touch the kernel itself and are not adding very
weird or confusing things, we can commit this to the
stable branch directly.

The options 'master' and 'backup' are now available,
which enables the administrator to force a node into
the backup or master state on the cluster. Ofcourse
preempt has to be disabled otherwise the master node
will become master again.

One can do that with:

sysctl net.inet.carp.preempt=0

After that one can schedule maintenance on the node
normally running as the master and such.

PR:  100956
Discussed with: glebius

git-svn-id: svn://svn.freebsd.org/base/stable/8@243466 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sbin/ifconfig/ifcarp.c
sbin/ifconfig/ifconfig.8