1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-29 13:49:30 +03:00

dont shutdown a node when the reclock file is temporarily unavailable.

Leave the node as UNHEALTHY this stops clients from accessing the node until
the reclock file can be accessed again

(This used to be ctdb commit f5e9f3007c10a937158bc8cdfabf33c984cf9c50)
This commit is contained in:
Ronnie Sahlberg
2009-10-15 13:19:10 +11:00
parent 9de3652380
commit d258616984

View File

@ -21,13 +21,6 @@ case $cmd in
;;
monitor)
ctdb_counter_incr "$RECLOCKCOUNT"
ctdb_counter_limit "$RECLOCKCOUNT" 20 && {
echo "Reclock file can not be accessed. Shutting down."
sleep 1
ctdb shutdown
}
RECLOCKFILE=`ctdb -Y getreclock`
[ -z "$RECLOCKFILE" ] && {
# we are not using a reclock file
@ -35,6 +28,8 @@ case $cmd in
exit 0
}
ctdb_counter_incr "$RECLOCKCOUNT"
# try stat the reclock file as a background process
# so that we dont block in case the cluster filesystem is unavailable
(