From dcbfe8f066e1e86f042989ad4575835d3a0073a0 Mon Sep 17 00:00:00 2001 From: manoj Date: Thu, 17 Sep 2009 16:56:35 +0000 Subject: [PATCH] b=19780 r=grev r=alexey.lyashkov New test that restarts the mds with an active pool --- lustre/tests/ost-pools.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/lustre/tests/ost-pools.sh b/lustre/tests/ost-pools.sh index c83a673..a07f247 100644 --- a/lustre/tests/ost-pools.sh +++ b/lustre/tests/ost-pools.sh @@ -1311,6 +1311,31 @@ test_24() { } run_test 24 "Independence of pool from other setstripe parameters" +test_25() { + local POOL_ROOT=${POOL_ROOT:-$DIR/$tdir} + + mkdir -p $POOL_ROOT + + for i in $(seq 10); do + create_pool_nofail pool$i + stop mds -f || return 1 + sleep 10 + start mds $MDSDEV $MDS_MOUNT_OPTS || \ + error "Failed to start MDS after stopping" + + # Veriy that the pool got created and is usable + echo "Creating a file in pool$i" + create_file $POOL_ROOT/file$i pool$i + check_file_in_pool $POOL_ROOT/file$i pool$i + done + + rm -rf $POOL_ROOT + for i in $(seq 10); do + destroy_pool pool$i + done +} +run_test 25 "Create new pool and restart MDS =======================" + log "cleanup: ======================================================" cd $ORIG_PWD cleanup_tests -- 1.8.3.1