Whamcloud - gitweb
LU-17087 lmv: update stale tgt statfs every 1 hour
authorLai Siyao <lai.siyao@whamcloud.com>
Mon, 4 Sep 2023 12:45:34 +0000 (08:45 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 6 Oct 2023 23:19:08 +0000 (23:19 +0000)
commitb31a51db8418561d01d64ea43c9987c44e2959df
tree90d516eaa0a1e36b55addebe0469ecb0aa3526ef
parentfccb002e9e835f7a3b7a9d736fedd1bd93322d03
LU-17087 lmv: update stale tgt statfs every 1 hour

Some tgt statfs may not be initialized upon mount due to network
issues, if the filesystem is imbalanced, these tgts won't be chosen to
create directory because their bavail and ffree are 0.

If MDT is chosen by QoS, update tgt statfs that is one hour overdue,
otherwise check update the statfs of the tgt that is chosen.

Lustre-commit: e262e0ffbe792ae2f8b47ccdafac38a36151a300
Lustre-change: https://review.whamcloud.com/52270

Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I06af8b8bd342f66cb794471df3ee0f3b127ffe05
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52560
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/lmv/lmv_obd.c