Whamcloud - gitweb
LU-9771 flr: resync support and test tool 96/29096/21
authorJinshan Xiong <jinshan.xiong@intel.com>
Fri, 15 Sep 2017 21:22:41 +0000 (21:22 +0000)
committerJinshan Xiong <jinshan.xiong@intel.com>
Fri, 24 Nov 2017 03:10:58 +0000 (03:10 +0000)
commit5999c0b881e8d9f2b431c842bdd1717115a82b7c
tree46164f8848712d3874cbc529849ac158fd7a652d
parent5d7c4fa61ce7ba041f82f1151586fd80955cdb1f
LU-9771 flr: resync support and test tool

A tool to resync mirrored file after writing.
It extends the Lustre lease API to support taking file lease and then
sending the MDS_REINT_RESYNC RPC to the MDT so that it can increase
the file's layout version; then the client will start copying
the contents from valid mirror to stale mirrors. At the end of
resync, the copying client will release the lease and revalidate
stale mirrors.

Test-Parameters: testlist=sanity-flr
Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I59f84cd501f6945225c97bdb99a142ae7efbf0fb
Reviewed-on: https://review.whamcloud.com/29096
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
41 files changed:
lustre/include/lprocfs_status.h
lustre/include/lustre/lustreapi.h
lustre/include/lustre_req_layout.h
lustre/include/lustre_swab.h
lustre/include/md_object.h
lustre/include/obd.h
lustre/include/obd_class.h
lustre/include/uapi/linux/lustre/lustre_idl.h
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/rw26.c
lustre/lmv/lmv_obd.c
lustre/lod/lod_object.c
lustre/lov/lov_io.c
lustre/mdc/mdc_internal.h
lustre/mdc/mdc_lib.c
lustre/mdc/mdc_reint.c
lustre/mdc/mdc_request.c
lustre/mdd/mdd_object.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_lib.c
lustre/mdt/mdt_open.c
lustre/mdt/mdt_reint.c
lustre/mdt/mdt_som.c
lustre/ofd/ofd_io.c
lustre/ofd/ofd_objects.c
lustre/osc/osc_io.c
lustre/ptlrpc/layout.c
lustre/ptlrpc/lproc_ptlrpc.c
lustre/ptlrpc/pack_generic.c
lustre/ptlrpc/wiretest.c
lustre/tests/mirror_io.c
lustre/tests/multiop.c
lustre/tests/sanity-flr.sh
lustre/utils/liblustreapi_layout.c
lustre/utils/liblustreapi_lease.c
lustre/utils/liblustreapi_mirror.c
lustre/utils/wirecheck.c
lustre/utils/wiretest.c