From 735bdd57d906e4a32092759c1b346398581b107f Mon Sep 17 00:00:00 2001 From: shadow Date: Fri, 1 May 2009 11:40:35 +0000 Subject: [PATCH] set notransno before readonly. Branch b1_8 b=19085 i=rread i=adilger --- lustre/tests/replay-single.sh | 24 ++++++++++++++++-------- lustre/tests/test-framework.sh | 7 +++---- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/lustre/tests/replay-single.sh b/lustre/tests/replay-single.sh index 21d56d8..b7966fd 100755 --- a/lustre/tests/replay-single.sh +++ b/lustre/tests/replay-single.sh @@ -1782,7 +1782,7 @@ test_70b () { zconf_mount_clients $clients $DIR - local duration=120 + local duration=300 [ "$SLOW" = "no" ] && duration=60 local cmd="rundbench 1 -t $duration" local PID="" @@ -1793,15 +1793,23 @@ test_70b () { PID=$! log "Started rundbench load PID=$PID ..." - sleep $((duration / 4)) - replay_barrier mds - sleep 3 # give clients a time to do operations - - log "$TESTNAME fail mds 1" - fail mds + ELAPSED=0 + NUM_FAILOVERS=0 + START_TS=$(date +%s) + CURRENT_TS=$START_TS + while [ $ELAPSED -lt $duration ]; do + sleep 1 + replay_barrier mds + sleep 1 # give clients a time to do operations + # Increment the number of failovers + NUM_FAILOVERS=$((NUM_FAILOVERS+1)) + log "$TESTNAME fail mds1 $NUM_FAILOVERS times" + facet_failover mds + CURRENT_TS=$(date +%s) + ELAPSED=$((CURRENT_TS - START_TS)) + done wait $PID || error "rundbench load on $CLIENTS failed!" - } run_test 70b "mds recovery; $CLIENTCOUNT clients" # end multi-client tests diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 3d3e1df..332df64 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -1007,8 +1007,8 @@ replay_barrier() { do_facet $facet sync df $MOUNT local svc=${facet}_svc - do_facet $facet $LCTL --device %${!svc} readonly do_facet $facet $LCTL --device %${!svc} notransno + do_facet $facet $LCTL --device %${!svc} readonly do_facet $facet $LCTL mark "$facet REPLAY BARRIER on ${!svc}" $LCTL mark "local REPLAY BARRIER on ${!svc}" } @@ -1018,8 +1018,8 @@ replay_barrier_nodf() { do_facet $facet sync local svc=${facet}_svc echo Replay barrier on ${!svc} - do_facet $facet $LCTL --device %${!svc} readonly do_facet $facet $LCTL --device %${!svc} notransno + do_facet $facet $LCTL --device %${!svc} readonly do_facet $facet $LCTL mark "$facet REPLAY BARRIER on ${!svc}" $LCTL mark "local REPLAY BARRIER on ${!svc}" } @@ -1446,8 +1446,7 @@ check_config () { mgshost=$(echo $mgshost | awk -F: '{print $1}') if [ "$mgshost" != "$myMGS_host" ]; then - FAIL_ON_ERROR=true \ - error "Bad config file: lustre is mounted with mgs $mgshost, but mgs_HOST=$mgs_HOST, NETTYPE=$NETTYPE + log "Bad config file: lustre is mounted with mgs $mgshost, but mgs_HOST=$mgs_HOST, NETTYPE=$NETTYPE Please use correct config or set mds_HOST correctly!" fi -- 1.8.3.1