1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-20 22:50:26 +03:00

add a small tool to monitor recovery

(This used to be ctdb commit b45936828713c31ee670e2106b49c2351234f310)
This commit is contained in:
Ronnie Sahlberg 2007-05-09 08:05:53 +10:00
parent 5efa3d88c5
commit 2befe18e29

13
ctdb/tools/monitor_recovery.sh Executable file
View File

@ -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