Whamcloud - gitweb
Landing b_recovery
[fs/lustre-release.git] / lustre / tests / replay-ost-single.sh
index 56e6faa..d31b348 100755 (executable)
@@ -12,7 +12,8 @@ init_test_env $@
 ostfailover_HOST=${ostfailover_HOST:-$ost_HOST}
 
 # Skip these tests
-ALWAYS_EXCEPT=""
+ALWAYS_EXCEPT="5"
+# test 5 needs a larger fs than what local normally has
 
 gen_config() {
     rm -f $XMLCONFIG
@@ -51,13 +52,7 @@ rm -f ostactive
 gen_config
 
 start ost --reformat $OSTLCONFARGS
-PINGER=`cat /proc/fs/lustre/pinger`
 
-if [ "$PINGER" != "on" ]; then
-    echo "ERROR: Lustre must be built with --enable-pinger for this test."
-    stop ost
-    exit 1
-fi
 [ "$DAEMONFILE" ] && $LCTL debug_daemon start $DAEMONFILE $DAEMONSIZE
 start mds --reformat $MDSLCONFARGS
 zconf_mount $MOUNT
@@ -65,7 +60,6 @@ zconf_mount $MOUNT
 mkdir -p $DIR
 
 test_0() {
-    replay_barrier ost
     fail ost
     cp /etc/profile  $DIR/$tfile
     sync
@@ -74,7 +68,6 @@ test_0() {
 run_test 0 "empty replay"
 
 test_1() {
-    replay_barrier ost
     date > $DIR/$tfile
     fail ost
     $CHECKSTAT -t file $DIR/$tfile || return 1
@@ -82,7 +75,6 @@ test_1() {
 run_test 1 "touch"
 
 test_2() {
-    replay_barrier ost
     for i in `seq 10`; do
         echo "tag-$i" > $DIR/$tfile-$i
     done 
@@ -120,5 +112,16 @@ test_4() {
 }
 run_test 4 "Fail OST during read, with verification"
 
+test_5() {
+    IOZONE_OPTS="-i 0 -i 1 -i 2 -+d -r 64 -s 1g"
+    iozone $IOZONE_OPTS -f $DIR/$tfile &
+    PID=$!
+    
+    sleep 10
+    fail ost
+    wait $PID || return 1
+}
+run_test 5 "Fail OST during iozone"
+
 equals_msg test complete, cleaning up
 cleanup