1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/ctdb/doc/examples
Martin Schwenke e704eb580a ctdb-scripts: Use CTDB_NFS_SHARED_STATE_DIR in nfs-ganesha-callout
Rename CTDB_NFS_STATE_MNT to CTDB_NFS_SHARED_STATE_DIR.  It doesn't
have to be a mount but can be any directory in a cluster filesystem.
CTDB_NFS_SHARED_STATE_DIR will soon be used in statd_callout_helper,
so the variable name might as well be better.

With this change, it will still only be used by nfs-ganesha-callout,
which isn't yet supported (i.e. it still lives in doc/examples).  The
rest of the comments below refer to behaviour changes in that script.

CTDB_NFS_SHARED_STATE_DIR is now mandatory when GPFS is used.  This is
much saner that choosing the first GPFS filesystem - if the state
directory changes then connection metadata can be lost.

Drop CTDB_NFS_STATE_FS_TYPE.  The filesystem type is now determined
from CTDB_NFS_SHARED_STATE_DIR and it is now checked against supported
filesystems.  This will catch the case when the filesystem for the
specified directory has not been mounted and the filesystem for the
mountpoint (e.g. ext4) is not a supported filesystem for shared state.

A side-effect is that the filesystem containing
CTDB_NFS_SHARED_STATE_DIR must be mounted when nfs-ganesha-callout is
first run.

While touching this file, my shfmt pre-commit hook wants to insert a
trailing ;; into a case statement.  Let's sneak that in here too.

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2024-12-13 13:57:32 +00:00
..
11.natgw.options ctdb-docs: Add example configuration files 2018-05-17 04:04:32 +02:00
20.nfs_ganesha.check ctdb-doc: Drop unnecessary, broken attempt at rpc.statd stack trace 2024-06-25 03:16:37 +00:00
21.nfs.check ctdb-doc: Add example for NFS-Ganesha RPC checking 2024-06-25 03:16:37 +00:00
91.lvs.options ctdb-docs: Add example configuration files 2018-05-17 04:04:32 +02:00
config_migrate.sh ctdb-scripts: Use CTDB_NFS_SHARED_STATE_DIR in nfs-ganesha-callout 2024-12-13 13:57:32 +00:00
config_migrate.test_input ctdb-doc: Switch tunable DisableIPFailover to a config option 2018-08-24 10:59:21 +02:00
ctdb.conf ctdb-config: [cluster] recovery lock -> [cluster] cluster lock 2022-01-17 10:21:33 +00:00
ctdb.spec.in ctdb-scripts: Add support for backing up persistent TDBs 2024-08-29 22:48:33 +00:00
nfs-ganesha-callout ctdb-scripts: Use CTDB_NFS_SHARED_STATE_DIR in nfs-ganesha-callout 2024-12-13 13:57:32 +00:00
README ctdb-doc: Add example for NFS-Ganesha RPC checking 2024-06-25 03:16:37 +00:00

This directory includes...

Sample CTDB configuration files:

  o ctdb.conf        - Main configuration file
  o 11.natgw.options - Options for the 11.natgw event script
  o 91.lvs.options   - Options for the 91.lvs event script

Sample 60.nfs configuration for NFS ganesha - callout script and
.check files

  o nfs-ganesha-callout
  o 20.nfs_ganesha.check
  o 21.nfs.check

See the comment at the top of nfs-ganesha-callout for instructions.