[PATCH] CTDB configuration changes and related cleanups

Martin Schwenke martin at meltin.net
Tue May 1 00:55:24 UTC 2018

This continues the march towards CTDB having a Samba-style
configuration file, which we can then use for various components.


* Drop support for CTDB_DBDIR=tmpfs

  This is too hard to support in the new configuration scheme.  This
  can be easily automated in a flexible manner via a systemd
  ExecStartPre option or via SysV init sysconfig or default script.

* Change default volatile database directory to new "volatile" subdirectory

  This is necessary if we suggest that admins mount a tmpfs on the
  volatile database directory - it can't contain the persistent
  database directory!

* Documentation tweaks to make subsequent changes more straightforward

* Drop configuration variables relating to notifications

  CTDB will soon have a standard (i.e. not individually configurable)
  directory where notification scripts can be placed.  CTDB will use
  this internally to integrate loosely coupled components.  Others can
  hook in to this as well.

* Change and/or drop some testing variables

  New variable CTDB_LOCAL_DAEMON_MODE follows the new convention of
  using environment variable for top-level testing options instead of
  using user-visible command-line options.

  --sloppy-start and --nopublicipcheck options are dropped because they
  are now handled by CTDB_LOCAL_DAEMON_MODE.

  CTDB_VALGRIND, --torture and --valgrinding are also dropped.

* Documentation of test and debugging options is moved to
  ctdb/tests/README, instead of having these options in user level

* Clean up main(), including pulling one of the "client" functions into

* ctdbd now logs the logging location via syslog() when ctdbd is not
  configured to log via syslog()

  This replaces a warning logged by ctdbd_wrapper via logger(1).

* ctdbd_wrapper no longer warns when no recovery lock is configured

  ctdbd already does this.

Please review and maybe push...

peace & happiness,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ctdb.patch
Type: text/x-patch
Size: 76300 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180501/a0febe19/ctdb-0001.bin>

More information about the samba-technical mailing list