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="ctdb.sysconfig.5">
9 <refentrytitle>ctdb.sysconfig</refentrytitle>
10 <manvolnum>5</manvolnum>
11 <refmiscinfo class="source">ctdb</refmiscinfo>
12 <refmiscinfo class="manual">CTDB - clustered TDB database</refmiscinfo>
16 <refname>ctdb.sysconfig</refname>
17 <refpurpose>CTDB daemon configuration file</refpurpose>
21 <title>DESCRIPTION</title>
24 This file contains configuration that affects the operation of
25 CTDB. This is a distribution-specific service configuration
26 file such as <filename>/etc/sysconfig/ctdb</filename> (Red Hat)
27 or <filename>/etc/default/ctdb</filename> (Debian) and is a
29 <citerefentry><refentrytitle>sh</refentrytitle>
30 <manvolnum>1</manvolnum></citerefentry>).
43 <term>CTDB_INIT_STYLE=debian|redhat|suse</term>
46 This is the init style used by the Linux distribution (or
47 other operating system) being used. This is usually
48 determined dynamically by checking the system. This
49 variable is used by the initscript to determine which init
50 system primitives to use. It is also used by some
51 eventscripts to choose the name of initscripts for certain
52 services, since these can vary between distributions.
55 If using CTDB's event scripts are unable to determine an
56 appropriate default then this option can also be placed in
58 <citerefentry><refentrytitle>ctdb-script.options</refentrytitle>
59 <manvolnum>5</manvolnum></citerefentry> file.
62 Default: NONE. Guessed, based on features of
69 <term>CTDB_STARTUP_TIMEOUT=<parameter>NUM</parameter></term>
72 NUM is the number of seconds to wait for
73 <citerefentry><refentrytitle>ctdbd</refentrytitle>
74 <manvolnum>1</manvolnum></citerefentry> complete early
75 initialisation up to a point where it is unlikely to
76 abort. If <command>ctdbd</command> doesn't complete the
77 "setup" event before this timeout then it is killed.
96 Maximum number of open files
100 CTDB can use a lot of file descriptors, especially when used
101 with Samba. If there are thousands of smbd processes
102 connected to CTDB when this can mean that thousands of file
103 descriptors are used. For CTDB, it is often necessary to
104 increase limit on the maximum number of open files.
108 The maximum number of open files should be configured using an
109 operating system mechanism.
121 <literal>LimitNOFILE=<option>LIMIT</option></literal>
122 option can be used in a unit/service file increase the
123 maximum number of open files. See
124 <citerefentry><refentrytitle>systemd.exec</refentrytitle>
125 <manvolnum>5</manvolnum></citerefentry> for details.
136 Use a command like <command>ulimit -n
137 <option>LIMIT</option></command> to increase the maximum
138 number of open files. This command can be put in the
139 relevant distribution-specific service configuration file.
154 Many distributions do not allow core dump files to be
155 generated by default. To assist with debugging, core files
156 can be enabled. This should be configured using an operating
168 The <literal>LimitCORE=0|unlimited</literal> option can
169 be used in a unit/service file. <literal>0</literal>
170 disallows core files, <literal>unlimited</literal>
171 allows them. maximum number of open files. See
172 <citerefentry><refentrytitle>systemd.exec</refentrytitle>
173 <manvolnum>5</manvolnum></citerefentry> for details.
184 Use a command like <command>ulimit -c 0|unlimited</command>
185 to disable or enable core files as required. This
186 command can be put in the relevant distribution-specific
187 service configuration file.
202 <member><filename>/etc/sysconfig/ctdb</filename></member>
203 <member><filename>/etc/default/ctdb</filename></member>
204 <member><filename>/usr/local/etc/ctdb/script.options</filename></member>
209 <title>SEE ALSO</title>
211 <citerefentry><refentrytitle>ctdbd</refentrytitle>
212 <manvolnum>1</manvolnum></citerefentry>,
214 <citerefentry><refentrytitle>ctdb-script.options</refentrytitle>
215 <manvolnum>5</manvolnum></citerefentry>,
217 <citerefentry><refentrytitle>ctdb</refentrytitle>
218 <manvolnum>7</manvolnum></citerefentry>,
220 <ulink url="http://ctdb.samba.org/"/>
227 This documentation was written by
234 <holder>Andrew Tridgell</holder>
235 <holder>Ronnie Sahlberg</holder>
239 This program is free software; you can redistribute it and/or
240 modify it under the terms of the GNU General Public License as
241 published by the Free Software Foundation; either version 3 of
242 the License, or (at your option) any later version.
245 This program is distributed in the hope that it will be
246 useful, but WITHOUT ANY WARRANTY; without even the implied
247 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
248 PURPOSE. See the GNU General Public License for more details.
251 You should have received a copy of the GNU General Public
252 License along with this program; if not, see
253 <ulink url="http://www.gnu.org/licenses"/>.