Whamcloud - gitweb
LUDOC-261 lfsck: Describe phases of namespace/layout LFSCK 76/12676/3
authorRyan Haasken <haasken@cray.com>
Tue, 9 Feb 2016 19:41:32 +0000 (13:41 -0600)
committerRichard Henwood <richard.henwood@intel.com>
Wed, 10 Feb 2016 20:34:19 +0000 (20:34 +0000)
Add a short explanation of the phases of namespace and layout LFSCK so
that the user can understand the output of the namespace and layout
LFSCK status interfaces.

Signed-off-by: Ryan Haasken <haasken@cray.com>
Change-Id: Id8042375a12a6ccaf47da5647ba274eafde746b9
Reviewed-on: http://review.whamcloud.com/12676
Tested-by: Jenkins
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Richard Henwood <richard.henwood@intel.com>
TroubleShootingRecovery.xml

index b6bb0e5..c2c901d 100644 (file)
@@ -736,6 +736,15 @@ root# e2fsck -fp /dev/sda   # fix errors with prudent answers (usually <literal>
           component,
           <literal>lctl get_param</literal> should be used as described in the
           usage below.</para>
+          <para>The LFSCK namespace status output refers to phase 1 and phase 2.
+          Phase 1 is when the LFSCK main engine, which runs on each MDT,
+          linearly scans its local device, guaranteeing that all local objects
+          are checked.  However, there are certain cases in which LFSCK cannot
+          know whether an object is consistent or cannot repair an inconsistency
+          until the phase 1 scanning is completed. During phase 2 of the
+          namespace check, objects with multiple hard-links, objects with remote
+          parents, and other objects which couldn't be verified during phase 1
+          will be checked.</para>
         </section>
         <section>
           <title>Usage</title>
@@ -1099,6 +1108,13 @@ root# e2fsck -fp /dev/sda   # fix errors with prudent answers (usually <literal>
           <literal>lfsck_layout</literal>. To show the status of this component
           <literal>lctl get_param</literal> should be used as described in the
           usage below.</para>
+          <para>The LFSCK layout status output refers to phase 1 and phase 2.
+          Phase 1 is when the LFSCK main engine, which runs on each MDT/OST,
+          linearly scans its local device, guaranteeing that all local objects
+          are checked. During phase 1 of layout LFSCK, the OST-objects which are
+          not referenced by any MDT-object are recorded in a bitmap. During
+          phase 2 of the layout check, the OST-objects in the bitmap will be
+          re-scanned to check whether they are really orphan objects.</para>
         </section>
         <section>
           <title>Usage</title>