]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
Add an ifconfig carp option that enables users to set
authorremko <remko@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 4 Mar 2012 10:37:26 +0000 (10:37 +0000)
committerremko <remko@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 4 Mar 2012 10:37:26 +0000 (10:37 +0000)
commitf35a6af71a3510cda17dbf0ca6e12f5b4dab7100
tree46e257d048f7a68b78673539d5f9c12745c69a08
parentcf05755403e2628985c26ed8b8efaec200b0f0c0
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
MFC after: 1 weeks

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