Whamcloud - gitweb
LU-3935 scrub: support dryrun mode OI scrub 67/7867/5
authorFan Yong <fan.yong@intel.com>
Tue, 22 Oct 2013 22:52:40 +0000 (06:52 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 26 Nov 2013 13:28:49 +0000 (13:28 +0000)
commite0061edae5f15f2382c05cdd645c787f1dc45220
treeddea410c37bd9c94f049c1a5e3a515dfcf58d6ce
parent354e7458b48271d827c3009ea707666f9bdc4a38
LU-3935 scrub: support dryrun mode OI scrub

The administrator can detect whether there are any inconsistent
OI mappings but without repairing them via the command:

lctl lfsck_start --dryrun on -M <$device>

Under default mode, dryrun is "off". When the device is mounted,
the initial OI scrub will detect whether there are upgrade case,
or file-level backup/resotre case, or OI file(s) recreated case.
If found some inconsistency, it will trigger non-dryrun mode OI
scrub automatically. If the administrator does NOT want to such
auto non-dryrun OI scrub to avoid some unexpected repairing, he
(or she) can specify "-o noscrub" when mount the device.

Test-Parameters: testlist=sanity-scrub
Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Ibab79c543dbb5b69789b688cacca10737a710f83
Reviewed-on: http://review.whamcloud.com/7867
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/dt_object.h
lustre/mdd/mdd_lfsck.c
lustre/osd-ldiskfs/osd_scrub.c
lustre/osd-ldiskfs/osd_scrub.h
lustre/tests/sanity-scrub.sh