<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:17:15 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-15314] set default max-inherit to 3 for default dir stripe policy if stripe count is not 0 or 1</title>
                <link>https://jira.whamcloud.com/browse/LU-15314</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;From &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15307&quot; title=&quot;Option to set max directory stripe count per filesystem&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15307&quot;&gt;&lt;del&gt;LU-15307&lt;/del&gt;&lt;/a&gt; by &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=adilger&quot; class=&quot;user-hover&quot; rel=&quot;adilger&quot;&gt;adilger&lt;/a&gt;&lt;br/&gt;
&#160;&lt;br/&gt;
In addition to limiting the stripe count used when selecting &quot;&lt;tt&gt;-c -1&lt;/tt&gt;&quot; it also makes sense to return an error from &quot;&lt;tt&gt;lfs setdirstripe&lt;/tt&gt;&quot; when creating a &lt;b&gt;default&lt;/b&gt; directory striping that has a stripe count &amp;gt; 1 but does not have max-inherit set. There have repeatedly been problems hit when a filesystem is configured with &quot;&lt;tt&gt;lfs setdirstripe -c N -D $MOUNT&lt;/tt&gt;&quot; (for any &lt;tt&gt;N&lt;/tt&gt; &amp;gt; 1) causing &lt;tt&gt;REMOTE_PARENT_DIR&lt;/tt&gt; to be filled or have tens of millions of entries, excessive MDT inode usage, performance issues, etc.&lt;/p&gt;

&lt;p&gt;With automatic DNE MDT space balancing (&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13440&quot; title=&quot;DNE3: limit directory default layout inheritance&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13440&quot;&gt;&lt;del&gt;LU-13440&lt;/del&gt;&lt;/a&gt;) the need to stripe directories by default is almost completely eliminated. It should still be possible to set this by explicitly specifying &lt;tt&gt;--max-inherit=N&lt;/tt&gt;, but this is too dangerous to let users shoot themselves in the foot by accident by what &quot;seems&quot; like a good idea but is actually very bad over time.&lt;br/&gt;
&lt;a href=&quot;https://jira.whamcloud.com/secure/EditComment!default.jspa?id=67407&amp;amp;commentId=319925&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;Edit&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="67430">LU-15314</key>
            <summary>set default max-inherit to 3 for default dir stripe policy if stripe count is not 0 or 1</summary>
                <type id="2" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11311&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="2" iconUrl="https://jira.whamcloud.com/images/icons/priorities/critical.svg">Critical</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="1">Fixed</resolution>
                                        <assignee username="flei">Feng Lei </assignee>
                                    <reporter username="flei">Feng Lei </reporter>
                        <labels>
                            <label>easy</label>
                    </labels>
                <created>Fri, 3 Dec 2021 11:02:26 +0000</created>
                <updated>Wed, 26 Jan 2022 16:28:10 +0000</updated>
                            <resolved>Tue, 11 Jan 2022 14:16:54 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="320828" author="flei" created="Tue, 14 Dec 2021 05:49:26 +0000"  >&lt;p&gt;I would suggest to set the default value of &lt;tt&gt;&amp;#45;&amp;#45;max-inherit&lt;/tt&gt; to a fixed value (e.g., 3) instead of unlimited (-1) for &lt;tt&gt;lfs setstripe -D -c N&lt;/tt&gt; command. But if &lt;tt&gt;&amp;#45;&amp;#45;max-inherit&lt;/tt&gt; is specified explicitly, its value will always be accepted. A warning message can be printed too to notify the user the default value of &lt;tt&gt;&amp;#45;&amp;#45;max-inherit&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;This behavior won&apos;t change anything on a running system, and won&apos;t block existing script to deploy a new system. Even the new system will be a little different from the old ones.&lt;/p&gt;

&lt;p&gt;But if we make &lt;tt&gt;&amp;#45;&amp;#45;max-inherit&lt;/tt&gt; mandatory, some existing scripts may be blocked if they do not provide &lt;tt&gt;&amp;#45;&amp;#45;max-inherit&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=adilger&quot; class=&quot;user-hover&quot; rel=&quot;adilger&quot;&gt;adilger&lt;/a&gt;&#160; Please feel free to comment.&lt;/p&gt;</comment>
                            <comment id="320995" author="adilger" created="Thu, 16 Dec 2021 00:26:13 +0000"  >&lt;blockquote&gt;
&lt;p&gt;I would suggest to set the default value of &lt;tt&gt;&amp;#45;&amp;#45;max&amp;#45;inherit&lt;/tt&gt; to a fixed value (e.g., 3) instead of unlimited (&lt;tt&gt;&amp;#45;1&lt;/tt&gt;) for &quot;&lt;tt&gt;lfs setstripe &amp;#45;D &amp;#45;c N&lt;/tt&gt;&quot; command. But if &lt;tt&gt;&amp;#45;&amp;#45;max&amp;#45;inherit&lt;/tt&gt; is specified explicitly, its value will always be accepted. A warning message can be printed to notify the user the default value of &lt;tt&gt;&amp;#45;&amp;#45;max&amp;#45;inherit&lt;/tt&gt;.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I think this would be a reasonable (and safe) option as well, given the consequences .  Having a limited inheritance (&quot;&lt;tt&gt;LMV_INHERIT_DEFAULT = 3&lt;/tt&gt;&quot;) for default directory layouts with &quot;&lt;tt&gt;stripe_count != 0,1&lt;/tt&gt;&quot; avoids users shooting themselves in the foot.  &quot;&lt;tt&gt;lfs setdirstripe -D&lt;/tt&gt;&quot; should print a warning message for layouts with &lt;tt&gt;&amp;#45;&amp;#45;max&amp;#45;inherit=N&lt;/tt&gt;, &lt;tt&gt;N &amp;gt; 4&lt;/tt&gt; for &quot;&lt;tt&gt;stripe_count != 0,1&lt;/tt&gt;&quot;.  There shouldn&apos;t be a warning message printed for default directory layouts with &quot;&lt;tt&gt;stripe_count=0,1&lt;/tt&gt;&quot;, regardless of &lt;tt&gt;&amp;#45;&amp;#45;max&amp;#45;inherit&lt;/tt&gt; used, since this does not cause the same problems as striped directories.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=chunteraa&quot; class=&quot;user-hover&quot; rel=&quot;chunteraa&quot;&gt;chunteraa&lt;/a&gt;, &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=crusan&quot; class=&quot;user-hover&quot; rel=&quot;crusan&quot;&gt;crusan&lt;/a&gt;, &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=laisiyao&quot; class=&quot;user-hover&quot; rel=&quot;laisiyao&quot;&gt;laisiyao&lt;/a&gt;, any feedback on this?  When the MDT space balancing/limited layout inheritance was being developed in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13440&quot; title=&quot;DNE3: limit directory default layout inheritance&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13440&quot;&gt;&lt;del&gt;LU-13440&lt;/del&gt;&lt;/a&gt;, I thought it was important to maintain the same behavior for &quot;&lt;tt&gt;lfs setdirstripe -D ...&lt;/tt&gt;&quot; as existed before that patch, but in fact the &quot;default striped directories on whole filesystem&quot; behavior is something we &lt;b&gt;don&apos;t&lt;/b&gt; want to keep.&lt;/p&gt;</comment>
                            <comment id="321064" author="laisiyao" created="Fri, 17 Dec 2021 01:41:53 +0000"  >&lt;p&gt;This looks reasonable to me.&lt;/p&gt;</comment>
                            <comment id="321069" author="gerrit" created="Fri, 17 Dec 2021 03:16:50 +0000"  >&lt;p&gt;&quot;Feng, Lei &amp;lt;flei@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/45874&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45874&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15314&quot; title=&quot;set default max-inherit to 3 for default dir stripe policy if stripe count is not 0 or 1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15314&quot;&gt;&lt;del&gt;LU-15314&lt;/del&gt;&lt;/a&gt; utils: set default max-inherit to 3&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 7bf5b510a88ce78d5394f3f1ad29bbc2c239196f&lt;/p&gt;</comment>
                            <comment id="322245" author="gerrit" created="Tue, 11 Jan 2022 06:18:10 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/45874/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45874/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15314&quot; title=&quot;set default max-inherit to 3 for default dir stripe policy if stripe count is not 0 or 1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15314&quot;&gt;&lt;del&gt;LU-15314&lt;/del&gt;&lt;/a&gt; utils: set default max-inherit to 3&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 956b4b1e0d9f18c6fe62d84e1c20268363b8159b&lt;/p&gt;</comment>
                            <comment id="322303" author="pjones" created="Tue, 11 Jan 2022 14:16:54 +0000"  >&lt;p&gt;Landed for 2.15&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="67407">LU-15307</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="64857">LU-14792</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="58702">LU-13440</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="68228">LUDOC-501</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|i02bhz:</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>