From 4766d4568bf45d74cbf8d41f9853d0afef3e4c45 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Mon, 4 Mar 2024 14:28:11 +1100 Subject: [PATCH] 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 Reviewed-by: Amitay Isaacs --- ctdb/doc/examples/21.nfs.check | 7 +++++++ ctdb/doc/examples/README | 3 ++- ctdb/doc/examples/nfs-ganesha-callout | 6 +++--- 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 ctdb/doc/examples/21.nfs.check diff --git a/ctdb/doc/examples/21.nfs.check b/ctdb/doc/examples/21.nfs.check new file mode 100644 index 00000000000..0a230e7886a --- /dev/null +++ b/ctdb/doc/examples/21.nfs.check @@ -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" diff --git a/ctdb/doc/examples/README b/ctdb/doc/examples/README index a4ea2228b50..02f552aee32 100644 --- a/ctdb/doc/examples/README +++ b/ctdb/doc/examples/README @@ -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. diff --git a/ctdb/doc/examples/nfs-ganesha-callout b/ctdb/doc/examples/nfs-ganesha-callout index d57a659da11..74c3ad5c1f9 100755 --- a/ctdb/doc/examples/nfs-ganesha-callout +++ b/ctdb/doc/examples/nfs-ganesha-callout @@ -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. #