mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
c5e4ce360a
(This used to be ctdb commit 439d87bbb9840f82937e51aff4fe2b80160878c6)
28 lines
548 B
Bash
Executable File
28 lines
548 B
Bash
Executable File
#!/bin/sh
|
|
|
|
NUMNODES=2
|
|
if [ $# -gt 0 ]; then
|
|
NUMNODES=$1
|
|
fi
|
|
|
|
rm -f nodes.txt
|
|
for i in `seq 1 $NUMNODES`; do
|
|
echo 127.0.0.$i >> nodes.txt
|
|
done
|
|
|
|
killall -q ctdbd
|
|
echo "Trying $NUMNODES nodes"
|
|
for i in `seq 1 $NUMNODES`; do
|
|
$VALGRIND bin/ctdbd --reclock=rec.lock --nlist nodes.txt --event-script=tests/events --logfile=- --socket=sock.$i
|
|
done
|
|
|
|
killall -9 -q ctdb_fetch
|
|
for i in `seq 1 $NUMNODES`; do
|
|
$VALGRIND bin/ctdb_fetch --socket sock.$i -n $NUMNODES $* &
|
|
done
|
|
wait
|
|
|
|
echo "Shutting down"
|
|
bin/ctdb shutdown -n all --socket=sock.1
|
|
exit 0
|