diff --git a/lustre/tests/replay-single.sh b/lustre/tests/replay-single.sh
index 8335246df2449c236ba373fbba285a27eac97434..94401398222999b6f5661c788aacae2a54e31651 100755
--- a/lustre/tests/replay-single.sh
+++ b/lustre/tests/replay-single.sh
@@ -1375,12 +1375,13 @@ test_61() {
     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
 }
@@ -1401,10 +1402,11 @@ run_test 61b "test race mds llog sync vs llog cleanup"
 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"