Whamcloud - gitweb
LU-5707 lfsck: recreate LFSCK trace file for load failure 78/12278/3
authorFan Yong <fan.yong@intel.com>
Mon, 8 Sep 2014 21:11:02 +0000 (05:11 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 4 Dec 2014 20:25:51 +0000 (20:25 +0000)
commit2f2969bc6b8a4bf138eaaea30e808dc35c446994
treecae36169f54812dd366c7b12b67e906e88584443
parenteb96839fad363be810fd353bb2bb0b3cd104777e
LU-5707 lfsck: recreate LFSCK trace file for load failure

The extended attribute XATTR_NAME_LFSCK_NAMESPACE for namespace
LFSCK trace file is enlarged since Lustre-2.7. When downgrade
from Lustre-2.7, the old MDS will get -ERANGE when loads the
XATTR_NAME_LFSCK_NAMESPACE extended attribute from the new
formatted on-disk namespace LFSCK trace file. Under such case,
the LFSCK should not return failure, instead, it can recreate the
XATTR_NAME_LFSCK_NAMESPACE EA as initialization case.

More further, if the LFSCK failed to load trace file, it is
unncessary to fail the whole LFSCK, instead, just recreate the
trace file.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Icc2c7087f9f4a20d57664eaaf5a92f6c6260c3aa
Reviewed-on: http://review.whamcloud.com/12278
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Patrick Farrell <paf@cray.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
lustre/lfsck/lfsck_namespace.c