5 LUSTRE=${LUSTRE:-`dirname $0`/..}
6 . $LUSTRE/tests/test-framework.sh
8 . ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
11 # QE uses the following parameters:
12 # size=128 crghi=16 thrhi=32
17 [ "$SLOW" = no ] && { crghi=2; thrhi=2; }
19 if ! ([ "$SGPDD_YES" ] && [ "$REFORMAT" ]); then
20 skip_env "$0 reformats all devices, please set SGPDD_YES and REFORMAT to run this test"
25 ALWAYS_EXCEPT="$SGPDD_SURVEY_EXCEPT"
37 local params="size=$size crghi=$crghi thrhi=$thrhi"
38 do_rpc_nodes $host run_sgpdd $devs "$params"
46 for facet in ${facets//,/ }; do
47 local host=$(facet_host $facet)
48 local dev=${facet}_dev
49 local var=$(node_var_name ${host}_devs)
50 eval ${var}=$(expand_list ${!var} ${!dev})
51 facetshosts=$(expand_list $facetshosts $host)
54 for host in ${facetshosts//,/ }; do
55 var=$(node_var_name ${host}_devs)
56 echo "=== $facets === $host === ${!var} ==="
57 local scsidevs=${!var}
58 run_sgpdd_host $host ${scsidevs}
63 local mdss=$(get_facets MDS)
65 check_progs_installed $(facets_hosts $mdss) $SGPDDSURVEY sg_map || \
66 { skip_env "SGPDDSURVEY=$SGPDDSURVEY or sg_map not found" && return 0; }
68 run_sgpdd_facets $mdss
70 run_test 1 "sgpdd-survey, mds, scsidevs"
73 local osts=$(get_facets OST)
75 check_progs_installed $(facets_hosts $osts) $SGPDDSURVEY sg_map || \
76 { skip_env "SGPDDSURVEY=$SGPDDSURVEY or sg_map not found" && return 0; }
78 run_sgpdd_facets $osts
80 run_test 2 "sgpdd-survey, osts, scsidevs"