Whamcloud - gitweb
LU-5506 lfsck: skip orphan MDT-object handling for failed MDTs 44/11444/23
authorFan Yong <fan.yong@intel.com>
Fri, 8 Aug 2014 19:16:14 +0000 (03:16 +0800)
committerAndreas Dilger <andreas.dilger@intel.com>
Wed, 22 Oct 2014 05:05:26 +0000 (05:05 +0000)
commit846dd0cb79fc309703afdaae7622e4ddeb0e2e49
tree56305c44cdf0f75cfe1cf72e884ad3da67fa8fe1
parentd0fbde388136728285c9dc74f639508a01efc881
LU-5506 lfsck: skip orphan MDT-object handling for failed MDTs

The namespace LFSCK will record the failed MDTs in the LFSCK tracing
file (lfsck_namespace) during the first-stage scanning, then when it
moves to the second-stage scanning, it can know which (the failed)
MDT(s) contain the MDT-objects that may have un-verified name entries
on other MDTs. Then the LFSCK will skip the orphan MDT-objects
handling on those ever failed MDTs. But other MDTs can be handled as
normal case without affected by the failed MDTs.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Ic53d2fa24f81fb918d130dbc27694d3b68dc19d6
Reviewed-on: http://review.whamcloud.com/11444
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/include/lustre/lustre_idl.h
lustre/lfsck/lfsck_engine.c
lustre/lfsck/lfsck_internal.h
lustre/lfsck/lfsck_namespace.c
lustre/osp/osp_object.c
lustre/tests/sanity-lfsck.sh