set -e
-LCONF=${LCONF:-"../utils/lconf"}
-LMC=${LMC:-"../utils/lmc"}
-LCTL=${LCTL:-"../utils/lctl"}
-
LUSTRE=${LUSTRE:-`dirname $0`/..}
. $LUSTRE/tests/test-framework.sh
build_test_filter
cleanup() {
- [ "$DAEMONFILE" ] && lctl debug_daemon stop
+ [ "$DAEMONFILE" ] && $LCTL debug_daemon stop
# make sure we are using the primary MDS, so the config log will
# be able to clean up properly.
activemds=`facet_active mds`
fail mds
fi
- lconf --cleanup --zeroconf --mds_uuid mds1_UUID --mds_nid $mds_HOST \
+ $LCONF --cleanup --zeroconf --mds_uuid mds1_UUID --mds_nid $mds_HOST \
--local_nid $client_HOST --profile client_facet --mount $MOUNT
- lconf --cleanup --zeroconf --mds_uuid mds1_UUID --mds_nid $mds_HOST \
+ $LCONF --cleanup --zeroconf --mds_uuid mds1_UUID --mds_nid $mds_HOST \
--local_nid $client_HOST --profile client_facet --mount $MOUNT2
stop mds ${FORCE} --dump cleanup-dual.log
stop ost ${FORCE}
fi
# 0-conf client
-lconf --zeroconf --mds_uuid mds1_UUID --mds_nid `h2$NETTYPE $mds_HOST` \
+$LCONF --zeroconf --mds_uuid mds1_UUID --mds_nid `h2$NETTYPE $mds_HOST` \
--local_nid `h2$NETTYPE $client_HOST` --profile client_facet --mount $MOUNT
-lconf --zeroconf --mds_uuid mds1_UUID --mds_nid `h2$NETTYPE $mds_HOST` \
+$LCONF --zeroconf --mds_uuid mds1_UUID --mds_nid `h2$NETTYPE $mds_HOST` \
--local_nid `h2$NETTYPE $client_HOST` --profile client_facet --mount $MOUNT2
echo $TIMEOUT > /proc/sys/lustre/timeout
echo $UPCALL > /proc/sys/lustre/upcall
-[ "$DAEMONFILE" ] && lctl debug_daemon start $DAEMONFILE $DAEMONSIZE
+[ "$DAEMONFILE" ] && $LCTL debug_daemon start $DAEMONFILE $DAEMONSIZE
test_1() {
touch $MOUNT1/a
# This test needs to be run on the client
#
-LCONF=${LCONF:-"../utils/lconf"}
-LMC=${LMC:-"../utils/lmc"}
-LCTL=${LCTL:-"../utils/lctl"}
LUSTRE=${LUSTRE:-`dirname $0`/..}
. $LUSTRE/tests/test-framework.sh
fail mds
fi
- lconf --cleanup --zeroconf --mds_uuid mds1_UUID --mds_nid $mds_HOST \
+ $LCONF --cleanup --zeroconf --mds_uuid mds1_UUID --mds_nid $mds_HOST \
--local_nid $client_HOST --profile client_facet --mount $MOUNT
stop mds ${FORCE} $MDSLCONFARGS
stop ost ${FORCE} --dump cleanup.log
gen_config
-start mds --write_conf --reformat $MDSLCONFARGS
+#start mds --write_conf --reformat $MDSLCONFARGS
start ost --reformat $OSTLCONFARGS
-[ "$DAEMONFILE" ] && lctl debug_daemon start $DAEMONFILE $DAEMONSIZE
-start mds $MDSLCONFARGS --gdb
+[ "$DAEMONFILE" ] && $LCTL debug_daemon start $DAEMONFILE $DAEMONSIZE
+start mds $MDSLCONFARGS --reformat
# 0-conf client
-lconf --zeroconf --mds_uuid mds1_UUID --mds_nid `h2$NETTYPE $mds_HOST` \
+$LCONF --zeroconf --mds_uuid mds1_UUID --mds_nid `h2$NETTYPE $mds_HOST` \
--local_nid `h2$NETTYPE $client_HOST` --profile client_facet --mount $MOUNT
echo $TIMEOUT > /proc/sys/lustre/timeout
}
run_test 32 "close() notices client eviction; close() after client eviction"
+# Abort recovery before client complete
+test_33() {
+ replay_barrier mds
+ touch $DIR/$tfile
+ fail_abort mds
+ # this file should be gone, because the replay was aborted
+ $CHECKSTAT -t file $DIR/$tfile && return 1
+ return 0
+}
+run_test 33 "abort recovery before client does replay"
+
equals_msg test complete, cleaning up
cleanup