Whamcloud - gitweb
LU-14762 lmv: compare space to mkdir on parent MDT
authorLai Siyao <lai.siyao@whamcloud.com>
Mon, 14 Jun 2021 07:26:47 +0000 (15:26 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 15 Jul 2021 20:57:16 +0000 (20:57 +0000)
commit45a43569ca8a3d67296d210a5db6577f562e02f6
tree9e2090a10f6307d3e7e7272db7fc6fcde510416b
parent4e092c45d4d28e8bf3fda73d407a59db1f02456b
LU-14762 lmv: compare space to mkdir on parent MDT

In QOS subdirectory creation, subdirectories are kept on parent MDT
if it is less full than average, however it checks weight other than
free space, while "weight = free space - penalty", if MDTs have
different penalties, the result is not accurate, therefore this may
not work.

Check free space instead, and loosen the critirion to allow the
free space within the range of QOS threshold.

Lustre-change: https://review.whamcloud.com/43997
Lustre-commit: 002c2a80266b23c1df02d554fbdc7e5817c42d13

Fixes: 3f6fc483013d ("LU-13439 lmv: qos stay on current MDT if less full")
Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Id34cf8f3f58fee9d329f0d05c2f7a6463b67dfe1
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/44314
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/include/lu_object.h
lustre/lmv/lmv_obd.c
lustre/obdclass/lu_tgt_descs.c