]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
add a small tool to monitor recovery
authorRonnie Sahlberg <sahlberg@ronnie>
Tue, 8 May 2007 22:05:53 +0000 (08:05 +1000)
committerRonnie Sahlberg <sahlberg@ronnie>
Tue, 8 May 2007 22:05:53 +0000 (08:05 +1000)
(This used to be ctdb commit b45936828713c31ee670e2106b49c2351234f310)

ctdb/tools/monitor_recovery.sh [new file with mode: 0755]

diff --git a/ctdb/tools/monitor_recovery.sh b/ctdb/tools/monitor_recovery.sh
new file mode 100755 (executable)
index 0000000..8a4ce6c
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+CTDB_CONTROL=./bin/ctdb_control
+XPOS=0
+
+$CTDB_CONTROL getnodemap 0 | egrep "^vnn:" | sed -e "s/^vnn://" -e "s/ .*$//" | while read NODE; do
+       xterm -geometry 30x25+$XPOS -e "while true; do sleep 1; clear; $CTDB_CONTROL getnodemap $NODE; $CTDB_CONTROL getvnnmap $NODE; $CTDB_CONTROL getrecmode $NODE; $CTDB_CONTROL getrecmaster $NODE;done" &
+       export XPOS=`expr $XPOS "+" "200"`
+
+done
+
+
+