Whamcloud - gitweb
EX-5824 test: hot-pools test_57: data copy failed: mirror failed
authorAlexandre Ioffe <aioffe@ddn.com>
Thu, 8 Sep 2022 08:37:31 +0000 (01:37 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 23 Sep 2022 16:41:34 +0000 (16:41 +0000)
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 <aioffe@ddn.com>
Reviewed-on: https://review.whamcloud.com/48477
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
lustre/tests/hot-pools.sh

index 1343b92..9514f96 100755 (executable)
@@ -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