From c5b695c9d3ac8335f615e72ea7f0ac87b48ed08a Mon Sep 17 00:00:00 2001 From: Alexandre Ioffe Date: Thu, 8 Sep 2022 01:37:31 -0700 Subject: [PATCH] EX-5824 test: hot-pools test_57: data copy failed: mirror failed Add debug prints in hot-pools test_57 Test-Parameters: trivial env=FAIL_ON_ERROR=false,ONLY=56-57 testlist=hot-pools Change-Id: I863b580f5483c14c24c6f79ebdddbc782b65e945 Signed-off-by: Alexandre Ioffe Reviewed-on: https://review.whamcloud.com/48477 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Alex Zhuravlev --- lustre/tests/hot-pools.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lustre/tests/hot-pools.sh b/lustre/tests/hot-pools.sh index 1343b92..9514f96 100755 --- a/lustre/tests/hot-pools.sh +++ b/lustre/tests/hot-pools.sh @@ -1907,12 +1907,18 @@ test_57() { # allow large DoM component saved_max_kb=$(do_facet $SINGLEMDS $LCTL \ get_param -n lod.*.dom_stripesize_max_kb | tail -1) + + echo "saved_max_kb=" $saved_max_kb + do_nodes $(comma_list $(all_mdts_nodes)) \ $LCTL set_param lod.*.dom_stripesize_max_kb=$((1024*100)) stack_trap "do_nodes $(comma_list $(all_mdts_nodes)) \ $LCTL set_param lod.*.dom_stripesize_max_kb=$saved_max_kb" avail=$($LFS df | grep MDT0000 | awk '{print $4}') + echo "MDT avail= $avail" + echo "OST avail" + $LFS df | grep OST | awk '{print}' (( avail=avail/2 )) # going to fill a half of MDT (( towrite = avail / files )) (( towrite < 5*1024 )) && skip "not enough space on $SINGLEMDS" @@ -1923,12 +1929,20 @@ test_57() { error "can't setstripe" for ((i=0; i < $files; i++)); do # XXX: replace with fallocate + echo "of=" $DIR/$tdir/f$i + + avail=$($LFS df | grep MDT0000 | awk '{print $4}') + echo "i=$i avail MDT= $avail" + echo "OST avail" + $LFS df | grep OST | awk '{print}' + dd if=/dev/zero of=$DIR/$tdir/f$i bs=1k \ count=$(((towrite/1024+1)*1024)) || error "can't dd" $LFS mirror extend -N -p $LAMIGO_TGT $DIR/$tdir/f$i || error "can't create mirror" $LFS getstripe $DIR/$tdir/f$i | grep pattern.*mdt || error "no DoM component on $DIR/$tdir/f$i" + sleep 1 done cancel_lru_locks osc cancel_lru_locks mdc -- 1.8.3.1