#!/bin/bash
-# vim:shiftwidth=4:softtabstop=4:tabstop=4:
-
+#
# client failure does not affect other clients
# Start load on clients (each client works on it's own directory).
ONLY=${ONLY:-"$*"}
+LUSTRE=${LUSTRE:-$(dirname $0)/..}
+. $LUSTRE/tests/test-framework.sh
+init_test_env $@
+init_logging
+
# bug number for skipped test:
ALWAYS_EXCEPT="$RECOVERY_RANDOM_SCALE_EXCEPT"
# UPDATE THE COMMENT ABOVE WITH BUG NUMBERS WHEN CHANGING ALWAYS_EXCEPT!
-LUSTRE=${LUSTRE:-$(cd $(dirname $0)/..; echo $PWD)}
-. $LUSTRE/tests/test-framework.sh
-init_test_env $@
-. ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
-init_logging
+build_test_filter
remote_mds_nodsh && skip_env "remote MDS with nodsh" && exit 0
remote_ost_nodsh && skip_env "remote OST with nodsh" && exit 0
VMSTAT_PID_FILE=${VMSTAT_PID_FILE:-$TMP/vmstat.pid}
numfailovers () {
- local facet
- local var
-
- for facet in $MDTS ${FAILED_CLIENTS//,/ }; do
- var=${facet}_nums
- val=${!var}
- if [ "$val" ] ; then
- echo "$facet failed over $val times"
- fi
- done
+ local facet
+ local var
+
+ for facet in ${MDTS//,/ } ${FAILED_CLIENTS//,/ }; do
+ var=$(node_var_name $facet)_nums
+ val=${!var}
+ if [ "$val" ] ; then
+ echo "$facet failed over $val times"
+ fi
+ done
}
summary_and_cleanup () {
}
################################## Main Flow ###################################
-build_test_filter
-
check_and_setup_lustre
rm -rf $DIR/[Rdfs][0-9]*
# lists are comma separated
FAILED_CLIENTS=$(expand_list $FAILED_CLIENTS $fail_client)
- serverfacet=$(get_random_entry $MDTS)
- var=${serverfacet}_nums
+ serverfacet=$(get_random_entry $MDTS)
+ var=$(node_var_name $serverfacet)_nums
# Check that our client loads are still running. If any have died,
# that means they have died outside of recovery, which is unacceptable.