From a1cfa23d6055fd0843367154026d84d1ca8bc1ae Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Thu, 28 Oct 2010 13:43:57 +1100 Subject: 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 (This used to be ctdb commit 953dbfbddad656a64e30a6aca115cb1479d11573) --- ctdb/config/events.d/60.nfs | 1 + 1 file changed, 1 insertion(+) diff --git a/ctdb/config/events.d/60.nfs b/ctdb/config/events.d/60.nfs index ed96ab87e7..57c81d3520 100755 --- a/ctdb/config/events.d/60.nfs +++ b/ctdb/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 } -- cgit