From 5cf9d3b11d78b73ffaa3a246d1fae3ff5559119f Mon Sep 17 00:00:00 2001 From: Nathan Rutman Date: Fri, 4 Jun 2010 14:17:05 -0700 Subject: [PATCH] b=21900 verify that the pool ost is available i=dmitry.zoguine --- lustre/tests/ost-pools.sh | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/lustre/tests/ost-pools.sh b/lustre/tests/ost-pools.sh index 2699b46..bb5b29b 100644 --- a/lustre/tests/ost-pools.sh +++ b/lustre/tests/ost-pools.sh @@ -1319,11 +1319,20 @@ test_25() { wait_osc_import_state mds ost FULL 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 + # Verify that the pool got created and is usable + 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