Whamcloud - gitweb
LU-14659 test: improve generate_uneven_mdts() in sanity.sh 49/44649/4
authorLai Siyao <lai.siyao@whamcloud.com>
Wed, 4 Aug 2021 04:37:29 +0000 (00:37 -0400)
committerOleg Drokin <green@whamcloud.com>
Sun, 17 Oct 2021 18:11:31 +0000 (18:11 +0000)
commitd45be79a069f527657c1ce91630183031ea42b27
tree27de0b7a63b92cb2375a8015d651f7173a8892df
parentd6732e0ebe3e94e3d768d501ab1a9d6aead5992a
LU-14659 test: improve generate_uneven_mdts() in sanity.sh

Improve generate_uneven_mdts() in several places:
1. set qos maxage to 1, so the result is up to date, and avoid filling
   up MDT.
2. fill MDT with files of size 64K other than 1M, so MDT imbalance is
   quicker to achieve.
3. when checking minimum imbalance after test, lookup max value from
   the result, other than by index stored before directory creation,
   because the result is dynamic if several MDTs have almost the same
   free space and inodes.

Test-Parameter: trivial mdscount=2 mdtcount=4 testlist=sanity
Fixes: 233344d451e ("LU-13417 test: generate uneven MDTs early for sanity 413")
Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I2807101ff632404e25fdb640840d83d1991c88d9
Reviewed-on: https://review.whamcloud.com/44649
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Nunez <jnunez@whamcloud.com>
lustre/lod/lproc_lod.c
lustre/tests/sanity.sh