Whamcloud - gitweb
LU-14111 obdclass: count eviction per obd_device
authorAurelien Degremont <degremoa@amazon.com>
Tue, 13 Oct 2020 14:12:23 +0000 (14:12 +0000)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 14 Feb 2024 19:19:00 +0000 (19:19 +0000)
commitf570595e05a65045e6a2786861f7c9d013854112
treeb9d260444dfef563bd162d66b7261d6f1538e571
parenteef24d8a97b4697f90598f849801a4d35a9a8f68
LU-14111 obdclass: count eviction per obd_device

Add a new 'obd_eviction_count' counter to obd_device which
is increased every time a client is evicted, which means
every time we call `class_fail_export()`.

Expose this counter through `lctl get_param *.*.eviction_count`
for every target.

Only support recovery-small test 146 for 2.14.0.133+.

Lustre-change: https://review.whamcloud.com/40528
Lustre-commit: 3c69d46e1766480c0ffd1bef840b4e167b4cf88e

Lustre-change: https://review.whamcloud.com/52098
Lustre-commit: b034dd27dd39483e40f91ea82d3f5c62b514ec54

Signed-off-by: Aurelien Degremont <degremoa@amazon.com>
Change-Id: I83b691662285cf2cd937187bffa54de6bd1f694c
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53897
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/lprocfs_status.h
lustre/include/obd.h
lustre/mdt/mdt_lproc.c
lustre/mgs/lproc_mgs.c
lustre/obdclass/genops.c
lustre/obdclass/lprocfs_status_server.c
lustre/ofd/lproc_ofd.c
lustre/tests/recovery-small.sh