#!/bin/bash
-set -e
######################################################################
# customize per survey
host=${host_names[$i]}
devno=($(get_ec_devno $host "${client_names[$i]}" "${ost_names[$i]}"))
if ((${#devno[@]} != 3)); then
- exit 1
+ cleanup 2
fi
devnos[$i]=${devno[0]}
client_names[$i]=${devno[1]}
rm $tmpf
if [ $first_obj = "ERROR" ]; then
print_summary "created object #s on $client_name not contiguous"
- exit 1
+ cleanup 3
fi
first_objs[$idx]=$first_obj
done # $ndevs
declare -a pidarray
for host in ${unique_hosts[@]}; do
remote_shell $host \
- "lctl set_param -n osd*.*OST*.force_sync 1 &>/dev/null || true"
+ "lctl set_param -n osd*.*.force_sync 1 &>/dev/null || true"
echo "starting run for test: $test rsz: $rsz " \
"threads: $thr objects: $nobj" >> ${vmstatf}_${host}
done
local cmd="NETTYPE=$NETTYPE thrlo=$thrlo nobjhi=$nobjhi thrhi=$thrhi size=$size case=$case rslt_loc=${TMP} targets=\"$targets\" $OBDSURVEY"
echo + $cmd
eval $cmd
+ local rc=$?
cat ${TMP}/obdfilter_survey*
+ [ $rc = 0 ] || error "$OBDSURVEY failed: $rc"
}
test_1a () {
obdflter_survey_run disk
nfs_client_mode && return
cifs_client_mode && return
- CLEANUP_DM_DEV=true stopall $*
cleanup_echo_devs
+ CLEANUP_DM_DEV=true stopall $*
unload_modules
cleanup_sk