ctdb.sysconfig - Man Page

CTDB daemon configuration file

Description

This file contains configuration that affects the operation of CTDB​. This is a distribution-specific service configuration file such as /etc/sysconfig/ctdb (Red Hat) or /etc/default/ctdb (Debian) and is a shell script (see sh(1))​.

Global Configuration

CTDB_PLATFORM_STYLE=debian|redhat|suse|freebsd

This characterises 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​.
  • Some event scripts to determine services names, since these can vary between distributions​.
  • Some shell functions to determine which options to use for certain commands​.

If using CTDB's event scripts are unable to determine an appropriate default then this option can also be placed in a relevant ctdb-script.options(5) file​.

Default: Based on contents of /etc/os-release​.

Resource Limits

Maximum number of open files

CTDB can use a lot of file descriptors, especially when used with Samba​. If there are thousands of smbd processes connected to CTDB when this can mean that thousands of file descriptors are used​. For CTDB, it is often necessary to increase limit on the maximum number of open files​.

The maximum number of open files should be configured using an operating system mechanism​.

systemd

The LimitNOFILE=LIMIT option can be used in a unit/service file increase the maximum number of open files​. See systemd.exec(5) for details​.

SYSV init

Use a command like ulimit -n LIMIT to increase the maximum number of open files​. This command can be put in the relevant distribution-specific service configuration file​.

Allowing core dumps

Many distributions do not allow core dump files to be generated by default​. To assist with debugging, core files can be enabled​. This should be configured using an operating system mechanism​.

systemd

The LimitCORE=0|unlimited option can be used in a unit/service file​. 0 disallows core files, unlimited allows them​. maximum number of open files​. See systemd.exec(5) for details​.

SYSV init

Use a command like ulimit -c 0|unlimited to disable or enable core files as required​. This command can be put in the relevant distribution-specific service configuration file​.

Files

/etc/sysconfig/ctdb
/etc/default/ctdb
/etc/ctdb/script​.options

See Also

ctdbd(1), ctdb-script.options(5), ctdb(7), http://ctdb.samba.org/

Author

This documentation was written by Martin Schwenke

Info

10/01/2026 CTDB - clustered TDB database