6 LUSTRE=${LUSTRE:-$(cd $(dirname $0)/..; echo $PWD)}
7 . $LUSTRE/tests/test-framework.sh
9 . ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
12 racer=$LUSTRE/tests/racer/racer.sh
13 echo racer: $racer with $MDSCOUNT MDTs
15 if [ "$SLOW" = "no" ]; then
16 DURATION=${DURATION:-300}
18 DURATION=${DURATION:-900}
20 MOUNT_2=${MOUNT_2:-"yes"}
23 check_and_setup_lustre
25 CLIENTS=${CLIENTS:-$HOSTNAME}
26 RACERDIRS=${RACERDIRS:-"$DIR $DIR2"}
27 echo RACERDIRS=$RACERDIRS
30 check_progs_installed $CLIENTS $racer ||
31 { skip_env "$racer not found" && exit 0; }
37 local clients=$CLIENTS
41 for d in ${RACERDIRS}; do
42 is_mounted $d || continue
44 RDIRS="$RDIRS $d/racer"
46 # lfs setstripe $d/racer -c -1
47 if [ $MDSCOUNT -ge 2 ]; then
48 for i in $(seq $((MDSCOUNT - 1))); do
49 RDIRS="$RDIRS $d/racer$i"
50 if [ ! -e $d/racer$i ]; then
51 $LFS mkdir -i $i $d/racer$i ||
52 error "lfs mkdir $i failed"
59 for rdir in $RDIRS; do
60 do_nodes $clients "DURATION=$DURATION MDSCOUNT=$MDSCOUNT \
61 $racer $rdir $NUM_RACER_THREADS" &
66 echo racers pids: $rpids
70 echo "pid=$pid rc=$rc"
78 run_test 1 "racer on clients: ${CLIENTS:-$(hostname)} DURATION=$DURATION"
81 check_and_cleanup_lustre