From a65946eaac759c86acdc7201da715e28b44efd11 Mon Sep 17 00:00:00 2001 From: James Nunez Date: Tue, 30 Jul 2013 11:20:49 -0600 Subject: [PATCH] LU-3633 test: Sanity test 101d fails due to full OST Sanity test 101d checks the available space on the file system against the size of the file before writing, but the file stripe is never checked or set. So, test 101d has failed with enough space on the file system to write the file, but the default stripe was 1 and there was not enough space on that single OST for the file. This patch sets the stripe of the file to -1 (all OSTs) before writing to the file system. Signed-off-by: James Nunez Change-Id: I69b8f24bc6e6fe05c7179160bf89610516b9c5cb Reviewed-on: http://review.whamcloud.com/7179 Reviewed-by: Niu Yawei Reviewed-by: Keith Mannthey Tested-by: Hudson Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/tests/sanity.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 63b7464..8c37bcd 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -5882,12 +5882,13 @@ test_101d() { local space=$(df -P $DIR | tail -n 1 | awk '{ print $4 }') [ $space -gt $((size * 1024)) ] || - { skip "Need free space ${size}M, have $space" && return; } + { skip "Need free space ${size}M, have ${space}K" && return; } - echo Creating ${size}M test file $file - dd if=/dev/zero of=$file bs=1M count=$size || error "dd failed" - echo Cancel LRU locks on lustre client to flush the client cache - cancel_lru_locks osc + echo "Creating test file $file of size ${size}M with ${space}K free space" + $SETSTRIPE -c -1 $file || error "setstripe failed" + dd if=/dev/zero of=$file bs=1M count=$size || error "dd failed" + echo Cancel LRU locks on lustre client to flush the client cache + cancel_lru_locks osc echo Disable read-ahead local old_READAHEAD=$(set_read_ahead 0) -- 1.8.3.1