From: Qian Yingjin Date: Wed, 20 Jul 2022 09:40:44 +0000 (-0400) Subject: LU-16030 pcc: enlarge PCC backend size for sanity-pcc/45 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=0b4f876e0383c8eed8d63416a87a1a66ed6566e4;p=fs%2Flustre-release.git LU-16030 pcc: enlarge PCC backend size for sanity-pcc/45 sanity-pcc/test_45 failed with the following error: "attach more than 2 time: 0" The reason is that the allocated loopback deivce for PCC backend is too small. In this patch, we enlarge it to 100MiB to avoid running out of the space on PCC backend device during PCC-RO attach and fix the failure of sanity-pcc/test_45. This patch also fixes the typo error "RANDON" -> "RANDOM". Test-Parameters: trivial testlist=sanity-pcc Change-Id: Ib19f01ed054cb6c9eecceabea1f1da72dea0b113 Signed-off-by: Qian Yingjin Reviewed-on: https://review.whamcloud.com/47994 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Sebastien Buisson Reviewed-by: Andreas Dilger --- diff --git a/lustre/tests/sanity-pcc.sh b/lustre/tests/sanity-pcc.sh index a8b5b2a..08bbe1f 100644 --- a/lustre/tests/sanity-pcc.sh +++ b/lustre/tests/sanity-pcc.sh @@ -3520,7 +3520,7 @@ test_44() { while [ ! -e $DIR/$tfile.lck ]; do dd if=$file of=/dev/null bs=$bs count=$count || error "Read $file failed" - sleep 0.$((RANDON % 4 + 1)) + sleep 0.$((RANDOM % 4 + 1)) done )& rpids[$i]=$! @@ -3567,8 +3567,8 @@ test_45() { local count=50 local bs="1M" - setup_loopdev client $loopfile $mntpt 60 - setup_loopdev client $loopfile2 $mntpt2 60 + setup_loopdev client $loopfile $mntpt 100 + setup_loopdev client $loopfile2 $mntpt2 100 stack_trap "$LCTL pcc clear $MOUNT" EXIT $LCTL pcc add $MOUNT $mntpt -p \ "projid={0} roid=$HSM_ARCHIVE_NUMBER pccro=1" || @@ -3590,7 +3590,7 @@ test_45() { local -a pids1 local -a pids2 - $LFS getstripe -v $file + $LFS getstripe -v $file1 clear_stats llite.*.stats for ((i = 0; i < $n; i++)); do @@ -3598,7 +3598,7 @@ test_45() { while [ ! -e $DIR/$tfile.lck ]; do dd if=$file1 of=/dev/null bs=$bs count=$count || error "Read $file failed" - sleep 0.$((RANDON % 4 + 1)) + sleep 0.$((RANDOM % 4 + 1)) done )& pids1[$i]=$! @@ -3609,7 +3609,7 @@ test_45() { while [ ! -e $DIR/$tfile.lck ]; do dd if=$file2 of=/dev/null bs=$bs count=$count || error "Read $file failed" - sleep 0.$((RANDON % 4 + 1)) + sleep 0.$((RANDOM % 4 + 1)) done )& pids2[$i]=$! @@ -3784,7 +3784,7 @@ test_96() { while [ ! -e $DIR/sanity-pcc.96.lck ]; do do_facet $SINGLEAGT dd if=$file1 of=/dev/null bs=$bs count=$count || error "Read $file failed" - sleep 0.$((RANDON % 4 + 1)) + sleep 0.$((RANDOM % 4 + 1)) done )& rpid11=$! @@ -3793,7 +3793,7 @@ test_96() { while [ ! -e $DIR/sanity-pcc.96.lck ]; do do_facet $SINGLEAGT dd if=$file1 of=/dev/null bs=$bs count=$count || error "Read $file failed" - sleep 0.$((RANDON % 4 + 1)) + sleep 0.$((RANDOM % 4 + 1)) done )& rpid12=$! @@ -3802,7 +3802,7 @@ test_96() { while [ ! -e $DIR/sanity-pcc.96.lck ]; do do_facet $SINGLEAGT dd if=$file1 of=/dev/null bs=$bs count=$count || error "Read $file failed" - sleep 0.$((RANDON % 4 + 1)) + sleep 0.$((RANDOM % 4 + 1)) done )& rpid13=$! @@ -3811,7 +3811,7 @@ test_96() { while [ ! -e $DIR/sanity-pcc.96.lck ]; do do_facet $SINGLEAGT dd if=$file2 of=/dev/null bs=$bs count=$count || error "Read $file failed" - sleep 0.$((RANDON % 4 + 1)) + sleep 0.$((RANDOM % 4 + 1)) done )& rpid21=$! @@ -3820,7 +3820,7 @@ test_96() { while [ ! -e $DIR/sanity-pcc.96.lck ]; do do_facet $SINGLEAGT dd if=$file2 of=/dev/null bs=$bs count=$count || error "Read $file failed" - sleep 0.$((RANDON % 4 + 1)) + sleep 0.$((RANDOM % 4 + 1)) done )& rpid22=$! @@ -3829,7 +3829,7 @@ test_96() { while [ ! -e $DIR/sanity-pcc.96.lck ]; do do_facet $SINGLEAGT dd if=$file2 of=/dev/null bs=$bs count=$count || error "Read $file failed" - sleep 0.$((RANDON % 4 + 1)) + sleep 0.$((RANDOM % 4 + 1)) done )& rpid23=$! @@ -3885,7 +3885,7 @@ test_97() { echo "T1. $MMAP_CAT $file ..." do_facet $SINGLEAGT $MMAP_CAT $file > /dev/null || error "$MMAP_CAT $file failed" - sleep 0.$((RANDON % 4 + 1)) + sleep 0.$((RANDOM % 4 + 1)) done )& mpid1=$!