Whamcloud - gitweb
LU-12722 target: disable recovery for local clients 25/36025/38
authorAlexey Zhuravlev <bzzz@whamcloud.com>
Mon, 9 Sep 2019 14:00:05 +0000 (17:00 +0300)
committerOleg Drokin <green@whamcloud.com>
Thu, 20 Feb 2020 07:14:52 +0000 (07:14 +0000)
commit8bd04b4e57663e02e9384727eca4df84d99edb3c
tree8f87a512ca10e430db00061322456c79687b9a74
parent58811dd55434332d20142f49ac73165b3bffb9a6
LU-12722 target: disable recovery for local clients

when client is running on a server node, then the local
services can't rely on that client in the contex of
recovery - such a client dies with the node, can't replay
requests and states and then the restarting server has to
wait till recovery expires which doesn't make any sense.

so the servers should recogize local clients and exclude
them from recovery (i.e. don't make them part of last_rcvd).

for the purpose of local testing a special mount option
"local_recov" has been added to {MDS|OST}_MOUNT_OPTS in
tests/cfg/local.sh to save local testing when everyting
is running within a single node.

Signed-off-by: Alexey Zhuravlev <bzzz@whamcloud.com>
Change-Id: I4cb906c44c1192933f7d77dc782160e426e9efde
Reviewed-on: https://review.whamcloud.com/36025
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
14 files changed:
lustre/include/lu_target.h
lustre/include/lustre_disk.h
lustre/include/lustre_export.h
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_lproc.c
lustre/obdclass/lprocfs_status_server.c
lustre/obdclass/obd_mount.c
lustre/ofd/ofd_dev.c
lustre/target/tgt_lastrcvd.c
lustre/tests/cfg/local.sh
lustre/tests/conf-sanity.sh
lustre/tests/recovery-small.sh
lustre/tests/sanity-lfsck.sh
lustre/tests/test-framework.sh