1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00

ctdb-doc: Add example for NFS-Ganesha RPC checking

This one does an rpcinfo check, along with statistics mitigation.  It
can be used in combination with the existing 20.nfs_ganesha.check.

The equivalent kernel NFS file only restarts every 10 failures.  This
one can be a little more proactive given that false positives are less
likely with the statistics mitigation.

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2024-03-04 14:28:11 +11:00 committed by Martin Schwenke
parent d96078e263
commit 4766d4568b
3 changed files with 12 additions and 4 deletions

View File

@ -0,0 +1,7 @@
# nfs_ganesha RPC
restart_every=6
unhealthy_after=2
service_stop_cmd="$CTDB_NFS_CALLOUT stop nfs"
service_start_cmd="$CTDB_NFS_CALLOUT start nfs"
service_stats_cmd="$CTDB_NFS_CALLOUT stats nfs"
service_debug_cmd="program_stack_traces ganesha.nfsd"

View File

@ -7,9 +7,10 @@ Sample CTDB configuration files:
o 91.lvs.options - Options for the 91.lvs event script
Sample 60.nfs configuration for NFS ganesha - callout script and
.check file
.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.

View File

@ -15,9 +15,9 @@
# copy of) this script, making sure it is executable.
#
# * Create a new directory alongside the nfs-checks.d directory, for
# example nfs-checks-ganesha.d. Install 20.nfs-ganesha.check in
# this directory. Symlink to any other check files from
# nfs-checks.d that should still be used, such as
# example nfs-checks-ganesha.d. Install 20.nfs_ganesha.check and
# 21.nfs.check in this directory. Symlink to any other check files
# from nfs-checks.d that should still be used, such as
# 00.portmapper.check. Set CTDB_NFS_CHECKS_DIR to point to this new
# directory of check files.
#