From 91a2331f5db11c394b63791fee741e624e413bd1 Mon Sep 17 00:00:00 2001 From: Noopur Maheshwari Date: Tue, 31 May 2016 14:40:32 +0530 Subject: [PATCH] LU-8220 tests: stripe file over all active OSTs In test_iozone/parallel-scale-cifs, the iozone command creates the temporary files under test with default stripe count=1, that is, both the 256mb files reside on the same OST, over-utilizing the OST, resulting in Use%=100%(No space left on device). The fix is to create a sub-directory in the samba server mount point with a stripe count of -1 (stripe over all available OSTs) and then run iozone with this sub-directory path, so that all the temporary files created within this sub-directory, during iozone, reside on multiple OSTs and OST free space is utilized uniformly. Since the test suite mounts lustre client on smb server, the "lfs setstripe" command is executed on the smb server. Test-Parameters: trivial Seagate-bug-id: MRP-2179 Signed-off-by: Noopur Maheshwari Change-Id: If225b62848b5266dc51ef791ef0d9c8002f908a5 Reviewed-on: http://review.whamcloud.com/20515 Reviewed-by: Fan Yong Reviewed-by: Jian Yu Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/tests/parallel-scale-cifs.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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" -- 1.8.3.1