[ $(facet_fstype $SINGLEMDS) = "zfs" ] &&
# bug number for skipped test: LU-2194 LU-2547
- ALWAYS_EXCEPT="$ALWAYS_EXCEPT 19b 24a"
+ ALWAYS_EXCEPT="$ALWAYS_EXCEPT 19b 24a 24b"
build_test_filter
rc=$?
lctl set_param fail_loc=0x0
client_reconnect
- [ $rc -eq 0 ] && error_ignore 5494 "multiop didn't fail fsync: rc $rc" || true
+ [ $rc -eq 0 ] &&
+ error_ignore bz5494 "multiop didn't fail fsync: rc $rc" || true
}
run_test 24a "fsync error (should return error)"
lctl set_param fail_loc=0x0
client_reconnect
[ $rc1 -eq 0 -o $rc2 -eq 0 ] &&
- error_ignore 5494 "multiop didn't fail fsync: $rc1 or close: $rc2" ||
+ error_ignore bz5494 "multiop didn't fail fsync: $rc1 or close: $rc2" ||
true
- dmesg | grep "dirty page discard:" || \
+ dmesg | grep "dirty page discard:" ||
error "no discarded dirty page found!"
}
run_test 24b "test dirty page discard due to client eviction"
rc=$?
echo writemany returned $rc
#these may fail because of eviction due to slow AST response.
- [ $rc -eq 0 ] || error_ignore 13652 "writemany returned rc $rc" || true
+ [ $rc -eq 0 ] ||
+ error_ignore bz13652 "writemany returned rc $rc" || true
}
run_test 50 "failover MDS under load"
# and recovery was interrupted
sleep $TIMEOUT
kill -USR1 $CLIENT_PID
- wait $CLIENT_PID
+ wait $CLIENT_PID
rc=$?
echo writemany returned $rc
- [ $rc -eq 0 ] || error_ignore 13652 "writemany returned rc $rc" || true
+ [ $rc -eq 0 ] ||
+ error_ignore bz13652 "writemany returned rc $rc" || true
}
run_test 51 "failover MDS during recovery"
run_test 59 "Read cancel race on client eviction"
err17935 () {
- # we assume that all md changes are in the MDT0 changelog
- if [ $MDSCOUNT -gt 1 ]; then
- error_ignore 17935 $*
- else
- error $*
- fi
+ # we assume that all md changes are in the MDT0 changelog
+ if [ $MDSCOUNT -gt 1 ]; then
+ error_ignore bz17935 $*
+ else
+ error $*
+ fi
}
test_60() {
stop mds1
# We need this test because mds is like a client in IR context.
- start mds1 $MDSDEV1 || error "MDS should start w/o mgs"
+ start mds1 $(mdsdevname 1) $MDS_MOUNT_OPTS ||
+ error "MDS should start w/o mgs"
# start mgs and remount mds w/ ir
- start mgs $MGSDEV
+ start mgs $(mgsdevname) $MGS_MOUNT_OPTS
clients_up
# remount client so that fsdb will be created on the MGS
}
run_test 111 "mdd setup fail should not cause umount oops"
+# LU-793
+test_112a() {
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
+
+ do_facet_random_file client $TMP/$tfile 100K ||
+ error_noexit "Create random file $TMP/$tfile"
+
+ pause_bulk "cp $TMP/$tfile $DIR/$tfile" $TIMEOUT ||
+ error_noexit "Can't pause_bulk copy"
+
+ df $DIR
+ # expect cmp to succeed, client resent bulk
+ cmp $TMP/$tfile $DIR/$tfile ||
+ error_noexit "Wrong data has been written"
+ rm $DIR/$tfile ||
+ error_noexit "Can't remove file"
+ rm $TMP/$tfile
+}
+run_test 112a "bulk resend while orignal request is in progress"
+
complete $SECONDS
check_and_cleanup_lustre
exit_status