]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-doc: Add example for NFS-Ganesha RPC checking
authorMartin Schwenke <mschwenke@ddn.com>
Mon, 4 Mar 2024 03:28:11 +0000 (14:28 +1100)
committerMartin Schwenke <martins@samba.org>
Tue, 25 Jun 2024 03:16:37 +0000 (03:16 +0000)
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>
ctdb/doc/examples/21.nfs.check [new file with mode: 0644]
ctdb/doc/examples/README
ctdb/doc/examples/nfs-ganesha-callout

diff --git a/ctdb/doc/examples/21.nfs.check b/ctdb/doc/examples/21.nfs.check
new file mode 100644 (file)
index 0000000..0a230e7
--- /dev/null
@@ -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"
index a4ea2228b509b15a06ee978c87af160f74f748e2..02f552aee32f758312feb60a182f6a552cef4f7c 100644 (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.
index d57a659da11f7f3f376a6e5bc3896c3ef8495f10..74c3ad5c1f9ee3158fae08a6e40cd6c13c52a6ab 100755 (executable)
@@ -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.
 #