From d3409e4a55c8c9a18a63743014a1e1c1bfc8b86d Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Thu, 6 Oct 2016 14:10:42 -0600 Subject: [PATCH] LU-8668 tests: print more information about dd failure Don't drop the dd output so that we can see why this is failing. Test-Parameters: trivial testlist=sanityn,sanityn,sanityn,sanityn Test-Parameters: trivial testlist=sanityn,sanityn,sanityn,sanityn Signed-off-by: Andreas Dilger Change-Id: I3364bca75817ee4d0128079744e4b01a3ac938a0 Reviewed-on: http://review.whamcloud.com/22990 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: James Nunez Reviewed-by: Niu Yawei Reviewed-by: Oleg Drokin --- lustre/tests/sanityn.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/lustre/tests/sanityn.sh b/lustre/tests/sanityn.sh index e515691..acbe722 100644 --- a/lustre/tests/sanityn.sh +++ b/lustre/tests/sanityn.sh @@ -2966,22 +2966,23 @@ nrs_write_read() { $LFS setstripe -c $OSTCOUNT $dir || error "setstripe to $dir failed" chmod 777 $dir - do_nodes $CLIENTS $myRUNAS dd if=/dev/zero of="$dir/nrs_r_$HOSTNAME"\ - bs=1M count=$n > /dev/null 2>&1 || error "dd on client failed" + do_nodes $CLIENTS $myRUNAS \ + dd if=/dev/zero of="$dir/nrs_r_$HOSTNAME" bs=1M count=$n || + error "dd at 0 on client failed (1)" for ((i = 0; i < $n; i++)); do - do_nodes $CLIENTS $myRUNAS dd if=/dev/zero\ - of="$dir/nrs_w_$HOSTNAME" bs=1M seek=$i count=1\ - > /dev/null 2>&1 || error "dd on client failed" & + do_nodes $CLIENTS $myRUNAS dd if=/dev/zero \ + of="$dir/nrs_w_$HOSTNAME" bs=1M seek=$i count=1 || + error "dd at ${i}MB on client failed (2)" & local pids_w[$i]=$! done do_nodes $CLIENTS sync; cancel_lru_locks osc for ((i = 0; i < $n; i++)); do - do_nodes $CLIENTS $myRUNAS dd if="$dir/nrs_w_$HOSTNAME"\ - of=/dev/zero bs=1M seek=$i count=1 > /dev/null 2>&1 || - error "dd on client failed" + do_nodes $CLIENTS $myRUNAS dd if="$dir/nrs_w_$HOSTNAME" \ + of=/dev/zero bs=1M seek=$i count=1 > /dev/null || + error "dd at ${i}MB on client failed (3)" local pids_r[$i]=$! done cancel_lru_locks osc -- 1.8.3.1