From: Ronnie Sahlberg Date: Thu, 28 Oct 2010 02:43:57 +0000 (+1100) Subject: Both nfs and nfslock scripts can fail under redhat in very rare situations. X-Git-Url: http://git.samba.org/?p=metze%2Fctdb%2Fwip.git;a=commitdiff_plain;h=953dbfbddad656a64e30a6aca115cb1479d11573 Both nfs and nfslock scripts can fail under redhat in very rare situations. Ctdb can also be configured to ignore checking for knfsd and if it is alive. In that situation, no attempt will be made to restart nfs, and sicne nfs is not running, lockd can not be restarted either. To workaround this, everytime we try to restart the lockmanager, also try to restart nfsd --- diff --git a/config/events.d/60.nfs b/config/events.d/60.nfs index ed96ab87..57c81d35 100755 --- a/config/events.d/60.nfs +++ b/config/events.d/60.nfs @@ -82,6 +82,7 @@ case "$1" in (ctdb_check_rpc "lockd" 100021 1) [ $? = "0" ] || { echo "Trying to restart lock manager service" + startstop_nfs restart startstop_nfslock restart exit 1 }