<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:15:38 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-8217] Clarify interaction of lfsck_start -A and -M options</title>
                <link>https://jira.whamcloud.com/browse/LU-8217</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Looking for clarification on the intent of the &quot;-A&quot; option to &quot;lctl lfsck_start&quot;.&lt;/p&gt;

&lt;p&gt;The helpt text says:&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;options:
-M: device to start LFSCK/scrub on
-A: start LFSCK on all MDT devices
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Which implies that one should either run lfsck on just one OR all devices.  Yet, it seems that specifying -M is still required:&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;service322 ~ # lctl lfsck_start -A
Must specify device to start LFSCK.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So, I would guess that &quot;-M&quot; was never made non-mandatory in the arg parsing when -A was added.  Or perhaps the help text is just misleading and all that is needed is a documentation update?&lt;/p&gt;

&lt;p&gt;Should the -A and -M options be mutually-exclusive?&lt;/p&gt;

&lt;p&gt;Under what circumstances would you NOT want to use -A?  Should that just be the default, and then -M is optional to be more restrictive in lfsck operation, and no -A option is needed at all?&lt;/p&gt;</description>
                <environment></environment>
        <key id="37255">LU-8217</key>
            <summary>Clarify interaction of lfsck_start -A and -M options</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="6" iconUrl="https://jira.whamcloud.com/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="6">Not a Bug</resolution>
                                        <assignee username="yong.fan">nasf</assignee>
                                    <reporter username="ndauchy">Nathan Dauchy</reporter>
                        <labels>
                    </labels>
                <created>Mon, 30 May 2016 15:08:15 +0000</created>
                <updated>Thu, 9 Jun 2016 00:03:28 +0000</updated>
                            <resolved>Thu, 9 Jun 2016 00:03:28 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="153977" author="pjones" created="Mon, 30 May 2016 15:10:08 +0000"  >&lt;p&gt;Fan Yong&lt;/p&gt;

&lt;p&gt;Could you please advise?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="154032" author="yong.fan" created="Tue, 31 May 2016 07:46:46 +0000"  >&lt;p&gt;Sorry for the confusing. The new LFSCK contains several functionalities, some of the them is local device based, such as OI scrub, linkEA and FID-in-dirent verification; some of them cross MDT-OST servers, such as layout LFSCK; some of them needs all MDTs to be involved, such as namespace LFSCK for DNE. All these functionalities or components share the same LFSCK API.&lt;/p&gt;

&lt;p&gt;The option &quot;-M&quot; specify to which device the LFSCK command is initially sent. For example, if you want to start OI scrub on the MDT0002, you can specify &quot;lctl lfsck_start -M $FSNAME-MDT0002 -t scrub&quot;, then related command will be sent to MDT0002 only. If you want to start layout LFSCK on the MDT0003, you can specify &quot;lctl lfsck_start -M $FSNAME-MDT0003 -t layout&quot;, then related command will be sent to MDT0003, and MDT0003 will send LFSCK command to OSTs.&lt;/p&gt;

&lt;p&gt;The option &quot;-A&quot; means we want to start/stop LFSCK on all MDTs devices. Under such case, you still need to specify &quot;-M&quot; option. For example, you have four MDTs in your system, you want to start layout LFSCK on all MDTs (and related OSTs), you can specify &quot;lctl lfsck_start -M $FSNAME-MDT0000 -t layout&quot;, then related command will be sent to MDT0000, and MDT0000 will send LFSCK command to other three MDTs, and each MDT will send the LFSCK command to OSTs.&lt;/p&gt;

&lt;p&gt;So &quot;-M&quot; and &quot;-A&quot; are NOT exclusive each other. &quot;-M&quot; is mandatory, in spite of &quot;-A&quot; specified or not. &quot;-A&quot; is optional, that is disabled by default. But sometimes it will be enabled automatically. For example, if you specify &quot;-o&quot; for layout LFSCK to handle orphan OST-objects, even if you does not specify &quot;-A&quot;, the LFSCK commands will be sent to all MDTs and OSTs, that is initially from the MDTxxxx specified by &quot;-M&quot; option. On the other hand, if you want to start namespace LFSCK for DNE case, you need to specify &quot;-A&quot; explicitly, otherwise it will start local namespace LFSCK for linkEA and FID-in-dirent only.&lt;/p&gt;</comment>
                            <comment id="154075" author="ndauchy" created="Tue, 31 May 2016 13:12:15 +0000"  >&lt;p&gt;That clarification helps a lot, thanks!  (maybe some of it should be in the manual or help output?)&lt;/p&gt;

&lt;p&gt;Just to be sure I understand... on a system with a single MDT, there is never really a need to use the -A option, since the other flags will control whether LFSCK commands are sent to the OSTs, right?  Conversely, what is the downside to specifying -A, and why not just make that the default behaviour to simplify things for the system admins?&lt;/p&gt;</comment>
                            <comment id="154082" author="yong.fan" created="Tue, 31 May 2016 13:45:08 +0000"  >&lt;p&gt;For single MDT system, no need to specify &quot;-A&quot; option. The MDT will dispatch related LFSCK command to OSTs automatically.&lt;br/&gt;
As for why not enable &quot;-A&quot; by default, there is no special reason, but consider some use cases, such as OI scrub, it is local device based, such functionality was introduced since Lustre-2.3, at that time, no &quot;-A&quot; option yet. If we make &quot;-A&quot; enable by default, then we need another option for these non &quot;-A&quot; cases.&lt;/p&gt;</comment>
                    </comments>
                    <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_10490" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>End date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 31 May 2016 15:08:15 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzyd3z:</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>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10493" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>Start date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 30 May 2016 15:08:15 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>