Whamcloud - gitweb
b=19780
authormanoj <manoj>
Thu, 17 Sep 2009 16:56:35 +0000 (16:56 +0000)
committermanoj <manoj>
Thu, 17 Sep 2009 16:56:35 +0000 (16:56 +0000)
r=grev
r=alexey.lyashkov

New test that restarts the mds with an active pool

lustre/tests/ost-pools.sh

index c83a673..a07f247 100644 (file)
@@ -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