5 LUSTRE=${LUSTRE:-`dirname $0`/..}
6 . $LUSTRE/tests/test-framework.sh
10 # QE uses the following parameters:
11 # size=128 crghi=16 thrhi=32
16 . ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
18 [ "$SLOW" = no ] && { crghi=2; thrhi=2; }
21 ALWAYS_EXCEPT="$SGPDD_SURVEY_EXCEPT"
33 local params="size=$size crghi=$crghi thrhi=$thrhi"
34 do_rpc_nodes $host run_sgpdd $devs "$params"
42 for facet in ${facets//,/ }; do
43 local host=$(facet_host $facet)
44 local dev=${facet}_dev
46 local var=$(node_var_name $host)_devs
47 eval ${var}=$(expand_list ${!var} ${!dev})
48 facetshosts=$(expand_list $facetshosts $host)
51 for host in ${facetshosts//,/ }; do
52 var=$(node_var_name $host)_devs
53 echo "=== $facets === $host === ${!var} ==="
54 local scsidevs=${!var}
55 run_sgpdd_host $host ${scsidevs}
60 check_progs_installed $(facets_hosts mds) $SGPDDSURVEY sg_map || \
61 { skip_env "SGPDDSURVEY=$SGPDDSURVEY or sg_map not found" && return 0; }
65 run_test 1 "sgpdd-survey, mds, scsidevs"
68 local osts=$(get_facets OST)
70 check_progs_installed $(facets_hosts $osts) $SGPDDSURVEY sg_map || \
71 { skip_env "SGPDDSURVEY=$SGPDDSURVEY or sg_map not found" && return 0; }
73 run_sgpdd_facets $osts
75 run_test 2 "sgpdd-survey, osts, scsidevs"
77 complete $(basename $0) $SECONDS