Whamcloud - gitweb
LUDOC-244 lfsck: Update lfsck documentation 86/11886/3
authorRyan Haasken <haasken@cray.com>
Mon, 7 Jul 2014 15:09:10 +0000 (10:09 -0500)
committerRichard Henwood <richard.henwood@intel.com>
Fri, 7 Nov 2014 18:36:18 +0000 (18:36 +0000)
Renamed 'Synopsis' sections to 'Usage' and swapped order with the
'Description' section. It makes more sense to see the description of a
feature before an example of its usage.

Renamed the 'Mount Options' section to 'Auto scrub' because it really
describes the auto_scrub parameter and what it does. Added a reference
in this section to the mount.lustre section where an explanation of
the noscrub mount option was added. The relationship between the
auto_scrub parameter and noscrub mount option is explained.

Also put 'N' inside a replaceable tag in the Auto scrub parameters
section.  This is meant to represent an integer.

Signed-off-by: Ryan Haasken <haasken@cray.com>
Change-Id: Ie947f8b268af299a0f583b98bb559f9d3313c0bf
Reviewed-on: http://review.whamcloud.com/11886
Tested-by: Jenkins
Reviewed-by: Richard Henwood <richard.henwood@intel.com>
SystemConfigurationUtilities.xml
TroubleShootingRecovery.xml

index 2dc4e0d..f6f44a5 100644 (file)
@@ -2062,6 +2062,14 @@ mount.lustre</title>
                 <para>  The server is allowed to incrementally extend its timeout up to a hard maximum of <literal>timeout</literal> seconds. The default hard recovery timeout is set to 900 seconds (15 minutes).</para>
               </entry>
             </row>
+            <row>
+              <entry>
+                <para> <literal>noscrub</literal></para>
+              </entry>
+              <entry>
+                     <para>Typically the MDT will detect restoration from a file-level backup during mount. This mount option prevents the OI Scrub from starting automatically when the MDT is mounted. Manually starting LFSCK after mounting provides finer control over the starting conditions. This mount option also prevents OI scrub from occurring automatically when OI inconsistency is detected (see <xref linkend="dbdoclet.lfsck_auto_scrub"/>)</para>
+              </entry>
+            </row>
           </tbody>
         </tgroup>
       </informaltable>
index f7bebcb..987228b 100644 (file)
@@ -124,7 +124,11 @@ root# e2fsck -fp /dev/sda   # fix errors with prudent answers (usually <literal>
         <section>
             <title>Manually Starting LFSCK</title>
             <section>
-                <title>Synopsis</title>
+                <title>Description</title>
+               <para>LFSCK can be started after the MDT is mounted using the <literal>lctl lfsck_start</literal> command.</para>
+            </section>
+            <section>
+                <title>Usage</title>
                 <screen>lctl lfsck_start -M | --device <replaceable>[MDT,OST]_device</replaceable> \
                     [-A | --all] \
                     [-c | --create_ostobj <replaceable>[on | off]</replaceable>] \
@@ -140,10 +144,6 @@ root# e2fsck -fp /dev/sda   # fix errors with prudent answers (usually <literal>
                 </screen>
             </section>
             <section>
-                <title>Description</title>
-                <para>This command is used by LFSCK after the MDT is mounted.</para>
-            </section>
-            <section>
                 <title>Options</title>
                 <para>The various <literal>lfsck_start</literal> options are listed and described below. For a complete list of available options, type <literal>lctl lfsck_start -h</literal>.</para>
                 <informaltable frame="all">
@@ -268,17 +268,17 @@ root# e2fsck -fp /dev/sda   # fix errors with prudent answers (usually <literal>
         <section>
             <title>Manually Stopping LFSCK</title>
             <section>
-                <title>Synopsis</title>
+                <title>Description</title>
+               <para>To stop LFSCK when the MDT is mounted, use the <literal>lctl lfsck_stop</literal> command.</para>
+            </section>
+            <section>
+                <title>Usage</title>
                 <screen>lctl lfsck_stop -M | --device <replaceable>[MDT,OST]_device</replaceable> \
                     [-A | --all] \
                     [-h | --help]
                 </screen>
             </section>
             <section>
-                <title>Description</title>
-                <para>This command is used by LFSCK after the MDT is mounted.</para>
-            </section>
-            <section>
                 <title>Options</title>
                 <para>The various <literal>lfsck_stop</literal> options are listed and described below. For a complete list of available options, type <literal>lctl lfsck_stop -h</literal>.</para>
                 <informaltable frame="all">
@@ -330,16 +330,16 @@ root# e2fsck -fp /dev/sda   # fix errors with prudent answers (usually <literal>
         <title>LFSCK status interface</title>
         <section>
             <title>LFSCK status of OI Scrub via <literal>procfs</literal></title>
+            <section>
+                <title>Description</title>
+                <para>For each LFSCK component there is a dedicated procfs interface to trace the corresponding LFSCK component status. For OI Scrub, the interface is the OSD layer procfs interface, named <literal>oi_scrub</literal>. To display OI Scrub status, the standard <literal>lctl get_param</literal> command is used as shown in the usage below.</para>
+            </section>
             <section >
-                <title>Synopsis</title>
+                <title>Usage</title>
                 <screen>lctl get_param -n osd-ldiskfs.<replaceable>FSNAME</replaceable>-<replaceable>MDT_device</replaceable>.oi_scrub
                 </screen>
             </section>
             <section>
-                <title>Description</title>
-                <para>For each LFSCK component there is a dedicated procfs interface to trace corresponding LFSCK component status. For OI Scrub, the interface is the OSD layer procfs interface, named <literal>oi_scrub</literal>. To display OI Scrub status, the standard <literal>lctl get_param</literal> command is used as described in the synopsis.</para>
-            </section>
-            <section>
                 <title>Output</title>
                 <informaltable frame="all">
                     <tgroup cols="2">
@@ -412,16 +412,16 @@ root# e2fsck -fp /dev/sda   # fix errors with prudent answers (usually <literal>
         </section>
         <section condition='l24'>
             <title>LFSCK status of namespace via <literal>procfs</literal></title>
+            <section>
+                <title>Description</title>
+                <para>The <literal>namespace</literal> component is responsible for checking and repairing FID-in-Dirent and LinkEA consistency. The <literal>procfs</literal> interface for this component is in the MDD layer, named <literal>lfsck_namespace</literal>. To show the status of this component, <literal>lctl get_param</literal> should be used as described in the usage below.</para>
+            </section>
             <section >
-                <title>Synopsis</title>
+                <title>Usage</title>
                 <screen>lctl get_param -n mdd.<replaceable>FSNAME</replaceable>-<replaceable>MDT_device</replaceable>.lfsck_namespace
                 </screen>
             </section>
             <section>
-                <title>Description</title>
-                <para>The <literal>namespace</literal> component is responsible for checking and repairing FID-in-Dirent and LinkEA consistency. The <literal>procfs</literal> interface for this component is in the MDD layer, named <literal>lfsck_namespace</literal>. To show the status of this component <literal>lctl get_param</literal> should be used as described in the synopsis.</para>
-            </section>
-            <section>
                 <title>Output</title>
                 <informaltable frame="all">
                     <tgroup cols="2">
@@ -520,17 +520,17 @@ root# e2fsck -fp /dev/sda   # fix errors with prudent answers (usually <literal>
         </section>
         <section condition='l26'>
             <title>LFSCK status of layout via <literal>procfs</literal></title>
+            <section>
+                <title>Description</title>
+                <para>The <literal>layout</literal> component is responsible for checking and repairing MDT-OST inconsistency. The <literal>procfs</literal> interface for this component is in the MDD layer, named <literal>lfsck_layout</literal>, and in the OBD layer, named <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>
+            </section>
             <section >
-                <title>Synopsis</title>
+                <title>Usage</title>
                 <screen>lctl get_param -n mdd.<replaceable>FSNAME</replaceable>-<replaceable>MDT_device</replaceable>.lfsck_layout
 lctl get_param -n obdfilter.<replaceable>FSNAME</replaceable>-<replaceable>OST_device</replaceable>.lfsck_layout
                 </screen>
             </section>
             <section>
-                <title>Description</title>
-                <para>The <literal>layout</literal> component is responsible for checking and repairing MDT-OST inconsistency. The <literal>procfs</literal> interface for this component is in the MDD layer, named <literal>lfsck_layout</literal>, and in the OBD layer, named <literal>lfsck_layout</literal>. To show the status of this component <literal>lctl get_param</literal> should be used as described in the synopsis.</para>
-            </section>
-            <section>
                 <title>Output</title>
                 <informaltable frame="all">
                     <tgroup cols="2">
@@ -611,13 +611,13 @@ lctl get_param -n obdfilter.<replaceable>FSNAME</replaceable>-<replaceable>OST_d
         <section condition='l26'>
             <title>Rate control</title>
             <section>
-                <title>Synopsis</title>
-                <screen>lctl set_param mdd.${FSNAME}-${MDT_device}.lfsck_speed_limit=N
-lctl set_param obdfilter.${FSNAME}-${OST_device}.lfsck_speed_limit=N</screen>
+                <title>Description</title>
+               <para>The LFSCK upper speed limit can be changed using <literal>lctl set_param</literal> as shown in the usage below.</para>
             </section>
             <section>
-                <title>Description</title>
-                <para>Change the LFSCK upper speed limit.</para>
+                <title>Usage</title>
+                <screen>lctl set_param mdd.${FSNAME}-${MDT_device}.lfsck_speed_limit=<replaceable>N</replaceable>
+lctl set_param obdfilter.${FSNAME}-${OST_device}.lfsck_speed_limit=<replaceable>N</replaceable></screen>
             </section>
             <section>
                 <title>Values</title>
@@ -647,16 +647,18 @@ lctl set_param obdfilter.${FSNAME}-${OST_device}.lfsck_speed_limit=N</screen>
                 </informaltable>
             </section>
         </section>
-        <section>
-            <title>Mount options</title>
+        <section xml:id="dbdoclet.lfsck_auto_scrub">
+            <title>Auto scrub</title>
             <section>
-                <title>Synopsis</title>
-                <screen>lctl set_param osd_ldiskfs.${FSNAME}-${MDT_device}.auto_scrub=N
-                </screen>
+                <title>Description</title>
+               <para>The <literal>auto_scrub</literal> parameter controls whether OI scrub will be triggered when an inconsistency is detected during OI lookup. It can be set as described in the usage and values sections below.</para>
+               <para>There is also a <literal>noscrub</literal> mount option (see <xref linkend="dbdoclet.50438219_12635"/>) which can be used to disable automatic OI scrub upon detection of a file-level backup at mount time. If the <literal>noscrub</literal> mount option is specified, <literal>auto_scrub</literal> will also be disabled, so OI scrub will not be triggered when an OI inconsistency is detected. Auto scrub can be renabled after the mount using the command shown in the usage. Manually starting LFSCK after mounting provides finer control over the starting conditions.</para>
             </section>
             <section>
-                <title>Description</title>
-                <para>Typically, the MDT will detect restoration from a file-level backup during mount. For convenience an mount option <literal>noscrub</literal> is provided for MDTs. <literal>noscrub</literal> prevents the OI Scrub starting automatically when the MDT is mounted. The administrator can start LFSCK manually after the MDT is mounted with <literal>lctl</literal>. Manually starting LFSCK after mounting provides finer control over the starting conditions.</para>
+                <title>Usage</title>
+               <screen>lctl set_param osd_ldiskfs.${FSNAME}-${MDT_device}.auto_scrub=<replaceable>N</replaceable>
+                </screen>
+               <para>where <replaceable>N</replaceable> is an integer as described below.</para>
             </section>
             <section>
                 <title>Values</title>
@@ -678,7 +680,7 @@ lctl set_param obdfilter.${FSNAME}-${OST_device}.lfsck_speed_limit=N</screen>
                                     <para>positive integer</para>
                                 </entry>
                                 <entry>
-                                    <para>Manually start OI Scrub if needed.</para>
+                                    <para>Automatically start OI Scrub if inconsistency is detected during OI lookup.</para>
                                 </entry>
                             </row>
                         </tbody>