ctdb-scripts: Use CTDB_NFS_SHARED_STATE_DIR in nfs-ganesha-callout
authorMartin Schwenke <mschwenke@ddn.com>
Wed, 5 Jul 2023 22:20:37 +0000 (08:20 +1000)
committerMartin Schwenke <mschwenke@ddn.com>
Fri, 10 May 2024 08:12:05 +0000 (18:12 +1000)
commit43e0755c82ceeb119a1fc64b9bb0cb9dca837a5a
tree1d7885f3c5e9edef43f39358b8b59623662c6d08
parent5c0e619796734e6ef37a819356f3e7ace57ed99d
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.
There are plans to also use CTDB_NFS_SHARED_STATE_DIR for
statd-callout, so the name might as well be better.

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.

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
ctdb/config/functions
ctdb/doc/ctdb-script.options.5.xml
ctdb/doc/examples/config_migrate.sh
ctdb/doc/examples/nfs-ganesha-callout