1 <?xml version="1.0" encoding="iso-8859-1"?>
3 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
4 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
6 <refentry id="ctdbd.conf.5">
9 <refentrytitle>ctdbd.conf</refentrytitle>
10 <manvolnum>5</manvolnum>
11 <refmiscinfo class="source">ctdb</refmiscinfo>
12 <refmiscinfo class="manual">CTDB - clustered TDB database</refmiscinfo>
16 <refname>ctdbd.conf</refname>
17 <refpurpose>CTDB daemon configuration file</refpurpose>
21 <title>DESCRIPTION</title>
24 This file contains CTDB configuration variables that are affect
25 the operation of CTDB. The default location of this file is
26 <filename>/usr/local/etc/ctdb/ctdbd.conf</filename>.
30 This file is a shell script (see
31 <citerefentry><refentrytitle>sh</refentrytitle>
32 <manvolnum>1</manvolnum></citerefentry>) but is usually limited
33 to simple variable assignments and shell-style comments.
37 CTDB configuration variables are grouped into several categories below.
41 Variables defined in this document can also be set in a
42 distribution-specific configuration file such as
43 <filename>/etc/sysconfig/ctdb</filename> (Red Hat) or
44 <filename>/etc/default/ctdb</filename> (Debian). However, these
45 files should be reserved for variables used by the initscript.
46 A historical alternative is
47 <filename>/usr/local/etc/ctdb/sysconfig/ctdb</filename> - this is
59 Variables in this section are processed by
60 <citerefentry><refentrytitle>ctdbd_wrapper</refentrytitle>
61 <manvolnum>1</manvolnum></citerefentry> and are converted into
62 command-line arguments to
63 <citerefentry><refentrytitle>ctdbd</refentrytitle>
64 <manvolnum>1</manvolnum></citerefentry>.
68 Many of these variables are also used by event scripts.
74 <term>CTDB_CAPABILITY_LMASTER=yes|no</term>
83 <term>CTDB_CAPABILITY_RECMASTER=yes|no</term>
92 <term>CTDB_DBDIR=<parameter>DIRECTORY</parameter></term>
95 Defaults to <filename>/usr/local/var/lib/ctdb/volatile</filename>.
101 <term>CTDB_DBDIR_PERSISTENT=<parameter>DIRECTORY</parameter></term>
104 Defaults to <filename>/usr/local/var/lib/ctdb/persistent</filename>.
110 <term>CTDB_DBDIR_STATE=<parameter>DIRECTORY</parameter></term>
113 Defaults to <filename>/usr/local/var/lib/ctdb/state</filename>.
119 <term>CTDB_DEBUG_HUNG_SCRIPT=<parameter>FILENAME</parameter></term>
122 FILENAME is a script to run to log debug information when
123 an event script times out.
126 Default is <filename>/usr/local/etc/ctdb/debug-hung-script.sh</filename>.
132 <term>CTDB_DEBUG_LOCKS=<parameter>FILENAME</parameter></term>
135 FILENAME is a script to run to log debug information when
136 an CTDB fails to freeze databases during recovery.
140 <filename>/usr/local/etc/ctdb/debug_locks.sh</filename>.
146 <term>CTDB_DEBUGLEVEL=<parameter>DEBUGLEVEL</parameter></term>
155 <term>CTDB_LOGGING=<parameter>STRING</parameter></term>
158 STRING specifies where ctdbd will write its log. The
160 file:<filename>/usr/local/var/log/log.ctdb</filename>.
167 <term>file:<parameter>FILENAME</parameter></term>
170 FILENAME where ctdbd will write its log. This is usually
171 <filename>/usr/local/var/log/log.ctdb</filename>.
176 <term>syslog<optional>:<parameter>METHOD</parameter></optional></term>
179 CTDB will log to syslog. By default this will use
183 If METHOD is specified then it specifies an
184 extension that causes logging to be done in a
185 non-blocking fashion. This can be useful under
186 heavy loads that might cause the syslog daemon to
187 dequeue messages too slowly, which would otherwise
188 cause CTDB to block when logging. METHOD must be
193 <term>nonblocking</term>
196 CTDB will log to syslog via
197 <filename>/dev/log</filename> in non-blocking
206 CTDB will log to syslog via UDP to
207 localhost:514. The syslog daemon must be
208 configured to listen on (at least)
209 localhost:514. Most implementations will log
210 the messages against hostname "localhost" -
211 this is a limit of the implementation for
212 compatibility with more syslog daemon
218 <term>udp-rfc5424</term>
221 As with "udp" but messages are sent in RFC5424
222 format. This method will log the correct
223 hostname but is not as widely implemented in
236 <term>CTDB_NOSETSCHED=yes|no</term>
242 Usually CTDB runs with real-time priority. If you are running
243 CTDB on a platform that does not support real-time priority,
250 <term>CTDB_NODE_ADDRESS=<parameter>IPADDR</parameter></term>
253 IPADDR is the private IP address that ctdbd will bind to.
256 By default ctdbd will select the first address from the
257 nodes list that in can bind to. See also the
258 <citetitle>Private address</citetitle> section in
259 <citerefentry><refentrytitle>ctdb</refentrytitle>
260 <manvolnum>7</manvolnum></citerefentry>.
263 This option is only required when automatic address
264 detection can not be used. This can be the case when
265 running multiple ctdbd daemons/nodes on the same physical
266 host (usually for testing), using InfiniBand for the
267 private network or on Linux when sysctl
268 net.ipv4.ip_nonlocal_bind=1.
274 <term>CTDB_RECOVERY_LOCK=<parameter>LOCK</parameter></term>
277 LOCK specifies the cluster-wide mutex used to detect and
278 prevent a partitioned cluster (or "split brain").
281 No default, but the default configuration file specifies
282 <filename>/some/place/on/shared/storage</filename>, which
283 should be change to a useful value.
286 For information about the recovery lock please see the
287 <citetitle>RECOVERY LOCK</citetitle> section in
288 <citerefentry><refentrytitle>ctdb</refentrytitle>
289 <manvolnum>7</manvolnum></citerefentry>.
295 <term>CTDB_SCRIPT_LOG_LEVEL=<parameter>DEBUGLEVEL</parameter></term>
304 <term>CTDB_START_AS_DISABLED=yes|no</term>
313 <term>CTDB_START_AS_STOPPED=yes|no</term>
322 <term>CTDB_TRANSPORT=tcp|infiniband</term>
338 <member><filename>/usr/local/etc/ctdb/ctdbd.conf</filename></member>
339 <member><filename>/etc/sysconfig/ctdb</filename></member>
340 <member><filename>/etc/default/ctdb</filename></member>
345 <title>SEE ALSO</title>
347 <citerefentry><refentrytitle>ctdbd</refentrytitle>
348 <manvolnum>1</manvolnum></citerefentry>,
350 <citerefentry><refentrytitle>ctdbd_wrapper</refentrytitle>
351 <manvolnum>1</manvolnum></citerefentry>,
353 <citerefentry><refentrytitle>onnode</refentrytitle>
354 <manvolnum>1</manvolnum></citerefentry>,
356 <citerefentry><refentrytitle>ctdb</refentrytitle>
357 <manvolnum>7</manvolnum></citerefentry>,
359 <citerefentry><refentrytitle>ctdb-tunables</refentrytitle>
360 <manvolnum>7</manvolnum></citerefentry>,
362 <ulink url="http://ctdb.samba.org/"/>
369 This documentation was written by
377 <holder>Andrew Tridgell</holder>
378 <holder>Ronnie Sahlberg</holder>
382 This program is free software; you can redistribute it and/or
383 modify it under the terms of the GNU General Public License as
384 published by the Free Software Foundation; either version 3 of
385 the License, or (at your option) any later version.
388 This program is distributed in the hope that it will be
389 useful, but WITHOUT ANY WARRANTY; without even the implied
390 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
391 PURPOSE. See the GNU General Public License for more details.
394 You should have received a copy of the GNU General Public
395 License along with this program; if not, see
396 <ulink url="http://www.gnu.org/licenses"/>.