<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:23:47 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-9162] Option to set max stripe count per filesystem</title>
                <link>https://jira.whamcloud.com/browse/LU-9162</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;We have users that will set stripe count by using &quot;-1&quot; as in &lt;br/&gt;
lfs setstripe -c -1&lt;/p&gt;

&lt;p&gt;Filesystem with small number of OSTs (~200) this was ok. But as our OST count get lager (&amp;gt;400) this is not always desirable. Most of the time we don&apos;t want our users to set stripe counts so large. We would like config option for max default size setting for (lfs setstripe -c -1). But would still like the ability to allow setting stripe counts upto LOV_MAX_STRIPE_COUNT for those who really need it.&lt;/p&gt;
</description>
                <environment></environment>
        <key id="44159">LU-9162</key>
            <summary>Option to set max stripe count per filesystem</summary>
                <type id="2" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11311&amp;avatarType=issuetype">New Feature</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="mhanafi">Mahmoud Hanafi</reporter>
                        <labels>
                            <label>easy</label>
                    </labels>
                <created>Mon, 27 Feb 2017 17:37:44 +0000</created>
                <updated>Fri, 10 Mar 2023 19:53:51 +0000</updated>
                            <resolved>Tue, 30 Nov 2021 13:46:28 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>12</watches>
                                                                            <comments>
                            <comment id="186324" author="pjones" created="Mon, 27 Feb 2017 19:01:39 +0000"  >&lt;p&gt;Mahmoud&lt;/p&gt;

&lt;p&gt;Is this something that you are working on or more of a suggestion for an enhancement? We discussed this a little on the daily engineering call and the feeling was that this could be a useful change though there would still need to be some consideration given to be able to override this behaviour.&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="189155" author="mhanafi" created="Tue, 21 Mar 2017 19:36:51 +0000"  >&lt;p&gt;Peter, &lt;br/&gt;
This is an area we can do the development but we would like some guidance about how the config option should be stored.&lt;/p&gt;
</comment>
                            <comment id="211471" author="adilger" created="Thu, 19 Oct 2017 10:33:58 +0000"  >&lt;p&gt;Mahmoud, I just noticed this ticket when searching for another issue.&lt;/p&gt;

&lt;p&gt;It looks like this would be relatively straight forward to do.  It looks like what would be needed is to add a /proc tunable to specify e.g. &lt;tt&gt;maximum_stripe_count&lt;/tt&gt; (0 if no limit), and add another check into &lt;tt&gt;lod_get_stripe_count()&lt;/tt&gt;, something like:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (stripe_count &amp;gt; lod-&amp;gt;lod_desc.ld_active_tgt_count) {
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (lod-&amp;gt;lod_max_stripe_count &amp;amp;&amp;amp;
                    lod-&amp;gt;lod_max_stripe_count &amp;lt; lod-&amp;gt;lod_desc.ld_active_tgt_count)
                        stripe_count = lod-&amp;gt;lod_max_stripe_count;
                &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;
                        stripe_count = lod-&amp;gt;lod_desc.ld_active_tgt_count;
        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="315664" author="flei" created="Fri, 15 Oct 2021 08:12:33 +0000"  >&lt;p&gt;lod_desc is origially a readonly struct so there is no lock protection on it. If we add a changable field ld_max_stripe_count into it, we need a lock to protect it anywhere it&apos;s accessed. Is it too expensive?&lt;/p&gt;</comment>
                            <comment id="315665" author="flei" created="Fri, 15 Oct 2021 08:24:00 +0000"  >&lt;p&gt;one more question is where to put the lock?&lt;/p&gt;</comment>
                            <comment id="315771" author="adilger" created="Sat, 16 Oct 2021 07:33:09 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=flei&quot; class=&quot;user-hover&quot; rel=&quot;flei&quot;&gt;flei&lt;/a&gt;, I don&apos;t think this needs locking, because it is &quot;racy&quot; even with a lock. The value could be accessed a microsecond before or after the value is changed by the user, so having a lock won&apos;t help that. It will only affect the one file being created at the time it is checked, and does not really need to be consistent from one file to the next. &lt;/p&gt;

&lt;p&gt;Also, this does not really need to be part of lov_desc, which was the old/original way to set the default &quot;plain&quot; layout of the filesystem, but has been deprecated with the introduction of more complex PFL/FLR layouts. It would be better to make this a normal sysfs tunable that can be set with &quot;&lt;tt&gt;lctl set_param &lt;span class=&quot;error&quot;&gt;&amp;#91;-P&amp;#93;&lt;/span&gt; lod.&amp;#42;.max_stripe_count&lt;/tt&gt;&quot;. &lt;/p&gt;</comment>
                            <comment id="317804" author="flei" created="Wed, 10 Nov 2021 05:23:39 +0000"  >&lt;p&gt;Is is OK to make the max_stripe_count a member of lod_device?&lt;/p&gt;</comment>
                            <comment id="317805" author="adilger" created="Wed, 10 Nov 2021 06:06:58 +0000"  >&lt;p&gt;Yes,  definitely.  You can copy &lt;tt&gt;stripeoffset_show()&lt;/tt&gt; and &lt;tt&gt;stripeoffset_store()&lt;/tt&gt; to print/store the parameter in lod_device.&lt;/p&gt;</comment>
                            <comment id="317964" author="gerrit" created="Thu, 11 Nov 2021 06:13:10 +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/45532&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45532&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9162&quot; title=&quot;Option to set max stripe count per filesystem&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9162&quot;&gt;&lt;del&gt;LU-9162&lt;/del&gt;&lt;/a&gt; lod: option to set max stripe count per filesystem&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 80534f98629dedaeb381757e97f8c9d7bf62ac0c&lt;/p&gt;</comment>
                            <comment id="319463" author="gerrit" created="Tue, 30 Nov 2021 03:46:16 +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/45532/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45532/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9162&quot; title=&quot;Option to set max stripe count per filesystem&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9162&quot;&gt;&lt;del&gt;LU-9162&lt;/del&gt;&lt;/a&gt; lod: option to set max stripe count per filesystem&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 3c9580931d1a7753e6c03900df01fd05ab3ca73d&lt;/p&gt;</comment>
                            <comment id="319537" author="pjones" created="Tue, 30 Nov 2021 13:46:28 +0000"  >&lt;p&gt;Landed for 2.15&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10324">
                    <name>Cloners</name>
                                                                <inwardlinks description="is cloned by">
                                        <issuelink>
            <issuekey id="67407">LU-15307</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="59837">LU-13748</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="27966">LU-6689</issuekey>
        </issuelink>
            <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|hzz57z:</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>