From f7edc1052d1752e09e6a1e39843cecb23ac42880 Mon Sep 17 00:00:00 2001 From: Arshad Hussain Date: Wed, 14 Apr 2021 15:33:39 +0530 Subject: [PATCH] LUDOC-394 manual: Add meaningful ref names under LustreDebugging.xml This patch adds meaningful and proper reference name under file LustreDebugging.xml Signed-off-by: Arshad Hussain Change-Id: Iac26a5dc6fd55656a5dc824029aab7541d9ca9f6 Reviewed-on: https://review.whamcloud.com/43360 Tested-by: jenkins Reviewed-by: Andreas Dilger --- LustreDebugging.xml | 50 +++++++++++++++++++++++++--------------- LustreTroubleshooting.xml | 6 ++--- SystemConfigurationUtilities.xml | 10 ++++---- UserUtilities.xml | 4 ++-- 4 files changed, 42 insertions(+), 28 deletions(-) diff --git a/LustreDebugging.xml b/LustreDebugging.xml index 089dd54..cce7317 100644 --- a/LustreDebugging.xml +++ b/LustreDebugging.xml @@ -7,16 +7,16 @@ following sections: - + - + - + -
+
<indexterm><primary>debugging</primary></indexterm> Diagnostic and Debugging Tools A variety of diagnostic and analysis tools are available to debug @@ -76,15 +76,15 @@ Diagnostic and Debugging Tools - This tool is used with the debug_kernel option to manually dump the Lustre debugging log or post-process debugging logs that are dumped automatically. For more information about the - lctl tool, see and . + lctl tool, see and . Lustre subsystem asserts - A panic-style assertion (LBUG) in the kernel causes the Lustre file system to dump the debug log to the file /tmp/lustre-log.timestamp where it can be retrieved after a reboot. For more information, see . + linkend="dbdoclet.troubleshooting"/>. @@ -99,7 +99,12 @@ Diagnostic and Debugging Tools
<indexterm><primary>debugging</primary><secondary>external tools</secondary></indexterm>External Debugging Tools - The tools described in this section are provided in the Linux kernel or are available at an external website. For information about using some of these tools for Lustre debugging, see and . + The tools described in this section are provided in the Linux + kernel or are available at an external website. For information about + using some of these tools for Lustre debugging, see + and + . +
<indexterm><primary>debugging</primary><secondary>admin tools</secondary></indexterm>Tools for Administrators and Developers Some general debugging tools provided as a part of the standard Linux distribution @@ -228,19 +233,23 @@ Diagnostic and Debugging Tools
-
+
<indexterm><primary>debugging</primary><secondary>procedure</secondary></indexterm>Lustre Debugging Procedures - The procedures below may be useful to administrators or developers debugging a Lustre files system. + The procedures below may be useful to administrators or developers + debugging a Lustre files system.
<indexterm><primary>debugging</primary><secondary>message format</secondary></indexterm>Understanding the Lustre Debug Messaging Format - Lustre debug messages are categorized by originating subsystem, message type, and location in the source code. For a list of subsystems and message types, see . + Lustre debug messages are categorized by originating subsystem, + message type, and location in the source code. For a list of subsystems + and message types, see . + For a current list of subsystems and debug message types, see libcfs/include/libcfs/libcfs_debug.h in the Lustre software tree - The elements of a Lustre debug message are described in Format of Lustre Debug Messages. -
+ The elements of a Lustre debug message are described in Format of Lustre Debug Messages. +
Lustre Debug Messages Each Lustre debug message has the tag of the subsystem it originated in, the message type, and the location in the source code. The subsystems and debug types used are as @@ -521,7 +530,7 @@ Diagnostic and Debugging Tools
-
+
Format of Lustre Debug Messages The Lustre software uses the CDEBUG() and CERROR() macros to print the debug or error messages. To print the @@ -624,9 +633,12 @@ Diagnostic and Debugging Tools Lustre debug messages are maintained in a buffer, with the maximum buffer size specified (in MBs) by the debug_mb parameter (lctl get_param debug_mb). The buffer is circular, so debug messages are kept until the allocated buffer limit is reached, and then the first messages are overwritten.
-
+
<indexterm><primary>debugging</primary><secondary>using lctl</secondary></indexterm>Using the lctl Tool to View Debug Messages - The lctl tool allows debug messages to be filtered based on subsystems and message types to extract information useful for troubleshooting from a kernel debug log. For a command reference, see . + The lctl tool allows debug messages to be + filtered based on subsystems and message types to extract information + useful for troubleshooting from a kernel debug log. For a command + reference, see . You can use lctl to: @@ -841,7 +853,7 @@ lctl> debug_kernel [filename] modinfo libcfs
-
+
<indexterm><primary>debugging</primary><secondary>developers tools</secondary></indexterm>Lustre Debugging for Developers The procedures in this section may be useful to developers debugging Lustre source code. @@ -1242,7 +1254,9 @@ lctl> debug_kernel [filename] Then complete the following steps: - Dump the log into a user-specified log file using lctl (see ). + Dump the log into a user-specified log file using lctl + (see ). + Run the leak finder on the newly-created log dump: diff --git a/LustreTroubleshooting.xml b/LustreTroubleshooting.xml index 53d736a..63e53e0 100644 --- a/LustreTroubleshooting.xml +++ b/LustreTroubleshooting.xml @@ -185,7 +185,7 @@
-
+
<indexterm><primary>troubleshooting</primary><secondary>error messages</secondary></indexterm>Viewing Error Messages As Lustre software code runs on the kernel, single-digit error codes display to the application; these error codes are an indication of the problem. Refer to the kernel console @@ -288,11 +288,11 @@ Attachments - Attach log sources such as Lustre debug log dumps (see ), syslogs, or console logs. ), syslogs, or console logs. Note: Lustre debug logs must be processed using lctl df prior to attaching to a Jira ticket. For more information, see . + linkend="dbdoclet.using_lctl_tool"/>. Other fields in the form are used for project tracking and are irrelevant to reporting an issue. You can leave these in their default state. diff --git a/SystemConfigurationUtilities.xml b/SystemConfigurationUtilities.xml index 0c5b60b..55bfdcd 100644 --- a/SystemConfigurationUtilities.xml +++ b/SystemConfigurationUtilities.xml @@ -12,7 +12,7 @@ - + @@ -200,7 +200,7 @@ l_getidentity
-
+
<indexterm><primary>lctl</primary></indexterm> lctl The lctl utility is used for root control and configuration. With lctl you can directly control Lustre via an ioctl interface, allowing various configuration, maintenance and debugging features to be accessed. @@ -803,7 +803,7 @@ lctl > quit - + @@ -2278,7 +2278,7 @@ mount.lustre - + @@ -2739,7 +2739,7 @@ tunefs.lustre - + diff --git a/UserUtilities.xml b/UserUtilities.xml index 44fd0c6..b475db9 100644 --- a/UserUtilities.xml +++ b/UserUtilities.xml @@ -757,7 +757,7 @@ lfs help Name of the pre-defined pool of OSTs (see - ) that will be used + ) that will be used for striping. The stripe_cnt, stripe_size and @@ -1033,7 +1033,7 @@ $ lfs setstripe --pool my_pool /mnt/lustre/dir
See Also - +
-- 1.8.3.1