source: vendor/current/ctdb/doc/ctdbd.conf.5

Last change on this file was 988, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.3

File size: 29.0 KB
Line 
1'\" t
2.\" Title: ctdbd.conf
3.\" Author:
4.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
5.\" Date: 01/27/2016
6.\" Manual: CTDB - clustered TDB database
7.\" Source: ctdb
8.\" Language: English
9.\"
10.TH "CTDBD\&.CONF" "5" "01/27/2016" "ctdb" "CTDB \- clustered TDB database"
11.\" -----------------------------------------------------------------
12.\" * Define some portability stuff
13.\" -----------------------------------------------------------------
14.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15.\" http://bugs.debian.org/507673
16.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18.ie \n(.g .ds Aq \(aq
19.el .ds Aq '
20.\" -----------------------------------------------------------------
21.\" * set default formatting
22.\" -----------------------------------------------------------------
23.\" disable hyphenation
24.nh
25.\" disable justification (adjust text to left margin only)
26.ad l
27.\" -----------------------------------------------------------------
28.\" * MAIN CONTENT STARTS HERE *
29.\" -----------------------------------------------------------------
30.SH "NAME"
31ctdbd.conf \- CTDB daemon configuration file
32.SH "DESCRIPTION"
33.PP
34This file contains CTDB configuration variables that are affect the operation of CTDB\&. The default location of this file is
35/usr/local/etc/ctdb/ctdbd\&.conf\&.
36.PP
37This file is a shell script (see
38\fBsh\fR(1)) but is usually limited to simple variable assignments and shell\-style comments\&.
39.PP
40CTDB configuration variables are grouped into several categories below\&.
41.PP
42Variables defined in this document can also be set in a distribution\-specific configuration file such as
43/etc/sysconfig/ctdb
44(Red Hat) or
45/etc/default/ctdb
46(Debian)\&. However, these files should be reserved for variables used by the initscript\&. A historical alternative is
47/usr/local/etc/ctdb/sysconfig/ctdb
48\- this is deprecated\&.
49.SH "INITSCRIPT CONFIGURATION"
50.PP
51Some options must be available to the initscript so they need to be set in the distribution\-specific initscript configuration, such as
52/etc/sysconfig/ctdb
53or
54/etc/default/ctdb\&.
55.PP
56CTDB_PIDFILE=\fIFILENAME\fR
57.RS 4
58FILENAME is the name of the file used to contain the process ID (PID) of the main CTDB daemon when it is running\&. This is passed from the initscript to
59\fBctdbd_wrapper\fR(1)\&.
60.sp
61Default is
62/usr/local/var/run/ctdb/ctdbd\&.pid\&. Corresponds to
63\fB\-\-pidfile\fR\&.
64.RE
65.SH "GLOBAL CONFIGURATION"
66.PP
67These options may be used in the initscripts, daemon and scripts\&.
68.PP
69CTDB_BASE=\fIDIRECTORY\fR
70.RS 4
71DIRECTORY containing CTDB scripts and configuration files\&.
72.RE
73.SH "DAEMON CONFIGURATION"
74.PP
75Variables in this section are processed by
76\fBctdbd_wrapper\fR(1)
77and are converted into command\-line arguments to
78\fBctdbd\fR(1)\&. Correspondence with
79\fBctdbd\fR(1)
80options is shown for each variable\&. The the documentation for the relevant options for more details\&.
81.PP
82Many of these variables are also used by event scripts\&.
83.PP
84CTDB_CAPABILITY_LMASTER=yes|no
85.RS 4
86Defaults to yes\&. Corresponds to
87\fB\-\-no\-lmaster\fR\&.
88.RE
89.PP
90CTDB_CAPABILITY_RECMASTER=yes|no
91.RS 4
92Defaults to yes\&. Corresponds to
93\fB\-\-no\-recmaster\fR\&.
94.RE
95.PP
96CTDB_DBDIR=\fIDIRECTORY\fR
97.RS 4
98Defaults to
99/usr/local/var/lib/ctdb\&.
100.sp
101Apart from a DIRECTORY, this can take a special value of the form
102\fBtmpfs\fR[:\fIOPTIONS\fR]\&. OPTIONS is a comma\-separated list of any permissible options to the tmpfs filesystem\&. The only pre\-specified default is
103\fBmode=700\fR, which can overriden by specifying
104\fBmode\fR
105in OPTIONS\&. It probably makes sense to specify a maximum
106\fBsize\fR\&.
107.sp
108Corresponds to
109\fB\-\-dbdir\fR\&.
110.RE
111.PP
112CTDB_DBDIR_PERSISTENT=\fIDIRECTORY\fR
113.RS 4
114Defaults to
115/usr/local/var/lib/ctdb/persistent\&.
116.sp
117Corresponds to
118\fB\-\-dbdir\-persistent\fR\&.
119.RE
120.PP
121CTDB_DBDIR_STATE=\fIDIRECTORY\fR
122.RS 4
123Defaults to
124/usr/local/var/lib/ctdb/state\&.
125.sp
126Corresponds to
127\fB\-\-dbdir\-state\fR\&.
128.RE
129.PP
130CTDB_DEBUGLEVEL=\fIDEBUGLEVEL\fR
131.RS 4
132Default is NOTICE (2)\&. Corresponds to
133\fB\-d\fR
134or
135\fB\-\-debug\fR\&.
136.RE
137.PP
138CTDB_EVENT_SCRIPT_DIR=\fIDIRECTORY\fR
139.RS 4
140Default is
141\fICTDB_BASE\fR/events\&.d, so usually
142/usr/local/etc/ctdb/events\&.d\&. Corresponds to
143\fB\-\-event\-script\-dir\fR\&.
144.RE
145.PP
146CTDB_LOGGING=\fISTRING\fR
147.RS 4
148STRING specifies where ctdbd will write its log\&. The default is file:/usr/local/var/log/log\&.ctdb\&. Corresponds to
149\fB\-\-logging\fR\&.
150.sp
151Valid values are:
152.PP
153file:\fIFILENAME\fR
154.RS 4
155FILENAME where ctdbd will write its log\&. This is usually
156/usr/local/var/log/log\&.ctdb\&.
157.RE
158.PP
159syslog[:\fIMETHOD\fR]
160.RS 4
161CTDB will log to syslog\&. By default this will use the syslog(3) API\&.
162.sp
163If METHOD is specified then it specifies an extension that causes logging to be done in a non\-blocking fashion\&. This can be useful under heavy loads that might cause the syslog daemon to dequeue messages too slowly, which would otherwise cause CTDB to block when logging\&. METHOD must be one of:
164.PP
165nonblocking
166.RS 4
167CTDB will log to syslog via
168/dev/log
169in non\-blocking mode\&.
170.RE
171.PP
172udp
173.RS 4
174CTDB will log to syslog via UDP to localhost:514\&. The syslog daemon must be configured to listen on (at least) localhost:514\&. Most implementations will log the messages against hostname "localhost" \- this is a limit of the implementation for compatibility with more syslog daemon implementations\&.
175.RE
176.PP
177udp\-rfc5424
178.RS 4
179As with "udp" but messages are sent in RFC5424 format\&. This method will log the correct hostname but is not as widely implemented in syslog daemons\&.
180.RE
181.RE
182.RE
183.PP
184CTDB_LVS_PUBLIC_IP=\fIIPADDR\fR
185.RS 4
186No default\&. Corresponds to "\fB\-\-lvs\fR\fB\-\-single\-public\-ip IPADDR"\fR\&.
187.RE
188.PP
189CTDB_NODES=\fIFILENAME\fR
190.RS 4
191Default is
192\fICTDB_BASE\fR/nodes, so usually
193/usr/local/etc/ctdb/nodes\&. Corresponds to
194\fB\-\-nlist\fR\&.
195.RE
196.PP
197CTDB_NOTIFY_SCRIPT=\fIFILENAME\fR
198.RS 4
199No default, usually
200/usr/local/etc/ctdb/notify\&.sh\&. Corresponds to
201\fB\-\-notification\-script\fR\&.
202.RE
203.PP
204CTDB_MAX_PERSISTENT_CHECK_ERRORS=\fINUM\fR
205.RS 4
206Default 0\&. Corresponds to
207\fB\-\-max\-persistent\-check\-errors\fR\&.
208.RE
209.PP
210CTDB_NODE_ADDRESS=\fIIPADDR\fR
211.RS 4
212IPADDR is the private IP address that ctdbd will bind to\&. Corresponds to
213\fB\-\-listen\fR\&.
214.sp
215By default ctdbd will select the first address from the nodes list that in can bind to\&. See also
216CTDB_NODES\&.
217.sp
218This option is only required when automatic address detection can not be used\&. This can be the case when running multiple ctdbd daemons/nodes on the same physical host (usually for testing), using InfiniBand for the private network or on Linux when sysctl net\&.ipv4\&.ip_nonlocal_bind=1\&.
219.RE
220.PP
221CTDB_PUBLIC_ADDRESSES=\fIFILENAME\fR
222.RS 4
223No default, usually
224/usr/local/etc/ctdb/public_addresses\&. Corresponds to
225\fB\-\-public\-addresses\fR\&.
226.RE
227.PP
228CTDB_PUBLIC_INTERFACE=\fIINTERFACE\fR
229.RS 4
230No default\&. Corresponds to
231\fB\-\-public\-interface\fR\&.
232.RE
233.PP
234CTDB_RECOVERY_LOCK=\fIFILENAME\fR
235.RS 4
236Defaults to
237/some/place/on/shared/storage, which should be change to a useful value\&. Corresponds to
238\fB\-\-reclock\fR\&.
239.sp
240For information about the recovery lock please see the
241RECOVERY LOCK
242section in
243\fBctdb\fR(7)\&.
244.RE
245.PP
246CTDB_SCRIPT_LOG_LEVEL=\fIDEBUGLEVEL\fR
247.RS 4
248Defaults to ERR (0)\&. Corresponds to
249\fB\-\-script\-log\-level\fR\&.
250.RE
251.PP
252CTDB_SOCKET=\fIFILENAME\fR
253.RS 4
254Defaults to
255/usr/local/var/run/ctdb/ctdbd\&.socket\&. Corresponds to
256\fB\-\-socket\fR\&.
257.sp
258If you change this then you probably want to set this in root\*(Aqs environment (perhaps in a file in
259/etc/profile\&.d) so that you can use the
260\fBctdb\fR(1)
261command in a straightforward manner\&.
262.RE
263.PP
264CTDB_START_AS_DISABLED=yes|no
265.RS 4
266Default is no\&. Corresponds to
267\fB\-\-start\-as\-disabled\fR\&.
268.RE
269.PP
270CTDB_START_AS_STOPPED=yes|no
271.RS 4
272Default is no\&. Corresponds to
273\fB\-\-start\-as\-stopped\fR\&.
274.RE
275.PP
276CTDB_TRANSPORT=tcp|infiniband
277.RS 4
278Defaults to tcp\&. Corresponds to
279\fB\-\-transport\fR\&.
280.RE
281.PP
282While the following variables do not translate into daemon options they are used by
283\fBctdbd_wrapper\fR(1)
284when starting and stopping
285\fBctdbd\fR(1)\&.
286.PP
287CTDB_SHUTDOWN_TIMEOUT=\fINUM\fR
288.RS 4
289NUM is the number of seconds to wait for
290\fBctdbd\fR(1)
291to shut down gracefully before giving up and killing it\&.
292.sp
293Defaults is 30\&.
294.RE
295.PP
296CTDB_STARTUP_TIMEOUT=\fINUM\fR
297.RS 4
298NUM is the number of seconds to wait for
299\fBctdbd\fR(1)
300complete early initialisation up to a point where it is unlikely to abort\&. If
301\fBctdbd\fR
302doesn\*(Aqt complete the "setup" event before this timeout then it is killed\&.
303.sp
304Defaults is 10\&.
305.RE
306.SH "NETWORK CONFIGURATION"
307.SS "NAT GATEWAY"
308.PP
309NAT gateway is used to configure fallback routing for nodes when they do not host any public IP addresses\&. For example, it allows unhealthy nodes to reliably communicate with external infrastructure\&. One node in a NAT gateway group will be designated as the NAT gateway master node and other (slave) nodes will be configured with fallback routes via the NAT gateway master node\&. For more information, see the
310NAT GATEWAY
311section in
312\fBctdb\fR(7)\&.
313.PP
314CTDB_NATGW_DEFAULT_GATEWAY=\fIIPADDR\fR
315.RS 4
316IPADDR is an alternate network gateway to use on the NAT gateway master node\&. If set, a fallback default route is added via this network gateway\&.
317.sp
318No default\&. Setting this variable is optional \- if not set that no route is created on the NAT gateway master node\&.
319.RE
320.PP
321CTDB_NATGW_NODES=\fIFILENAME\fR
322.RS 4
323FILENAME contains the list of nodes that belong to the same NAT gateway group\&.
324.sp
325File format:
326.sp
327.if n \{\
328.RS 4
329.\}
330.nf
331\fIIPADDR\fR [slave\-only]
332
333.fi
334.if n \{\
335.RE
336.\}
337.sp
338IPADDR is the private IP address of each node in the NAT gateway group\&.
339.sp
340If "slave\-only" is specified then the corresponding node can not be the NAT gateway master node\&. In this case
341\fICTDB_NATGW_PUBLIC_IFACE\fR
342and
343\fICTDB_NATGW_PUBLIC_IP\fR
344are optional and unused\&.
345.sp
346No default, usually
347/usr/local/etc/ctdb/natgw_nodes
348when enabled\&.
349.RE
350.PP
351CTDB_NATGW_PRIVATE_NETWORK=\fIIPADDR/MASK\fR
352.RS 4
353IPADDR/MASK is the private sub\-network that is internally routed via the NAT gateway master node\&. This is usually the private network that is used for node addresses\&.
354.sp
355No default\&.
356.RE
357.PP
358CTDB_NATGW_PUBLIC_IFACE=\fIIFACE\fR
359.RS 4
360IFACE is the network interface on which the CTDB_NATGW_PUBLIC_IP will be configured\&.
361.sp
362No default\&.
363.RE
364.PP
365CTDB_NATGW_PUBLIC_IP=\fIIPADDR/MASK\fR
366.RS 4
367IPADDR/MASK indicates the IP address that is used for outgoing traffic (originating from CTDB_NATGW_PRIVATE_NETWORK) on the NAT gateway master node\&. This
368\fImust not\fR
369be a configured public IP address\&.
370.sp
371No default\&.
372.RE
373.PP
374CTDB_NATGW_STATIC_ROUTES=\fIIPADDR/MASK[@GATEWAY]\fR \&.\&.\&.
375.RS 4
376Each IPADDR/MASK identifies a network or host to which NATGW should create a fallback route, instead of creating a single default route\&. This can be used when there is already a default route, via an interface that can not reach required infrastructure, that overrides the NAT gateway default route\&.
377.sp
378If GATEWAY is specified then the corresponding route on the NATGW master node will be via GATEWAY\&. Such routes are created even if
379\fICTDB_NATGW_DEFAULT_GATEWAY\fR
380is not specified\&. If GATEWAY is not specified for some networks then routes are only created on the NATGW master node for those networks if
381\fICTDB_NATGW_DEFAULT_GATEWAY\fR
382is specified\&.
383.sp
384This should be used with care to avoid causing traffic to unnecessarily double\-hop through the NAT gateway master, even when a node is hosting public IP addresses\&. Each specified network or host should probably have a corresponding automatically created link route or static route to avoid this\&.
385.sp
386No default\&.
387.RE
388.sp
389.it 1 an-trap
390.nr an-no-space-flag 1
391.nr an-break-flag 1
392.br
393.ps +1
394\fBExample\fR
395.RS 4
396.sp
397.if n \{\
398.RS 4
399.\}
400.nf
401CTDB_NATGW_NODES=/usr/local/etc/ctdb/natgw_nodes
402CTDB_NATGW_PRIVATE_NETWORK=192\&.168\&.1\&.0/24
403CTDB_NATGW_DEFAULT_GATEWAY=10\&.0\&.0\&.1
404CTDB_NATGW_PUBLIC_IP=10\&.0\&.0\&.227/24
405CTDB_NATGW_PUBLIC_IFACE=eth0
406
407.fi
408.if n \{\
409.RE
410.\}
411.PP
412A variation that ensures that infrastructure (ADS, DNS, \&.\&.\&.) directly attached to the public network (10\&.0\&.0\&.0/24) is always reachable would look like this:
413.sp
414.if n \{\
415.RS 4
416.\}
417.nf
418CTDB_NATGW_NODES=/usr/local/etc/ctdb/natgw_nodes
419CTDB_NATGW_PRIVATE_NETWORK=192\&.168\&.1\&.0/24
420CTDB_NATGW_PUBLIC_IP=10\&.0\&.0\&.227/24
421CTDB_NATGW_PUBLIC_IFACE=eth0
422CTDB_NATGW_STATIC_ROUTES=10\&.0\&.0\&.0/24
423
424.fi
425.if n \{\
426.RE
427.\}
428.PP
429Note that
430\fICTDB_NATGW_DEFAULT_GATEWAY\fR
431is not specified\&.
432.RE
433.SS "POLICY ROUTING"
434.PP
435A node running CTDB may be a component of a complex network topology\&. In particular, public addresses may be spread across several different networks (or VLANs) and it may not be possible to route packets from these public addresses via the system\*(Aqs default route\&. Therefore, CTDB has support for policy routing via the
43613\&.per_ip_routing
437eventscript\&. This allows routing to be specified for packets sourced from each public address\&. The routes are added and removed as CTDB moves public addresses between nodes\&.
438.PP
439For more information, see the
440POLICY ROUTING
441section in
442\fBctdb\fR(7)\&.
443.PP
444CTDB_PER_IP_ROUTING_CONF=\fIFILENAME\fR
445.RS 4
446FILENAME contains elements for constructing the desired routes for each source address\&.
447.sp
448The special FILENAME value
449\fB__auto_link_local__\fR
450indicates that no configuration file is provided and that CTDB should generate reasonable link\-local routes for each public IP address\&.
451.sp
452File format:
453.sp
454.if n \{\
455.RS 4
456.\}
457.nf
458\fIIPADDR\fR \fIDEST\-IPADDR/MASK\fR [\fIGATEWAY\-IPADDR\fR]
459
460.fi
461.if n \{\
462.RE
463.\}
464.sp
465No default, usually
466/usr/local/etc/ctdb/policy_routing
467when enabled\&.
468.RE
469.PP
470CTDB_PER_IP_ROUTING_RULE_PREF=\fINUM\fR
471.RS 4
472NUM sets the priority (or preference) for the routing rules that are added by CTDB\&.
473.sp
474This should be (strictly) greater than 0 and (strictly) less than 32766\&. A priority of 100 is recommended, unless this conflicts with a priority already in use on the system\&. See
475\fBip\fR(8), for more details\&.
476.RE
477.PP
478CTDB_PER_IP_ROUTING_TABLE_ID_LOW=\fILOW\-NUM\fR, CTDB_PER_IP_ROUTING_TABLE_ID_HIGH=\fIHIGH\-NUM\fR
479.RS 4
480CTDB determines a unique routing table number to use for the routing related to each public address\&. LOW\-NUM and HIGH\-NUM indicate the minimum and maximum routing table numbers that are used\&.
481.sp
482\fBip\fR(8)
483uses some reserved routing table numbers below 255\&. Therefore, CTDB_PER_IP_ROUTING_TABLE_ID_LOW should be (strictly) greater than 255\&.
484.sp
485CTDB uses the standard file
486/etc/iproute2/rt_tables
487to maintain a mapping between the routing table numbers and labels\&. The label for a public address
488\fIADDR\fR
489will look like ctdb\&.\fIaddr\fR\&. This means that the associated rules and routes are easy to read (and manipulate)\&.
490.sp
491No default, usually 1000 and 9000\&.
492.RE
493.sp
494.it 1 an-trap
495.nr an-no-space-flag 1
496.nr an-break-flag 1
497.br
498.ps +1
499\fBExample\fR
500.RS 4
501.sp
502.if n \{\
503.RS 4
504.\}
505.nf
506CTDB_PER_IP_ROUTING_CONF=/usr/local/etc/ctdb/policy_routing
507CTDB_PER_IP_ROUTING_RULE_PREF=100
508CTDB_PER_IP_ROUTING_TABLE_ID_LOW=1000
509CTDB_PER_IP_ROUTING_TABLE_ID_HIGH=9000
510
511.fi
512.if n \{\
513.RE
514.\}
515.RE
516.SS "MISCELLANEOUS NETWORK CONFIGURATION"
517.PP
518CTDB_PARTIALLY_ONLINE_INTERFACES=yes|no
519.RS 4
520Whether one or more offline interfaces should cause a monitor event to fail if there are other interfaces that are up\&. If this is "yes" and a node has some interfaces that are down then
521\fBctdb status\fR
522will display the node as "PARTIALLYONLINE"\&.
523.sp
524Note that CTDB_PARTIALLY_ONLINE_INTERFACES=yes is incompatible with NAT gateway, since NAT gateway relies on the interface configured by CTDB_NATGW_PUBLIC_IFACE to be up\&.
525.sp
526Default is "no"\&.
527.RE
528.SH "SERVICE CONFIGURATION"
529.PP
530CTDB can be configured to manage and/or monitor various NAS (and other) services via its eventscripts\&.
531.PP
532In the simplest case CTDB will manage a service\&. This means the service will be started and stopped along with CTDB, CTDB will monitor the service and CTDB will do any required reconfiguration of the service when public IP addresses are failed over\&.
533.SS "SAMBA"
534.sp
535.it 1 an-trap
536.nr an-no-space-flag 1
537.nr an-break-flag 1
538.br
539.ps +1
540\fBEventscripts\fR
541.RS 4
542.RS 4
54349\&.winbind
544.RE
545.RS 4
54650\&.samba
547.RE
548.RE
549.PP
550CTDB_MANAGES_SAMBA=yes|no
551.RS 4
552Should CTDB manage Samba?
553.sp
554Default is no\&.
555.RE
556.PP
557CTDB_MANAGES_WINBIND=yes|no
558.RS 4
559Should CTDB manage Winbind?
560.sp
561Default is no\&.
562.RE
563.PP
564CTDB_SAMBA_CHECK_PORTS=\fIPORT\-LIST\fR
565.RS 4
566When monitoring Samba, check TCP ports in space\-separated PORT\-LIST\&.
567.sp
568Default is to monitor ports that Samba is configured to listen on\&.
569.RE
570.PP
571CTDB_SAMBA_SKIP_SHARE_CHECK=yes|no
572.RS 4
573As part of monitoring, should CTDB skip the check for the existence of each directory configured as share in Samba\&. This may be desirable if there is a large number of shares\&.
574.sp
575Default is no\&.
576.RE
577.PP
578CTDB_SERVICE_NMB=\fISERVICE\fR
579.RS 4
580Distribution specific SERVICE for managing nmbd\&.
581.sp
582Default is distribution\-dependant\&.
583.RE
584.PP
585CTDB_SERVICE_SMB=\fISERVICE\fR
586.RS 4
587Distribution specific SERVICE for managing smbd\&.
588.sp
589Default is distribution\-dependant\&.
590.RE
591.PP
592CTDB_SERVICE_WINBIND=\fISERVICE\fR
593.RS 4
594Distribution specific SERVICE for managing winbindd\&.
595.sp
596Default is "winbind"\&.
597.RE
598.SS "NFS"
599.PP
600This includes parameters for the kernel NFS server\&. Alternative NFS subsystems (such as
601\m[blue]\fBNFS\-Ganesha\fR\m[]\&\s-2\u[1]\d\s+2) can be integrated using
602\fICTDB_NFS_CALLOUT\fR\&.
603.sp
604.it 1 an-trap
605.nr an-no-space-flag 1
606.nr an-break-flag 1
607.br
608.ps +1
609\fBEventscript\fR
610.RS 4
611.RS 4
61260\&.nfs
613.RE
614.RE
615.PP
616CTDB_CLUSTER_FILESYSTEM_TYPE=gpfs
617.RS 4
618The type of cluster filesystem to use with NFS\-ganesha\&. Currently only "gpfs" is supported\&.
619.sp
620Default is "gpfs"\&.
621.RE
622.PP
623CTDB_MANAGES_NFS=yes|no
624.RS 4
625Should CTDB manage NFS?
626.sp
627Default is no\&.
628.RE
629.PP
630CTDB_NFS_CALLOUT=\fICOMMAND\fR
631.RS 4
632COMMAND specifies the path to a callout to handle interactions with the configured NFS system, including startup, shutdown, monitoring\&.
633.sp
634Default is the included
635\fBnfs\-linux\-kernel\-callout\fR\&.
636.RE
637.PP
638CTDB_NFS_SKIP_SHARE_CHECK=yes|no
639.RS 4
640As part of monitoring, should CTDB skip the check for the existence of each directory exported via NFS\&. This may be desirable if there is a large number of exports\&.
641.sp
642Default is no\&.
643.RE
644.PP
645CTDB_RPCINFO_LOCALHOST=\fIIPADDR\fR|\fIHOSTNAME\fR
646.RS 4
647IPADDR or HOSTNAME indicates the address that
648\fBrpcinfo\fR
649should connect to when doing
650\fBrpcinfo\fR
651check on IPv4 RPC service during monitoring\&. Optimally this would be "localhost"\&. However, this can add some performance overheads\&.
652.sp
653Default is "127\&.0\&.0\&.1"\&.
654.RE
655.PP
656CTDB_RPCINFO_LOCALHOST6=\fIIPADDR\fR|\fIHOSTNAME\fR
657.RS 4
658IPADDR or HOSTNAME indicates the address that
659\fBrpcinfo\fR
660should connect to when doing
661\fBrpcinfo\fR
662check on IPv6 RPC service during monitoring\&. Optimally this would be "localhost6" (or similar)\&. However, this can add some performance overheads\&.
663.sp
664Default is "::1"\&.
665.RE
666.SS "APACHE HTTPD"
667.PP
668CTDB can manage the Apache web server\&.
669.sp
670.it 1 an-trap
671.nr an-no-space-flag 1
672.nr an-break-flag 1
673.br
674.ps +1
675\fBEventscript\fR
676.RS 4
677.RS 4
67841\&.httpd
679.RE
680.RE
681.PP
682CTDB_MANAGES_HTTPD=yes|no
683.RS 4
684Should CTDB manage the Apache web server?
685.sp
686Default is no\&.
687.RE
688.SS "CLAMAV"
689.PP
690CTDB has support to manage the popular anti\-virus daemon ClamAV\&.
691.sp
692.it 1 an-trap
693.nr an-no-space-flag 1
694.nr an-break-flag 1
695.br
696.ps +1
697\fBEventscript\fR
698.RS 4
699.RS 4
70031\&.clamd
701.RE
702.PP
703This eventscript is not enabled by default\&. Use
704\fBctdb enablescript\fR
705to enable it\&.
706.RE
707.PP
708CTDB_MANAGES_CLAMD=yes|no
709.RS 4
710Should CTDB manage ClamAV?
711.sp
712Default is no\&.
713.RE
714.PP
715CTDB_CLAMD_SOCKET=\fIFILENAME\fR
716.RS 4
717FILENAME is the socket to monitor ClamAV\&.
718.sp
719No default\&.
720.RE
721.SS "ISCSI"
722.PP
723CTDB has support for managing the Linux iSCSI tgtd service\&.
724.sp
725.it 1 an-trap
726.nr an-no-space-flag 1
727.nr an-break-flag 1
728.br
729.ps +1
730\fBEventscript\fR
731.RS 4
732.RS 4
73370\&.iscsi
734.RE
735.RE
736.PP
737CTDB_MANAGES_ISCSI=yes|no
738.RS 4
739Should CTDB manage iSCSI tgtd?
740.sp
741Default is no\&.
742.RE
743.PP
744CTDB_START_ISCSI_SCRIPTS=\fIDIRECTORY\fR
745.RS 4
746DIRECTORY on shared storage containing scripts to start tgtd for each public IP address\&.
747.sp
748No default\&.
749.RE
750.SS "MULTIPATHD"
751.PP
752CTDB can monitor multipath devices to ensure that active paths are available\&.
753.sp
754.it 1 an-trap
755.nr an-no-space-flag 1
756.nr an-break-flag 1
757.br
758.ps +1
759\fBEventscript\fR
760.RS 4
761.RS 4
76220\&.multipathd
763.RE
764.PP
765This eventscript is not enabled by default\&. Use
766\fBctdb enablescript\fR
767to enable it\&.
768.RE
769.PP
770CTDB_MONITOR_MPDEVICES=\fIMP\-DEVICE\-LIST\fR
771.RS 4
772MP\-DEVICE\-LIST is a list of multipath devices for CTDB to monitor?
773.sp
774No default\&.
775.RE
776.SS "VSFTPD"
777.PP
778CTDB can manage the vsftpd FTP server\&.
779.sp
780.it 1 an-trap
781.nr an-no-space-flag 1
782.nr an-break-flag 1
783.br
784.ps +1
785\fBEventscript\fR
786.RS 4
787.RS 4
78840\&.vsftpd
789.RE
790.RE
791.PP
792CTDB_MANAGES_VSFTPD=yes|no
793.RS 4
794Should CTDB manage the vsftpd FTP server?
795.sp
796Default is no\&.
797.RE
798.SS "SYSTEM RESOURCE MONITORING CONFIGURATION"
799.PP
800CTDB can experience seemingly random (performance and other) issues if system resources become too constrained\&. Options in this section can be enabled to allow certain system resources to be checked\&. They allows warnings to be logged and nodes to be marked unhealthy when system resource usage reaches the configured thresholds\&.
801.PP
802Some checks are enabled by default\&. It is recommended that these checks remain enabled or are augmented by extra checks\&. There is no supported way of completely disabling the checks\&.
803.sp
804.it 1 an-trap
805.nr an-no-space-flag 1
806.nr an-break-flag 1
807.br
808.ps +1
809\fBEventscripts\fR
810.RS 4
811.RS 4
81205\&.system
813.RE
814.PP
815Filesystem and memory usage monitoring is in
81605\&.system\&.
817.RE
818.PP
819CTDB_MONITOR_FILESYSTEM_USAGE=\fIFS\-LIMIT\-LIST\fR
820.RS 4
821FS\-LIMIT\-LIST is a space\-separated list of
822\fIFILESYSTEM\fR:\fIWARN_LIMIT\fR[:\fIUNHEALTHY_LIMIT\fR]
823triples indicating that warnings should be logged if the space used on FILESYSTEM reaches WARN_LIMIT%\&. If usage reaches UNHEALTHY_LIMIT then the node should be flagged unhealthy\&. Either WARN_LIMIT or UNHEALTHY_LIMIT may be left blank, meaning that check will be omitted\&.
824.sp
825Default is to warn for each filesystem containing a database directory (\fBCTDB_DBDIR\fR,
826\fBCTDB_DBDIR_PERSISTENT\fR,
827\fBCTDB_DBDIR_STATE\fR) with a threshold of 90%\&.
828.RE
829.PP
830CTDB_MONITOR_MEMORY_USAGE=\fIMEM\-LIMITS\fR
831.RS 4
832MEM\-LIMITS takes the form
833\fIWARN_LIMIT\fR[:\fIUNHEALTHY_LIMIT\fR]
834indicating that warnings should be logged if memory usage reaches WARN_LIMIT%\&. If usage reaches UNHEALTHY_LIMIT then the node should be flagged unhealthy\&. Either WARN_LIMIT or UNHEALTHY_LIMIT may be left blank, meaning that check will be omitted\&.
835.sp
836Default is 80, so warnings will be logged when memory usage reaches 80%\&.
837.RE
838.PP
839CTDB_MONITOR_SWAP_USAGE=\fISWAP\-LIMITS\fR
840.RS 4
841SWAP\-LIMITS takes the form
842\fIWARN_LIMIT\fR[:\fIUNHEALTHY_LIMIT\fR]
843indicating that warnings should be logged if swap usage reaches WARN_LIMIT%\&. If usage reaches UNHEALTHY_LIMIT then the node should be flagged unhealthy\&. Either WARN_LIMIT or UNHEALTHY_LIMIT may be left blank, meaning that check will be omitted\&.
844.sp
845Default is 25, so warnings will be logged when swap usage reaches 25%\&.
846.RE
847.SS "MISCELLANEOUS SERVICE\-RELATED CONFIGURATION"
848.PP
849CTDB_MANAGED_SERVICES=\fISERVICE\-LIST\fR
850.RS 4
851SERVICE\-LIST is a space\-separated list of SERVICEs that CTDB should manage\&. This can be used as an alternative to the
852\fICTDB_MANAGES_\fR\fI\fISERVICE\fR\fR
853variables\&.
854.sp
855No default\&.
856.RE
857.PP
858CTDB_SERVICE_AUTOSTARTSTOP=yes|no
859.RS 4
860When CTDB should start and stop services if they become managed or unmanaged\&.
861.sp
862Default is no\&.
863.RE
864.SH "TUNABLES CONFIGURATION"
865.PP
866CTDB tunables (see
867\fBctdbd-tunables\fR(7)) can be set from the configuration file\&. They are set as follows:
868.sp
869.if n \{\
870.RS 4
871.\}
872.nf
873CTDB_SET_\fITUNABLE\fR=\fIVALUE\fR
874
875.fi
876.if n \{\
877.RE
878.\}
879.PP
880For example:
881.sp
882.if n \{\
883.RS 4
884.\}
885.nf
886CTDB_SET_MonitorInterval=20
887
888.fi
889.if n \{\
890.RE
891.\}
892.sp
893.SH "DEBUG AND TEST"
894.PP
895Variable in this section are for debugging and testing CTDB\&. They should not generally be needed\&.
896.PP
897CTDB_DEBUG_HUNG_SCRIPT=\fIFILENAME\fR
898.RS 4
899FILENAME is a script to run to log debug information when an event script times out\&.
900.sp
901Default is
902\fICTDB_BASE\fR/debug\-hung\-script\&.sh\&.
903.RE
904.PP
905CTDB_DEBUG_HUNG_SCRIPT_LOGFILE=\fIFILENAME\fR
906.RS 4
907FILENAME specifies where log messages should go when debugging hung eventscripts\&. This is a testing option\&. See also
908CTDB_DEBUG_HUNG_SCRIPT\&.
909.sp
910No default\&. Messages go to stdout/stderr and are logged to the same place as other CTDB log messages\&.
911.RE
912.PP
913CTDB_DEBUG_HUNG_SCRIPT_STACKPAT=\fIREGEXP\fR
914.RS 4
915REGEXP specifies interesting processes for which stack traces should be logged when debugging hung eventscripts and those processes are matched in pstree output\&. REGEXP is an extended regexp so choices are separated by pipes (\*(Aq|\*(Aq)\&. However, REGEXP should not contain parentheses\&. See also
916CTDB_DEBUG_HUNG_SCRIPT\&.
917.sp
918Default is "exportfs|rpcinfo"\&.
919.RE
920.PP
921CTDB_DEBUG_LOCKS=\fIFILENAME\fR
922.RS 4
923FILENAME is a script to run to log debug information when an CTDB fails to freeze databases during recovery\&.
924.sp
925No default, usually
926\fICTDB_BASE\fR/debug_locks\&.sh\&.
927.RE
928.PP
929CTDB_SYS_ETCDIR=\fIDIRECTORY\fR
930.RS 4
931DIRECTORY containing system configuration files\&. This is used to provide alternate configuration when testing and should not need to be changed from the default\&.
932.sp
933Default is
934/etc\&.
935.RE
936.PP
937CTDB_INIT_STYLE=debian|redhat|suse
938.RS 4
939This is the init style used by the Linux distribution (or other operating system) being used\&. This is usually determined dynamically by checking the system\&. This variable is used by the initscript to determine which init system primitives to use\&. It is also used by some eventscripts to choose the name of initscripts for certain services, since these can vary between distributions\&.
940.sp
941No fixed default\&.
942.sp
943If this option needs to be changed from the calculated default for the initscript to function properly, then it must be set in the distribution\-specific initscript configuration, such as
944/etc/sysconfig/ctdb
945.RE
946.PP
947CTDB_MAX_CORRUPT_DB_BACKUPS=\fINUM\fR
948.RS 4
949NUM is the maximum number of volatile TDB database backups to be kept (for each database) when a corrupt database is found during startup\&. Volatile TDBs are zeroed during startup so backups are needed to debug any corruption that occurs before a restart\&.
950.sp
951Default is 10\&.
952.RE
953.PP
954CTDB_MAX_OPEN_FILES=\fINUM\fR
955.RS 4
956NUM is the maximum number of open files\&.
957.sp
958There is no default\&.
959.RE
960.PP
961CTDB_RC_LOCAL=\fIFILENAME\fR
962.RS 4
963FILENAME is a script fragment to be sourced by the
964functions
965that is sourced by scripts\&. On example use would be to override function definitions in unit tests\&. As a sanity check, this file must be executable for it to be used\&.
966.sp
967No default\&.
968.RE
969.PP
970CTDB_RUN_TIMEOUT_MONITOR=yes|no
971.RS 4
972Whether CTDB should simulate timing out monitor events\&. This uses the
97399\&.timeout
974eventscript\&.
975.sp
976Default is no\&.
977.RE
978.PP
979CTDB_SCRIPT_DEBUGLEVEL=\fINUM\fR
980.RS 4
981NUM is the level debugging messages printed by CTDB scripts\&. Setting this to a higher number (e\&.g\&. 4) will cause some scripts to log more messages\&.
982.sp
983Default is 2\&.
984.RE
985.PP
986CTDB_SUPPRESS_COREFILE=yes|no
987.RS 4
988Whether CTDB core files should be suppressed\&.
989.sp
990Default is no\&.
991.RE
992.PP
993CTDB_VALGRIND=yes|no|\fICOMMAND\fR
994.RS 4
995If "yes", this causes
996\fBctdbd\fR(1)
997to be run under
998\fBvalgrind\fR(1)
999with logs going to
1000/usr/local/var/log/ctdb_valgrind\&. If neither "yes" nor "no" then the value is assumed to be a COMMAND (e\&.g\&. a
1001\fBvalgrind\fR
1002variation, a
1003\fBgdb\fR(1)
1004command) that is used in place of the default
1005\fBvalgrind\fR
1006command\&. In either case, the
1007\fB\-\-valgrind\fR
1008option is passed to
1009\fBctdbd\fR\&.
1010.sp
1011Default is no\&.
1012.RE
1013.PP
1014CTDB_VARDIR=\fIDIRECTORY\fR
1015.RS 4
1016DIRECTORY containing CTDB files that are modified at runtime\&.
1017.sp
1018Defaults to
1019/usr/local/var/lib/ctdb\&.
1020.RE
1021.SH "FILES"
1022.RS 4
1023/usr/local/etc/ctdb/ctdbd\&.conf
1024.RE
1025.RS 4
1026/etc/sysconfig/ctdb
1027.RE
1028.RS 4
1029/etc/default/ctdb
1030.RE
1031.RS 4
1032/usr/local/etc/ctdb/sysconfig/ctdb
1033.RE
1034.SH "SEE ALSO"
1035.PP
1036\fBctdbd\fR(1),
1037\fBctdbd_wrapper\fR(1),
1038\fBonnode\fR(1),
1039\fBctdb\fR(7),
1040\fBctdb-tunables\fR(7),
1041\m[blue]\fB\%http://ctdb.samba.org/\fR\m[]
1042.SH "AUTHOR"
1043.br
1044.PP
1045This documentation was written by Amitay Isaacs, Martin Schwenke
1046.SH "COPYRIGHT"
1047.br
1048Copyright \(co 2007 Andrew Tridgell, Ronnie Sahlberg
1049.br
1050.PP
1051This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version\&.
1052.PP
1053This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\&. See the GNU General Public License for more details\&.
1054.PP
1055You should have received a copy of the GNU General Public License along with this program; if not, see
1056\m[blue]\fB\%http://www.gnu.org/licenses\fR\m[]\&.
1057.sp
1058.SH "NOTES"
1059.IP " 1." 4
1060NFS-Ganesha
1061.RS 4
1062\%https://github.com/nfs-ganesha/nfs-ganesha/wiki
1063.RE
Note: See TracBrowser for help on using the repository browser.