X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Frecovery-mds-scale.sh;h=0ab99990c70dd8e940f07bfdcf2bc72ed3bb0b5d;hp=675988c8da5693a44cee808153088d5c972a62e7;hb=fb19103b08d413c228a755e639daadba427d25e6;hpb=3b524b627b87ac0f1355658dbbe2e4a16cda122b diff --git a/lustre/tests/recovery-mds-scale.sh b/lustre/tests/recovery-mds-scale.sh index 675988c..0ab9999 100644 --- a/lustre/tests/recovery-mds-scale.sh +++ b/lustre/tests/recovery-mds-scale.sh @@ -14,6 +14,7 @@ CLEANUP=${CLEANUP:-""} init_test_env $@ . ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh} +init_logging TESTSUITELOG=${TESTSUITELOG:-$TMP/$(basename $0 .sh)} DEBUGLOG=$TESTSUITELOG.debug @@ -261,11 +262,19 @@ while [ $ELAPSED -lt $DURATION -a ! -e $END_RUN_FILE ]; do if [ $sleep -lt $MINSLEEP ]; then reqfail=$((reqfail +1)) log "WARNING: failover and two check_client_loads time exceeded SERVER_FAILOVER_PERIOD - MINSLEEP ! -Failed to meet interval $reqfail times ( REQFAIL=$REQFAIL ); have sleep=$sleep" +Failed to load the filesystem with I/O for a minimum period of $MINSLEEP $reqfail times ( REQFAIL=$REQFAIL ). +This iteration, the load was only applied for sleep=$sleep seconds. +Probably the hardware is taking excessively long to boot. +Try to increase SERVER_FAILOVER_PERIOD (current is $SERVER_FAILOVER_PERIOD), bug 20918" [ $reqfail -gt $REQFAIL ] && exit 6 fi log "$SERVERFACET has failed over ${!var} times, and counting..." + + if [ $((ELAPSED + sleep)) -gt $DURATION ]; then + break + fi + if [ $sleep -gt 0 ]; then echo "sleeping $sleep seconds ... " sleep $sleep