<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:49:25 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-5202] LFSCK 5: LFSCK needs to log all changes and errors found</title>
                <link>https://jira.whamcloud.com/browse/LU-5202</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;LFSCK needs to log with D_LFSCK all fixes that it makes and any inconsistencies that it finds that it does not repair (e.g. unknown LOV magic layouts). Otherwise it will be making secret changes to the filesystem and when there are problems they will be impossible to debug.&lt;/p&gt;

&lt;p&gt;There should be a mechanism for logging D_LFSCK messages to a separate log file for administrators to review, so that the kernel debug messages are not lost.  A simple mechanism would be debug_daemon to log all messages to a file, then &quot;lctl filter all; lctl show lfsck&quot; (or similar) to filter all except lfsck messages into a text log file.&lt;/p&gt;

&lt;p&gt;The problem with this approach is that debug_daemon will consume all debug messages while it is running, and it will log a lot more than just D_LFSCK messages to disk.  We may want to consider some other logging mechanism to capture just the D_LFSCK messages.&lt;/p&gt;</description>
                <environment></environment>
        <key id="25167">LU-5202</key>
            <summary>LFSCK 5: LFSCK needs to log all changes and errors found</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</priority>
                        <status id="3" iconUrl="https://jira.whamcloud.com/images/icons/statuses/inprogress.png" description="This issue is being actively worked on at the moment by the assignee.">In Progress</status>
                    <statusCategory id="4" key="indeterminate" colorName="inprogress"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                            <label>mq115</label>
                    </labels>
                <created>Mon, 16 Jun 2014 18:06:20 +0000</created>
                <updated>Thu, 12 Aug 2021 21:40:50 +0000</updated>
                                            <version>Lustre 2.6.0</version>
                    <version>Lustre 2.5.5</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>12</watches>
                                                                            <comments>
                            <comment id="86759" author="yong.fan" created="Tue, 17 Jun 2014 00:20:48 +0000"  >&lt;p&gt;Why not use &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4610&quot; title=&quot;LFSCK needs to log all changes and errors found&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4610&quot;&gt;&lt;del&gt;LU-4610&lt;/del&gt;&lt;/a&gt;?&lt;/p&gt;</comment>
                            <comment id="86762" author="adilger" created="Tue, 17 Jun 2014 00:28:08 +0000"  >&lt;p&gt;Because &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4610&quot; title=&quot;LFSCK needs to log all changes and errors found&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4610&quot;&gt;&lt;del&gt;LU-4610&lt;/del&gt;&lt;/a&gt; needs to be closed for 2.6.0 to be released, and it isn&apos;t likely that this code will be landed for 2.6.0. &lt;/p&gt;</comment>
                            <comment id="102721" author="adilger" created="Wed, 7 Jan 2015 05:09:41 +0000"  >&lt;p&gt;On 2.5.3-ge835226 I ran &lt;tt&gt;lctl lfsck_start -M myth-MDT0000 -t namespace&lt;/tt&gt; and enabled D_LFSCK printing to the console via &lt;tt&gt;lctl set_param printk=lfsck&lt;/tt&gt;.  This generated a lot of console messages that weren&apos;t very useful:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;Jan  4 21:36:33 mookie kernel: Lustre: 3402:0:(osd_scrub.c:1240:osd_otable_it_preload()) OSD pre-loaded: max = 2621440, preload = 2621438, rc = 0
Jan  4 21:36:33 mookie kernel: Lustre: 3402:0:(osd_scrub.c:1240:osd_otable_it_preload()) OSD pre-loaded: max = 2621440, preload = 2621439, rc = 0
Jan  4 21:36:33 mookie kernel: Lustre: 3402:0:(osd_scrub.c:1240:osd_otable_it_preload()) OSD pre-loaded: max = 2621440, preload = 2621440, rc = 0
Jan  4 21:36:33 mookie kernel: Lustre: 3402:0:(osd_scrub.c:1240:osd_otable_it_preload()) OSD pre-loaded: max = 2621440, preload = 2621441, rc = 1
Jan  4 21:36:33 mookie kernel: Lustre: 3403:0:(osd_scrub.c:1301:osd_scrub_main()) OI scrub: stop, rc = 1, pos = 2621441
Jan  4 21:36:33 mookie kernel: Lustre: 3402:0:(lfsck_engine.c:340:lfsck_master_engine()) LFSCK exit: oit_flags = 0xc0002, dir_flags = 0xc004, oit_cookie = 2130251, dir_cookie = 3397299287892376453, parent = [0x20814b:0x17d4596b:0x0], pid 
= 3402, rc = 1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This should be fixed for b2_5.&lt;/p&gt;

&lt;p&gt;For 2.7, we discussed adding &lt;tt&gt;lctl lfsck_start -v&lt;/tt&gt; and &lt;tt&gt;-q&lt;/tt&gt; options to enable the D_LFSCK messages to print to the console or not.  Also, major messages like start/stop, urgent scrub, and first message of non-upgrade error should always be printed to the console via D_CONSOLE.&lt;/p&gt;</comment>
                            <comment id="107918" author="johann" created="Wed, 25 Feb 2015 13:05:53 +0000"  >&lt;p&gt;In the meantime, it would be pretty useful to have a procfs tunable to dump lustre debug logs when an inconsistency is found by lfsck (similar to dump_on_eviction). It would help us debugging on lola.&lt;/p&gt;</comment>
                            <comment id="107919" author="gerrit" created="Wed, 25 Feb 2015 13:39:27 +0000"  >&lt;p&gt;Fan Yong (fan.yong@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/13864&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/13864&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5202&quot; title=&quot;LFSCK 5: LFSCK needs to log all changes and errors found&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5202&quot;&gt;LU-5202&lt;/a&gt; lfsck: dump LFSCK debug log automatically&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 06777610a8e5b16cfb66cd0a54bc616e965c28d2&lt;/p&gt;</comment>
                            <comment id="107975" author="adilger" created="Wed, 25 Feb 2015 19:23:55 +0000"  >&lt;p&gt;I&apos;ve just been using &lt;tt&gt;lctl set_param printk=+lfsck&lt;/tt&gt; to have lfsck messages go to the console. That is ok with master, but b2_5 needs to be fixed so all the OI scrub status messages are not using D_LFSCK. &lt;/p&gt;</comment>
                            <comment id="108048" author="yong.fan" created="Thu, 26 Feb 2015 02:45:50 +0000"  >&lt;p&gt;The patch 13864 is used as temporary solution for lola test.&lt;/p&gt;</comment>
                            <comment id="109898" author="cliffw" created="Tue, 17 Mar 2015 19:47:08 +0000"  >&lt;p&gt;The patch current has two negative reviews and has failed Maloo - we cannot use this on soak test in this state.&lt;br/&gt;
Is there a proper fix that is going to land somewhere?&lt;/p&gt;</comment>
                            <comment id="144615" author="yong.fan" created="Fri, 4 Mar 2016 05:47:14 +0000"  >&lt;blockquote&gt;
&lt;p&gt;The patch current has two negative reviews and has failed Maloo - we cannot use this on soak test in this state.&lt;br/&gt;
Is there a proper fix that is going to land somewhere?&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Sorry, there is not suitable patch yet, we need more consideration for that.&lt;/p&gt;</comment>
                            <comment id="153888" author="ndauchy" created="Fri, 27 May 2016 22:36:48 +0000"  >&lt;p&gt;While we are waiting for a revised patch and new feature... can you please clarify the procedure for gathering the logs and perhaps deciphering them?&lt;/p&gt;

&lt;p&gt;What I have been able to come up with so far is...&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt; lctl set_param printk=+lfsck
 lctl filter all_subs
 lctl show lfsck
 lctl clear
 lctl debug_daemon start /var/log/lfsck.debug
 
 lctl lfsck_start -A -M nbptest-MDT0000 -c on -C on -o
 lctl get_param -n osd-ldiskfs.*.oi_scrub | grep status
 
 lctl debug_daemon stop
 lctl set_param printk=-lfsck
 lctl debug_file /var/log/lfsck.debug | grep lfsck | egrep -v &quot;(namespace LFSCK add flag| RPC pname)&quot; &amp;gt; /var/log/lfsck.log
 lctl show all_subs
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I&apos;m not sure that the &quot;filter&quot; commands are actually doing anything useful though.  And I would like to know if that method leaves out anything useful from the lfsck.log file.&lt;/p&gt;</comment>
                            <comment id="153920" author="adilger" created="Sat, 28 May 2016 15:47:29 +0000"  >&lt;p&gt;What you&apos;ve got there is belt and suspenders. The printk setting will itself dump all lfsck messages to the console (dmesg &amp;amp; /var/log/messages). If you don&apos;t want that, then debug_daemon is the alternative. The filter setting is indeed irrelevant since all the subsystems are already enabled by default. &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="37079">LU-8169</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="23096">LU-4610</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="28109">LU-6102</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzwp4n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14526</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>