replay_barrier ost1
# OBD_FAIL_OST_LLOG_RECOVERY_TIMEOUT 0x221
unlinkmany $DIR/$tdir/$tfile-%d 800
- do_facet ost "sysctl -w lustre.fail_loc=0x80000221"
+ set_nodes_failloc "$(osts_nodes)" 0x80000221
facet_failover ost1
sleep 10
fail ost1
sleep 30
- do_facet ost "sysctl -w lustre.fail_loc=0x0"
+ set_nodes_failloc "$(osts_nodes)" 0x0
+
$CHECKSTAT -t file $DIR/$tdir/$tfile-* && return 1
rmdir $DIR/$tdir
}
test_61c() {
# OBD_FAIL_OST_CANCEL_COOKIE_TIMEOUT 0x222
touch $DIR/$tfile
- do_facet ost "sysctl -w lustre.fail_loc=0x80000222"
+ set_nodes_failloc "$(osts_nodes)" 0x80000222
rm $DIR/$tfile
sleep 10
fail ost1
+ set_nodes_failloc "$(osts_nodes)" 0x0
}
run_test 61c "test race mds llog sync vs llog cleanup"