1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00
samba-mirror/ctdb/tests/recover.sh
Ronnie Sahlberg c06c1e1f9f remove sleep from the fetch test
add a test script to start 4 daemons to test recovery

(This used to be ctdb commit 09eab12b00934afa5159fc500faf6b07effb2804)
2007-05-02 13:14:12 +10:00

38 lines
868 B
Bash
Executable File

#!/bin/sh
killall -q ctdbd
echo "Starting 4 ctdb daemons"
bin/ctdbd --nlist direct/4nodes.txt
bin/ctdbd --nlist direct/4nodes.txt
bin/ctdbd --nlist direct/4nodes.txt
bin/ctdbd --nlist direct/4nodes.txt
echo "Testing ping"
bin/ctdb_control ping || exit 1
echo "Testing status"
bin/ctdb_control status all || exit 1
echo "Testing statusreset"
bin/ctdb_control statusreset all || exit 1
echo "Testing debug"
bin/ctdb_control debug all 5 || exit 1
bin/ctdb_control debuglevel || exit 1
bin/ctdb_control debug all 0 || exit 1
bin/ctdb_control debuglevel || exit 1
echo "Testing map calls"
bin/ctdb_control getvnnmap 0 || exit 1
echo "Attaching to some databases"
bin/ctdb_control attach test1.tdb || exit 1
bin/ctdb_control attach test2.tdb || exit 1
echo "Testing getdbmap"
bin/ctdb_control getdbmap 0 || exit 1
#leave the ctdb daemons running
#killall -q ctdbd