1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00
samba-mirror/ctdb/doc
Martin Schwenke 08310072aa ctdb-scripts: Support storing statd-callout state in cluster filesystem
CTDB_STATD_CALLOUT_SHARED_STORAGE is a new configuration variable
indicating where statd-callout should store its NFS client locking
data.  See the update to ctdb-script.options(5) for details.

This adds back functionality that was removed in commit
12cc826231.  The commit message doesn't
say why this was changed but it was most likely due to a cluster
filesystem hanging at inopportune times.  Hence, this is re-added as a
non-default option.  There are 2 justifications for re-adding it:

* The existing method (persistent_db) relies on dequeuing data during
  the monitor event, which loses any queued data on node crash.

* NFS-Ganesha writes NFSv4 client locking data to a cluster
  filesystem, by default.  Something similar might as well exist for
  NFSv3.

Note that this could create the files for sm-notify in add-client.
However, this would require an alternate implementation of
send_notifies() (or a change to the implementation for persistent_db
too).  It seems better to leave add-client lightweight and do the work
in notify, since add-client is a more frequent operation.

Unconditionally create the state directory on startup.  This is
currently implicitly created for persistent_db when the queue
directory is created.  However, it isn't created anywhere else for
shared_dir, so do it in a common place.

In test mode, the shared storage location has a prefix added so files
are created within the test environment.

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2024-12-13 13:57:32 +00:00
..
examples ctdb-scripts: Use CTDB_NFS_SHARED_STATE_DIR in nfs-ganesha-callout 2024-12-13 13:57:32 +00:00
cluster_mutex_helper.txt ctdb-config: [cluster] recovery lock -> [cluster] cluster lock 2022-01-17 10:21:33 +00:00
ctdb_diagnostics.1.xml ctdb-doc: Update CTDB manual pages to UTF-8 2023-10-03 03:53:35 +00:00
ctdb_mutex_ceph_rados_helper.7.xml ctdb/docs: Include ceph rados namespace support in man page 2024-06-14 07:42:25 +00:00
ctdb-etcd.7.xml ctdb-doc: Update CTDB manual pages to UTF-8 2023-10-03 03:53:35 +00:00
ctdb-script.options.5.xml ctdb-scripts: Support storing statd-callout state in cluster filesystem 2024-12-13 13:57:32 +00:00
ctdb-statistics.7.xml ctdb-doc: Update CTDB manual pages to UTF-8 2023-10-03 03:53:35 +00:00
ctdb-tunables.7.xml docs-xml: Fix documentation 2023-10-25 22:23:37 +00:00
ctdb.1.xml ctdb-scripts: Move database handling to its own event script 2024-08-29 22:48:33 +00:00
ctdb.7.xml ctdb-doc: document nodes list configuration parameter 2024-08-06 01:50:12 +00:00
ctdb.conf.5.xml ctdb-tcp: Only attempt to automatically bind to local IPs 2024-10-07 15:58:38 +00:00
ctdb.sysconfig.5.xml ctdb-doc: Update CTDB manual pages to UTF-8 2023-10-03 03:53:35 +00:00
ctdbd.1.xml ctdb-doc: Update CTDB manual pages to UTF-8 2023-10-03 03:53:35 +00:00
ltdbtool.1.xml ctdb-doc: Update CTDB manual pages to UTF-8 2023-10-03 03:53:35 +00:00
onnode.1.xml ctdb-doc: Update CTDB manual pages to UTF-8 2023-10-03 03:53:35 +00:00
ping_pong.1.xml ctdb-doc: Update CTDB manual pages to UTF-8 2023-10-03 03:53:35 +00:00
readonlyrecords.txt ctdb:doc: Fix code spelling 2023-04-04 07:31:36 +00:00