Whamcloud - gitweb
LU-13439 lmv: qos stay on current MDT if less full
authorAndreas Dilger <adilger@whamcloud.com>
Sun, 25 Apr 2021 11:02:19 +0000 (05:02 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 5 May 2021 04:02:06 +0000 (04:02 +0000)
commit7f816b2745aad96926df971ac6c636d7133fd43e
tree078147e65a83788cc824b78d579ac446d71a5c56
parentd64ebffba5c5077f420766f5e95feec4f04106db
LU-13439 lmv: qos stay on current MDT if less full

Keep "space balanced" subdirectories on the parent MDT if it is less
full than average, since it doesn't make sense to select another MDT
which may occasionally be *more* full.  This also reduces random
"MDT jumping" and needless remote directories.

Reduce the QOS threshold for space balanced LMV layouts, so that the
MDTs don't become too imbalanced before trying to fix the problem.

Change the LUSTRE_OP_MKDIR opcode to be 1 instead of 0, so it can
be seen that a valid opcode has been stored into the structure.

Lustre-change: https://review.whamcloud.com/43445
Lustre-commit: 3f6fc483013da443b1494d81efe2d271ac67f901

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Iab34c7eade03d761aa16b08f409f7e5d69cd70bd
Reviewed-on: https://review.whamcloud.com/43431
Tested-by: jenkins <devops@whamcloud.com>
lustre/include/obd.h
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/lmv/lmv_obd.c
lustre/obdclass/lu_tgt_descs.c