proc-net-compat: Stub out on non-Linux.
[sliver-openvswitch.git] / vswitchd / ovs-vswitchd.8.in
1 .\" -*- nroff -*-
2 .de IQ
3 .  br
4 .  ns
5 .  IP "\\$1"
6 ..
7 .TH ovs\-vswitchd 8 "June 2009" "Open vSwitch" "Open vSwitch Manual"
8 .ds PN ovs\-vswitchd
9 .
10 .SH NAME
11 ovs\-vswitchd \- Open vSwitch daemon
12 .
13 .SH SYNOPSIS
14 .B ovs\-vswitchd
15 \fIdatabase\fR
16 .
17 .SH DESCRIPTION
18 A daemon that manages and controls any number of Open vSwitch switches 
19 on the local machine.
20 .PP
21 The mandatory \fIdatabase\fR argument specifies the
22 \fBovsdb\-server\fR from which \fBovs\-vswitchd\fR's configuration
23 should be retrieved.  It takes one of the following forms:
24 .so ovsdb/remote-active.man
25 .so ovsdb/remote-passive.man
26 .PP
27 \fBovs\-vswitchd\fR retrieves its configuration from \fIdatabase\fR at
28 startup.  It sets up Open vSwitch datapaths and then operates
29 switching across each bridge described in its configuration files.  As
30 the database changes, \fBovs\-vswitchd\fR automatically updates its
31 configuration to match.
32 .PP
33 Upon receipt of a SIGHUP signal, \fBovs\-vswitchd\fR reopens its log
34 file, if one was specified on the command line.
35 .PP
36 \fBovs\-vswitchd\fR switches may be configured with any of the following 
37 features:
38 .
39 .IP \(bu
40 L2 switching with MAC learning.
41 .
42 .IP \(bu
43 NIC bonding with automatic fail-over and source MAC-based TX load
44 balancing ("SLB").
45 .
46 .IP \(bu
47 802.1Q VLAN support.
48 .
49 .IP \(bu
50 Port mirroring, with optional VLAN tagging.
51 .
52 .IP \(bu
53 NetFlow v5 flow logging.
54 .
55 .IP \(bu
56 sFlow(R) monitoring.
57 .
58 .IP \(bu
59 Connectivity to an external OpenFlow controller, such as NOX.
60 .
61 .PP
62 Only a single instance of \fBovs\-vswitchd\fR is intended to run at a time.
63 A single \fBovs\-vswitchd\fR can manage any number of switch instances, up
64 to the maximum number of supported Open vSwitch datapaths.
65 .PP
66 \fBovs\-vswitchd\fR does all the necessary management of Open vSwitch datapaths
67 itself.  Thus, external tools, such \fBovs\-dpctl\fR(8), are not needed for
68 managing datapaths in conjunction with \fBovs\-vswitchd\fR, and their use
69 to modify datapaths when \fBovs\-vswitchd\fR is running can interfere with
70 its operation.  (\fBovs\-dpctl\fR may still be useful for diagnostics.)
71 .PP
72 An Open vSwitch datapath kernel module must be loaded for \fBovs\-vswitchd\fR
73 to be useful.  Please refer to the \fBINSTALL.Linux\fR file included in the
74 Open vSwitch distribution for instructions on how to build and load
75 the Open vSwitch kernel module.
76 .PP
77 .SH OPTIONS
78 .IP "\fB--mlockall\fR"
79 Causes \fBovs\-vswitchd\fR to call the \fBmlockall()\fR function, to
80 attempt to lock all of its process memory into physical RAM,
81 preventing the kernel from paging any of its memory to disk.  This
82 helps to avoid networking interruptions due to system memory pressure.
83 .IP
84 Some systems do not support \fBmlockall()\fR at all, and other systems
85 only allow privileged users, such as the superuser, to use it.
86 \fBovs\-vswitchd\fR emits a log message if \fBmlockall()\fR is
87 unavailable or unsuccessful.
88 .
89 .IP "\fB--fake-proc-net\fR"
90 Causes \fBovs\-vswitchd\fR to simulate some files in \fB/proc/net/vlan\fR
91 and \fB/proc/net/bonding\fR that some legacy software expects to
92 exist.  This option should only be used if such legacy software is
93 actually in use.  It requires the \fBbrcompat_mod.ko\fR kernel module
94 to be loaded.
95 .IP
96 On non-Linux hosts, this option is accepted but has no effect.
97 .
98 .so lib/daemon.man
99 .SS "Public Key Infrastructure Options"
100 .so lib/ssl.man
101 .so lib/ssl-bootstrap.man
102 .so lib/vlog.man
103 .so lib/common.man
104 .so lib/leak-checker.man
105 .
106 .SH "RUNTIME MANAGEMENT COMMANDS"
107 \fBovs\-appctl\fR(8) can send commands to a running
108 \fBovs\-vswitchd\fR process.  The currently supported commands are
109 described below.  The command descriptions assume an understanding of
110 how to configure Open vSwitch.
111 .SS "GENERAL COMMANDS"
112 .IP "\fBexit\fR"
113 Causes \fBovs\-vswitchd\fR to gracefully terminate.
114 .SS "BRIDGE COMMANDS"
115 These commands manage bridges.
116 .IP "\fBfdb/show\fR \fIbridge\fR"
117 Lists each MAC address/VLAN pair learned by the specified \fIbridge\fR,
118 along with the port on which it was learned and the age of the entry,
119 in seconds.
120 .
121 .IP "\fBbridge/dump-flows\fR \fIbridge\fR"
122 Lists all flows in \fIbridge\fR, including those normally hidden to
123 commands such as \fBovs-ofctl dump-flows\fR.  Flows set up by mechanisms
124 such as in-band control and fail-open are hidden from the controller
125 since it is not allowed to modify or override them.
126 .SS "BOND COMMANDS"
127 These commands manage bonded ports on an Open vSwitch's bridges.  To
128 understand some of these commands, it is important to understand a
129 detail of the bonding implementation called ``MAC hashing.''  Instead
130 of directly assigning Ethernet source addresses to slaves, the bonding
131 implementation computes a function that maps an 48-bit Ethernet source
132 addresses into an 8-bit value (a ``MAC hash'' value).  All of the
133 Ethernet addresses that map to a single 8-bit value are then assigned
134 to a single slave.
135 .IP "\fBbond/list\fR"
136 Lists all of the bonds, and their slaves, on each bridge.
137 .
138 .IP "\fBbond/show\fR \fIport\fR"
139 Lists all of the bond-specific information about the given bonded
140 \fIport\fR: updelay, downdelay, time until the next rebalance.  Also
141 lists information about each slave: whether it is enabled or disabled,
142 the time to completion of an updelay or downdelay if one is in
143 progress, whether it is the active slave, the MAC hashes assigned to
144 the slave, and the MAC learning table entries that hash to each MAC.
145 .IP "\fBbond/migrate\fR \fIport\fR \fIhash\fR \fIslave\fR"
146 Assigns a given MAC hash to a new slave.  \fIport\fR specifies the
147 bond port, \fIhash\fR either the MAC hash to be migrated (as a decimal
148 number between 0 and 255) or an Ethernet address to be hashed, and
149 \fIslave\fR the new slave to be assigned.
150 .IP
151 The reassignment is not permanent: rebalancing or fail-over will
152 cause the MAC hash to be shifted to a new slave in the usual
153 manner.
154 .IP
155 A MAC hash cannot be migrated to a disabled slave.
156 .IP "\fBbond/set-active-slave\fR \fIport\fR \fIslave\fR"
157 Sets \fIslave\fR as the active slave on \fIport\fR.  \fIslave\fR must
158 currently be enabled.
159 .IP
160 The setting is not permanent: a new active slave will be selected
161 if \fIslave\fR becomes disabled.
162 .IP "\fBbond/enable-slave\fR \fIport\fR \fIslave\fR"
163 .IQ "\fBbond/disable-slave\fR \fIport\fR \fIslave\fR"
164 Enables (or disables) \fIslave\fR on the given bond \fIport\fR, skipping any
165 updelay (or downdelay).
166 .IP
167 This setting is not permanent: it persists only until the carrier
168 status of \fIslave\fR changes.
169 .IP "\fBbond/hash\fR \fImac\fR"
170 Returns the hash value which would be used for \fImac\fR.
171 .
172 .so lib/vlog-unixctl.man
173 .SH "SEE ALSO"
174 .BR ovs\-appctl (8),
175 .BR ovs\-brcompatd (8),
176 .BR ovsdb\-server (1),
177 \fBINSTALL.Linux\fR in the Open vSwitch distribution.