From 693663b3b9e7f823931fd79510e1292e63e4fe06 Mon Sep 17 00:00:00 2001 From: grev Date: Thu, 12 Feb 2009 18:45:48 +0000 Subject: [PATCH] b=17839 i=Brian recovery-mds-scale for SLOW=no --- lustre/tests/acceptance-small.sh | 1 - lustre/tests/recovery-mds-scale.sh | 27 +++++++++++++++------------ 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/lustre/tests/acceptance-small.sh b/lustre/tests/acceptance-small.sh index 912e184..b21af68 100755 --- a/lustre/tests/acceptance-small.sh +++ b/lustre/tests/acceptance-small.sh @@ -432,7 +432,6 @@ if [ "$PERFORMANCE_SANITY" != "no" ]; then PERFORMANCE_SANITY="done" fi -[ "$SLOW" = no ] && RECOVERY_MDS_SCALE="no" [ "$RECOVERY_MDS_SCALE" != "no" ] && skip_remmds recovery-mds-scale && RECOVERY_MDS_SCALE=no && MSKIPPED=1 [ "$RECOVERY_MDS_SCALE" != "no" ] && skip_remost recovery-mds-scale && RECOVERY_MDS_SCALE=no && OSKIPPED=1 if [ "$RECOVERY_MDS_SCALE" != "no" ]; then diff --git a/lustre/tests/recovery-mds-scale.sh b/lustre/tests/recovery-mds-scale.sh index 7440ed5..4d6bb7c 100644 --- a/lustre/tests/recovery-mds-scale.sh +++ b/lustre/tests/recovery-mds-scale.sh @@ -66,6 +66,20 @@ OSTS=$(comma_list $OSTS) ERRORS_OK="" # No application failures should occur during this test. FLAVOR=${FLAVOR:-"MDS"} +if [ "$FLAVOR" == "MDS" ]; then + SERVERS=$MDTS +else + SERVERS=$OSTS +fi + +if [ "$SLOW" = "no" ]; then + DURATION=${DURATION:-$((60 * 30))} + SERVER_FAILOVER_PERIOD=${SERVER_FAILOVER_PERIOD:-$((60 * 5))} +else + DURATION=${DURATION:-$((60 * 60 * 24))} + SERVER_FAILOVER_PERIOD=${SERVER_FAILOVER_PERIOD:-$((60 * 10))} # 10 minutes +fi + rm -f $END_RUN_FILE vmstatLOG=${TESTSUITELOG}_$(basename $0 .sh).vmstat @@ -152,7 +166,6 @@ log "-----============= $0 starting =============-----" trap summary_and_cleanup EXIT INT -DURATION=${DURATION:-$((60*60*24))} ELAPSED=0 NUM_FAILOVERS=0 @@ -176,16 +189,6 @@ fi START_TS=$(date +%s) CURRENT_TS=$START_TS -if [ "$FLAVOR" == "MDS" ]; then - SERVER_FAILOVER_PERIOD=$MDS_FAILOVER_PERIOD - SERVERS=$MDTS -else - SERVER_FAILOVER_PERIOD=$OSS_FAILOVER_PERIOD - SERVERS=$OSTS -fi - -SERVER_FAILOVER_PERIOD=${SERVER_FAILOVER_PERIOD:-$((60 * 10))} # 10 minutes - MINSLEEP=${MINSLEEP:-120} REQFAIL_PERCENT=${REQFAIL_PERCENT:-3} # bug17839 comment 62 REQFAIL=${REQFAIL:-$(( DURATION / SERVER_FAILOVER_PERIOD * REQFAIL_PERCENT / 100))} @@ -213,7 +216,7 @@ while [ $ELAPSED -lt $DURATION -a ! -e $END_RUN_FILE ]; do exit 4 fi - log "Starting failover on $SERVERNODE" + log "Starting failover on $SERVERFACET" facet_failover "$SERVERFACET" || exit 1 -- 1.8.3.1