Whamcloud - gitweb
LU-15850 lmv: always space-balance r-r directories 78/47578/6
authorLai Siyao <lai.siyao@whamcloud.com>
Thu, 9 Jun 2022 11:44:41 +0000 (07:44 -0400)
committerOleg Drokin <green@whamcloud.com>
Fri, 5 Aug 2022 20:18:18 +0000 (20:18 +0000)
commit37c1ddc34d3a1e61c5533f48cb29fe2258ca2907
tree7d288c1e925b2077d40a08a32e2caf5e1010ea57
parentfe8315c25ed093d77a6f366e2a4849aba008b680
LU-15850 lmv: always space-balance r-r directories

If the MDT free space is imbalanced, use QOS space balancing for
round-robin subdirectory creation, regardless of the depth
of the directory tree.  Otherwise, new subdirectories created
in parents with round-robin default layout may suddenly become
"sticky" on the parent MDT and upset the space balancing and
load distribution.

Add sanity/test_413h to check that round-robin dirs always balance.

Test-Parameters: testlist=sanity env=ONLY=413h,ONLY_REPEAT=100
Fixes: 38c4c538f5 ("LU-15216 lmv: improve MDT QOS space balance")
Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Ia1d0b5b1a027cf14236f93ae34b5cf4929e76d23
Reviewed-on: https://review.whamcloud.com/47578
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lmv/lmv_obd.c
lustre/tests/sanity.sh
lustre/tests/test-framework.sh