# All files to ost1
$LFS setstripe -S $((128 * 1024)) -i 0 $DIR/$tdir
+ # Create 20 files so we have 20 ost locks
+ touch $DIR/$tdir/file.{1..20}
+
# Init all the clients connections (write lastrcv on the OST)
clients_up
replay_barrier ost1
$LCTL set_param ldlm.cancel_unused_locks_before_replay=0
stack_trap "$LCTL set_param $old_replay" EXIT
- # Create 20 files so we have 20 ost locks
- for i in $(seq 20) ; do
- echo blah > $DIR/$tdir/file.${i} & PID+="$! "
- done
- wait $PID
+ local old_debug=$($LCTL get_param -n debug)
+ local old_debug_mb=$($LCTL get_param -n debug_mb)
+ $LCTL set_param debug_mb=100 debug='+info +ha +dlmtrace'
+ stack_trap "$LCTL set_param debug_mb=$old_debug_mb debug='$old_debug'"
+
+ printf "%s\n" $DIR/$tdir/file.{1..20} |
+ xargs -I{} -P20 dd if=/dev/urandom of={} bs=1K count=1 &> /dev/null
stop ost1
change_active ost1
do_rpc_nodes $(facet_active_host ost1) \
load_module ../libcfs/libcfs/libcfs
do_facet ost1 "$LCTL set_param fail_loc=0x32d fail_val=20"
+ do_facet ost1 "$LCTL set_param debug_mb=100 debug='+info +ha +dlmtrace'"
mount_facet ost1
# Now make sure we notice