Whamcloud - gitweb
LU-14659 test: improve generate_uneven_mdts() in sanity.sh
authorLai Siyao <lai.siyao@whamcloud.com>
Wed, 4 Aug 2021 04:37:29 +0000 (00:37 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 21 Oct 2023 17:41:09 +0000 (17:41 +0000)
commit09a1aeb155c2f77c957556b3281f96bcb5dcaa3d
tree3f5d277eb8bf7845f919671b057ffcd1769497fd
parent0f62b7ad7c420389dd37a39932574c3c7229855b
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.

Lustre-change: https://review.whamcloud.com/44649
Lustre-commit: d45be79a069f527657c1ce91630183031ea42b27

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/c/ex/lustre-release/+/52751
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/lod/lproc_lod.c
lustre/tests/sanity.sh