From 75bee6aad7f94552da87b411dda0b692d7b000f8 Mon Sep 17 00:00:00 2001 From: Nathan Rutman Date: Thu, 20 May 2010 12:08:50 -0700 Subject: [PATCH] b=21900 verify that we can write to the OST i=dmitry.zoguine a=nathan --- lustre/tests/ost-pools.sh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/lustre/tests/ost-pools.sh b/lustre/tests/ost-pools.sh index 3494da6..7f512bf 100644 --- a/lustre/tests/ost-pools.sh +++ b/lustre/tests/ost-pools.sh @@ -1324,10 +1324,19 @@ test_25() { clients_up # Veriy that the pool got created and is usable - df $POOL_ROOT - echo "Creating a file in pool$i" - create_file $POOL_ROOT/file$i pool$i || break - check_file_in_pool $POOL_ROOT/file$i pool$i || break + df $POOL_ROOT > /dev/null + sleep 5 + # Make sure OST0 can be striped on + $SETSTRIPE -o 0 -c 1 $POOL_ROOT/$tfile + STR=$($GETSTRIPE $POOL_ROOT/$tfile | grep 0x | cut -f2 | tr -d " ") + rm $POOL_ROOT/$tfile + if [[ "$STR" == "0" ]]; then + echo "Creating a file in pool$i" + create_file $POOL_ROOT/file$i pool$i || break + check_file_in_pool $POOL_ROOT/file$i pool$i || break + else + echo "OST 0 seems to be unavailable. Try later." + fi done rm -rf $POOL_ROOT -- 1.8.3.1