X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fparallel-scale-cifs.sh;h=9e99d80ad1444450bd3c56b353abd8fd285f4f0d;hb=6e985684b822324143c686e919fe7a75bb16b440;hp=b47e0436fdf2102efcbbec1b3d82b12185663e21;hpb=1bf48948a99f51ede84a467a23c59c55eb055d7b;p=fs%2Flustre-release.git diff --git a/lustre/tests/parallel-scale-cifs.sh b/lustre/tests/parallel-scale-cifs.sh index b47e043..9e99d80 100644 --- a/lustre/tests/parallel-scale-cifs.sh +++ b/lustre/tests/parallel-scale-cifs.sh @@ -211,6 +211,9 @@ test_iozone() { [[ $((size * nclients)) -gt $((space * 3 / 4)) ]] && size=$((space * 3 / 4 / nclients)) + do_node $LUSTRE_CLIENT_SMBSRV "mkdir $SMBSRVMNTPT/$tdir + lfs setstripe -c -1 $SMBSRVMNTPT/$tdir" + log "free space: $space Kb, using $size size, $nclients number of clients" local cmd="iozone -a -e -+d -s $size " @@ -219,8 +222,8 @@ test_iozone() { do_nodesv $clients "set -x; \ PATH=\$PATH \ - $cmd -f $SMBCLIMNTPT/f0.iozone_\\\$(hostname) 2>&1 | tee $log; \ - exit \\\${PIPESTATUS[0]}" & + $cmd -f $SMBCLIMNTPT/$tdir/f0.iozone_\\\$(hostname) \ + 2>&1 | tee $log; exit \\\${PIPESTATUS[0]}" & pid=$! # check that iozone is started on all clients after @@ -237,6 +240,7 @@ test_iozone() { rc=$? log "Processing iozone log" do_nodesv $clients "tail -1 $log | grep -q complete" || rc=2 + do_node $LUSTRE_CLIENT_SMBSRV "rm -rf $SMBSRVMNTPT/$tdir" [ $rc -eq 0 ] || error "iozone load on $clients failed! rc=$rc" } run_test iozone "iozone on cifs clients"