mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
60.nfs
Try to restart LOCKD after 10 failures and flag the node as unhealthy after 15 failures (This used to be ctdb commit 5a67889c9166835aef3443051812d14af07dfca5)
This commit is contained in:
parent
57e74f6d8a
commit
e9ff38be7d
@ -107,12 +107,29 @@ case "$1" in
|
||||
} || exit $?
|
||||
|
||||
# check that lockd responds to rpc requests
|
||||
ctdb_check_rpc "LOCKD" 100021 1 || {
|
||||
echo "Trying to restart lock manager service"
|
||||
startstop_nfs restart
|
||||
startstop_nfslock restart
|
||||
exit 1
|
||||
}
|
||||
if ctdb_check_rpc "LOCKD" 100021 1 >/dev/null ; then
|
||||
(service_name="lockd"; ctdb_counter_init)
|
||||
else
|
||||
(
|
||||
service_name="lockd"
|
||||
ctdb_counter_incr
|
||||
|
||||
ctdb_check_counter_equal 10 || {
|
||||
echo "Trying to restart NFS lock service"
|
||||
startstop_nfs restart >/dev/null 2>&1 &
|
||||
startstop_nfslock restart >/dev/null 2>&1 &
|
||||
exit 0
|
||||
}
|
||||
|
||||
ctdb_check_counter_limit 15 quiet >/dev/null
|
||||
) || {
|
||||
echo "$ctdb_check_rpc_out"
|
||||
echo "Trying to restart NFS lock service"
|
||||
startstop_nfs restart
|
||||
startstop_nfslock restart
|
||||
exit 1
|
||||
}
|
||||
fi
|
||||
|
||||
# mount needs special handling since it is sometimes not started
|
||||
# correctly on RHEL5
|
||||
|
Loading…
Reference in New Issue
Block a user