summaryrefslogtreecommitdiffstats
path: root/ctdb/config/events.d
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2009-10-19 15:33:20 +1100
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2009-10-19 15:33:20 +1100
commitcdc77af3ab06b5af32aebd9d841f7b49d49a1057 (patch)
tree7fb9487a8823709ae19f99db206ba3ff7271f82e /ctdb/config/events.d
parent1e91fd0a253e0ba3b2b892d7986362eda94514d2 (diff)
downloadsamba-cdc77af3ab06b5af32aebd9d841f7b49d49a1057.tar.gz
samba-cdc77af3ab06b5af32aebd9d841f7b49d49a1057.tar.xz
samba-cdc77af3ab06b5af32aebd9d841f7b49d49a1057.zip
wait a bit longer before shutting down when the reclock file is missing
pring the filename of the missing file when we turn unhealthy and also a 'df' (This used to be ctdb commit 97ded8a629ec762f71bad28515e4fbc810790b1d)
Diffstat (limited to 'ctdb/config/events.d')
-rwxr-xr-xctdb/config/events.d/01.reclock8
1 files changed, 5 insertions, 3 deletions
diff --git a/ctdb/config/events.d/01.reclock b/ctdb/config/events.d/01.reclock
index 74b9ceac86..281c0896b7 100755
--- a/ctdb/config/events.d/01.reclock
+++ b/ctdb/config/events.d/01.reclock
@@ -22,8 +22,9 @@ case $cmd in
monitor)
ctdb_counter_incr "$RECLOCKCOUNT"
- ctdb_counter_limit "$RECLOCKCOUNT" 20 && {
- echo "Reclock file can not be accessed. Shutting down."
+ ctdb_counter_limit "$RECLOCKCOUNT" 200 && {
+ echo "Reclock file \"$RECLOCKFILE\" can not be accessed. Shutting down."
+ df
sleep 1
ctdb shutdown
}
@@ -46,7 +47,8 @@ case $cmd in
ctdb_counter_limit "$RECLOCKCOUNT" 3 && {
- echo "Reclock file can not be accessed. Mark node UNHEALTHY."
+ echo "Reclock file \"$RECLOCKFILE\" can not be accessed. Mark node UNHEALTHY."
+ df
exit 1;
}
;;