<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:15:14 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-8169] More extensive and accessible logging of lfsck</title>
                <link>https://jira.whamcloud.com/browse/LU-8169</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;We would like to have more extensive logging of lfsck actions, dumping to a file rather than being limited to a small buffer.&lt;/p&gt;

&lt;p&gt;From &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8071&quot; title=&quot;lvcreate --snapshot of MDT hangs in ldiskfs_journal_start_sb&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8071&quot;&gt;&lt;del&gt;LU-8071&lt;/del&gt;&lt;/a&gt;:&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;By default, the repairing behaviour will be recorded in Lustre debug log
via label &quot;D_LFSCK&quot;. But because Lustre kernel log is in RAM only, and if
you did not dump them periodically, then it will be overwritten.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Rather than using the debuging interface, this should be exposed through the &quot;lctl&quot; tool.  Either an option to &quot;lfsck_start&quot;, or a new &quot;lctl lfsck_log&quot; control option.  Writing to a specified file on the MDS would be sufficient, but the ability to write to syslog could potentially be useful as well.&lt;/p&gt;

&lt;p&gt;Also, I would propose that the default behavior be that logging is *&lt;b&gt;enabled&lt;/b&gt;*.  It is easy enough to go back and delete log files after the fact if they are unneeded... but impossible to track down some of what lfsck has done once the kernel buffer has been exhausted.&lt;/p&gt;</description>
                <environment></environment>
        <key id="37079">LU-8169</key>
            <summary>More extensive and accessible logging of lfsck</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="3">Duplicate</resolution>
                                        <assignee username="yong.fan">nasf</assignee>
                                    <reporter username="ndauchy">Nathan Dauchy</reporter>
                        <labels>
                    </labels>
                <created>Thu, 19 May 2016 18:11:52 +0000</created>
                <updated>Sat, 21 May 2016 03:41:38 +0000</updated>
                            <resolved>Fri, 20 May 2016 21:44:52 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="152966" author="adilger" created="Fri, 20 May 2016 10:01:09 +0000"  >&lt;p&gt;I fully agree.  Please see &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; for possible solutions to this.  One option is to use &lt;tt&gt;lctl set_param printk=+lfsck&lt;/tt&gt; to log the LFSCK messages to the console log, but they may need to be cleaned up to some extent so that D_LFSCK is only used for important messages (i.e. start/stop, and repair) and not just spewing status messages.&lt;/p&gt;

&lt;p&gt;Some possibilities also exist with &quot;lctl lfsck_start&quot; also starting debug_daemon with a filter for only D_LFSCK messages and writing to e.g. &lt;tt&gt;/var/log/lfsck-YYYYMMDD-HHMM.log&lt;/tt&gt; by default.  It would also need to stop debug_daemon when LFSCK completed, but I&apos;m not sure how easily that is done (in-band D_LFSCK &quot;STOP debug_daemon&quot; message?)&lt;/p&gt;</comment>
                            <comment id="153025" author="pjones" created="Fri, 20 May 2016 17:06:14 +0000"  >&lt;p&gt;Fan Yong&lt;/p&gt;

&lt;p&gt;Do you agree that this ticket is seems to be a duplicate of &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;?&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="153064" author="yong.fan" created="Fri, 20 May 2016 21:43:01 +0000"  >&lt;blockquote&gt;
&lt;p&gt;Fan Yong&lt;br/&gt;
Do you agree that this ticket is seems to be a duplicate of &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;?&lt;br/&gt;
Peter&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Yes, I think so.&lt;/p&gt;</comment>
                            <comment id="153066" author="pjones" created="Fri, 20 May 2016 21:44:52 +0000"  >&lt;p&gt;Thanks Fan Yong&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="25167">LU-5202</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|hzyc8f:</customfieldvalue>

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