Whamcloud - gitweb
LU-1267 lfsck: rebuild LAST_ID 97/6997/20
authorFan Yong <fan.yong@intel.com>
Sun, 20 Oct 2013 19:28:36 +0000 (03:28 +0800)
committerFan Yong <fan.yong@intel.com>
Sun, 20 Oct 2013 19:28:36 +0000 (03:28 +0800)
commit141a375f46882f71e97e1add56ce258ab1515572
tree93ece33ad74f3e634731c688d64760732393de53
parentff36f471272ca2967e0eedb724b42c4f10ca3c09
LU-1267 lfsck: rebuild LAST_ID

The /O/<seq>/LAST_ID records the last oid of the object allocated
within the sequence. The LAST_ID file can be crashed or missed as
the system running. The LFSCK for layout consistency verification
can detect the LAST_ID lost/crashed cases, and can rebuild it via
scanning the whole device.

This functionality is also part of LU-14 live replacement of OST.

Introduce lfsck_notify callback - the LFSCK events notification
channel from the LFSCK to the registered users (MDD/OFD).

Introduce new connection flag: OBD_CONNECT_LFSCK to indicate that
whether the target server (MDT/OST) supports online LFSCK or not.

Test-Parameters: testlist=sanity-scrub,sanity-lfsck
Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Iee85056e2fda1ecba9424c9f0e822643e9f029a8
20 files changed:
lustre/include/lustre/lustre_idl.h
lustre/include/lustre/lustre_lfsck_user.h
lustre/include/lustre_lfsck.h
lustre/include/obd_support.h
lustre/lfsck/lfsck_internal.h
lustre/lfsck/lfsck_layout.c
lustre/lfsck/lfsck_lib.c
lustre/lod/lod_lov.c
lustre/mdd/mdd_device.c
lustre/ofd/lproc_ofd.c
lustre/ofd/ofd_dev.c
lustre/ofd/ofd_fs.c
lustre/ofd/ofd_internal.h
lustre/ofd/ofd_obd.c
lustre/ofd/ofd_objects.c
lustre/osd-ldiskfs/osd_scrub.c
lustre/osp/osp_internal.h
lustre/osp/osp_precreate.c
lustre/tests/sanity-lfsck.sh
lustre/tests/test-framework.sh