Whamcloud - gitweb
LU-8668 tests: print more information about dd failure 90/22990/2
authorAndreas Dilger <andreas.dilger@intel.com>
Thu, 6 Oct 2016 20:10:42 +0000 (14:10 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 8 Oct 2016 16:40:02 +0000 (16:40 +0000)
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 <andreas.dilger@intel.com>
Change-Id: I3364bca75817ee4d0128079744e4b01a3ac938a0
Reviewed-on: http://review.whamcloud.com/22990
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanityn.sh

index e515691..acbe722 100644 (file)
@@ -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