init_test_env $@
. ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
+remote_mds_nodsh && skip "remote MDS with nodsh" && exit 0
+
# also long tests: 19, 21a, 21e, 21f, 23, 27
# 1 2.5 2.5 4 4 (min)"
[ "$SLOW" = "no" ] && EXCEPT_SLOW="17 26a 26b 50 51 57"
CLEANUP=${CLEANUP:-""}
cleanup_and_setup_lustre
+
assert_DIR
rm -rf $DIR/[df][0-9]*
#bug 1420
test_9() {
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
+
pause_bulk "cp /etc/profile $DIR/$tfile" || return 1
do_facet client "cp $SAMPLE_FILE $DIR/${tfile}.2" || return 2
do_facet client "sync"
}
test_16() {
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
+
do_facet client cp $SAMPLE_FILE $DIR
sync
stop_read_ahead
test_17() {
local at_max_saved=0
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
+
# With adaptive timeouts, bulk_get won't expire until adaptive_timeout_max
if at_is_valid && at_is_enabled; then
at_max_saved=$(at_max_get ost1)
run_test 18a "manual ost invalidate clears page cache immediately"
test_18b() {
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
+
do_facet client mkdir -p $DIR/$tdir
f=$DIR/$tdir/$tfile
f2=$DIR/$tdir/${tfile}-2
run_test 18b "eviction and reconnect clears page cache (2766)"
test_18c() {
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
+
do_facet client mkdir -p $DIR/$tdir
f=$DIR/$tdir/$tfile
f2=$DIR/$tdir/${tfile}-2
run_test 19b "test expired_lock_main on ost (2867)"
test_20a() { # bug 2983 - ldlm_handle_enqueue cleanup
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
+
mkdir -p $DIR/$tdir
lfs setstripe $DIR/$tdir/${tfile} -i 0 -c 1
multiop_bg_pause $DIR/$tdir/${tfile} O_wc || return 1
run_test 20a "ldlm_handle_enqueue error (should return error)"
test_20b() { # bug 2986 - ldlm_handle_enqueue error during open
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
+
mkdir -p $DIR/$tdir
lfs setstripe $DIR/$tdir/${tfile} -i 0 -c 1
cancel_lru_locks osc
run_test 23 "client hang when close a file after mds crash"
test_24() { # bug 11710 details correct fsync() behavior
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
+
mkdir -p $DIR/$tdir
lfs setstripe $DIR/$tdir -s 0 -i 0 -c 1
cancel_lru_locks osc
test_26a() { # was test_26 bug 5921 - evict dead exports by pinger
# this test can only run from a client on a separate node.
remote_ost || { skip "local OST" && return 0; }
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
remote_mds || { skip "local MDS" && return 0; }
OST_FILE=obdfilter.${ost1_svc}.num_exports
OST_EXP="`do_facet ost1 lctl get_param -n $OST_FILE`"
run_test 26a "evict dead exports"
test_26b() { # bug 10140 - evict dead exports by pinger
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
+
client_df
zconf_mount `hostname` $MOUNT2 || error "Failed to mount $MOUNT2"
MDS_FILE=mds.${mds_svc}.num_exports
run_test 26b "evict dead exports"
test_27() {
- remote_mds && { skip "remote MDS" && return 0; }
mkdir -p $DIR/$tdir
writemany -q -a $DIR/$tdir/$tfile 0 5 &
CLIENT_PID=$!
}
test_52() {
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
+
mkdir -p $DIR/$tdir
test_52_guts 1
rc=$?
# bug 11330 - liblustre application death during I/O locks up OST
test_55() {
- remote_ost && { skip "remote OST" && return 0; }
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
mkdir -p $DIR/$tdir