[Samba] URGENT CTDB: Which event scripts MUST be enable?
martin at meltin.net
Tue Jan 12 02:21:38 UTC 2021
On Mon, 11 Jan 2021 18:18:05 -0500, Robert Buck via samba
<samba at lists.samba.org> wrote:
> We're using CTDB with winbind and samba.
> What event scripts of these MUST be enabled?
> # ctdb event script list legacy
> ** 49.winbind* 50.samba*
> Are we supposed to enable reclock, system, or ctdb?
Since you're using winbindd and smbd you almost certainly want
49.winbind and 50.samba to be enabled. However, it is possible to
start/stop/monitor these services using some other custom mechanism, so
disabling them is not out of the question.
* 00.ctdb is considered mandatory
It does several things:
- Checks for corrupt TDB files... so corrupt, volatile TDBs can be
backed up for later analysis
- Creates $CTDB_SCRIPT_VARDIR, which is used by other scripts to
- Processes /etc/ctdb/ctdb.tunables (or similar)
- Attaches ctdb.tdb, which is only current used by statd-callout,
when using NFS
The documentation clearly needs to be improved. :-(
Both ctdb/wscript (used by "make install") and
ctdb/packaging/RPM/ctdb.spec.in (may be used to build standalone RPM
package(s)) attempt to ensure that this script is enabled.
* 01.reclock is only really used to create the directory containing the
If you're using a helper (via "! ..." syntax) then you don't need
The comment at the top of this script has bit-rotted. :-(
01.reclock is enabled by default at first-time install since we don't
know how the recovery lock will be configured.
* 05.system is used to monitor system resources
If you have better resource monitoring in place then you can happily
disable this script.
05.system is enabled by default at first-time install because
we have seen many cases where performance issues and other issues
have been reported, there is a resource problem on a node and the
user is blissfully unaware... and blames CTDB for performing badly.
The entire purpose of this script is for us to be able to look at
someone's logs and say "performance was bad because you ran out of
memory" or similar. ;-)
* 10.interface is used to manage public IP addresses
This monitors interfaces and, when directed by the daemon, "moves"
public IP addresses
I think that in a previous email you said that you are current unable
to use CTDB's public IP addresses, so you probably don't need this.
10.interface is enabled by default at first-time install because we
assume most people will use public IP addresses.
peace & happiness,
More information about the samba