<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:31: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-16938] &quot;lfs setstripe -C -1&quot; stripes too widely, should be limited to OST_COUNT</title>
                <link>https://jira.whamcloud.com/browse/LU-16938</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;I am reaching out to seek clarification regarding the expected behavior of the &lt;b&gt;&quot;lfs setstripe&quot;&lt;/b&gt; command when using the -C -&lt;b&gt;1&lt;/b&gt; option.&lt;/p&gt;

&lt;p&gt;Currently, it appears that this command is creating a higher stripe count than anticipated. For instance, on my test system, it generated a stripe count of &lt;b&gt;2727&lt;/b&gt; &lt;b&gt;for&lt;/b&gt; a single file. This count exceeds the allowed limit of LOV_MAX_STRIPE_COUNT.&#160;&lt;/p&gt;

&lt;p&gt;I am uncertain about the appropriate solution to address this issue related to the &lt;b&gt;&quot;-1&quot;&lt;/b&gt; argument. I have contemplated the following options:&lt;/p&gt;

&lt;p&gt;1. &#160; &#160;Consider making the option -&lt;b&gt;1&lt;/b&gt; illegal, preventing its usage altogether.&lt;/p&gt;

&lt;p&gt;2. &#160; &#160;Implement a mechanism to automatically set the stripe count to the maximum allowed value (LOV_MAX_STRIPE_COUNT) &lt;b&gt;if&lt;/b&gt; the count exceeds this limit.&lt;/p&gt;

&lt;p&gt;I would greatly appreciate your input and guidance in this matter. It is worth noting that setting the stripe count higher than LOV_MAX_STRIPE_COUNT leads to other problems, such as the failure of the &lt;b&gt;&quot;llapi_layout_get_by_fd&quot;&lt;/b&gt; API to open the file.&lt;/p&gt;

&lt;p&gt;Please let me know your input.&lt;/p&gt;</description>
                <environment></environment>
        <key id="76816">LU-16938</key>
            <summary>&quot;lfs setstripe -C -1&quot; stripes too widely, should be limited to OST_COUNT</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="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="rajeevm">Rajeev Mishra</assignee>
                                    <reporter username="rajeevm">Rajeev Mishra</reporter>
                        <labels>
                    </labels>
                <created>Mon, 3 Jul 2023 18:51:23 +0000</created>
                <updated>Fri, 15 Dec 2023 23:34:24 +0000</updated>
                                            <version>Lustre 2.15.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>8</watches>
                                                                            <comments>
                            <comment id="377310" author="adilger" created="Mon, 3 Jul 2023 20:24:00 +0000"  >&lt;p&gt;This should limit the stripe count of the component to LOV_MAX_STRIPE_COUNT, or whatever will fit into the remaining 64KiB xattr space.  This was also discussed in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13748&quot; title=&quot;&amp;#39;lfs setstripe -C -1&amp;#39; stripes too widely&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13748&quot;&gt;&lt;del&gt;LU-13748&lt;/del&gt;&lt;/a&gt;. I made patch &lt;a href=&quot;https://review.whamcloud.com/50532&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/50532&lt;/a&gt; &quot;{{ &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13748&quot; title=&quot;&amp;#39;lfs setstripe -C -1&amp;#39; stripes too widely&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13748&quot;&gt;&lt;del&gt;LU-13748&lt;/del&gt;&lt;/a&gt; mdt: remove LASSERT in mdt_dump_lmm()}}&quot; to fix the crash from overstriping too widely, but didn&apos;t fix the stripe_count limit setting. &lt;/p&gt;</comment>
                            <comment id="377381" author="zam" created="Tue, 4 Jul 2023 17:37:13 +0000"  >&lt;p&gt;Andreas,&lt;br/&gt;
&quot;-C -1&quot; mimics &quot;-c -1&quot; but unlike the wide striping across all OSTs , overstripe count of 2000 is not a sane thing to do. I bet nobody but only Lustre testers really want 2000 stripes per file. That brings a question about dropping support of  a special value of  &quot;-1&quot; for -C.&lt;/p&gt;</comment>
                            <comment id="377413" author="spitzcor" created="Wed, 5 Jul 2023 01:59:03 +0000"  >&lt;p&gt;+1 Zam&apos;s comment.  2000 overstripes will more likely hurt more than it might help.  We should protect the users from doing stupid things.  I think if someone wants the stripe limit, then they can specify an appropriate value themselves.&lt;/p&gt;</comment>
                            <comment id="377417" author="adilger" created="Wed, 5 Jul 2023 03:34:52 +0000"  >&lt;p&gt;Patrick, any comments on this?  At one time I was thinking that we might use &quot;&lt;tt&gt;-C -2&lt;/tt&gt;&quot; to mean 2xOST_COUNT overstriping, etc. up to some reasonable maximum. That would make &quot;&lt;tt&gt;-C -1&lt;/tt&gt;&quot; behave the same as &quot;&lt;tt&gt;-c -1&lt;/tt&gt;&quot;.&lt;/p&gt;</comment>
                            <comment id="377418" author="paf0186" created="Wed, 5 Jul 2023 04:04:50 +0000"  >&lt;p&gt;Yeah, I think you&apos;re both right - The current behavior doesn&apos;t make sense and should go, and the suggested behavior from Andreas is reasonable.&#160; My plate is full at the moment, though, so if anyone wants it... heh&lt;/p&gt;

&lt;p&gt;By the way, I believe &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=scherementsev&quot; class=&quot;user-hover&quot; rel=&quot;scherementsev&quot;&gt;scherementsev&lt;/a&gt; fixed the core bug reported here (where -C -1 leads to bad behavior and even possible crashes) in a patch he was doing reworking part of stripe allocation?&#160; Hopefully he remembers which one.&#160; He took option &apos;2&apos;, since we should do that regardless.&lt;/p&gt;</comment>
                            <comment id="377419" author="paf0186" created="Wed, 5 Jul 2023 04:08:01 +0000"  >&lt;p&gt;Rajeev, I would support a patch to make -C -1 do the same as &apos;-c -1&apos;, or just to return -EINVAL.&#160; Either one is fine with me.&#160; The improved behavior Andreas is suggesting for -2, etc would be neat as well but would involve at least a little work.&#160; (Documentation, tests, etc, even if the implementation is easy)&lt;/p&gt;</comment>
                            <comment id="377427" author="sergey" created="Wed, 5 Jul 2023 06:53:00 +0000"  >&lt;p&gt;I think Patrick is speaking about &quot;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16623&quot; title=&quot;lod_statfs_and_check() does not skip unusable OSTs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16623&quot;&gt;&lt;del&gt;LU-16623&lt;/del&gt;&lt;/a&gt; lod: handle object allocation consistently&quot;.&lt;br/&gt;
Checking master with mentioned patch I don&apos;t see any problem:&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;[root@vm2 tests]# lfs setstripe -C -1 /mnt/lustre/foo
[root@vm2 tests]# lfs getstripe /mnt/lustre/foo | head -n 4
/mnt/lustre/foo
lmm_stripe_count: &#160;2000
lmm_stripe_size: &#160; 1048576
lmm_pattern: &#160; &#160; &#160; raid0,overstriped &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Guys, does version where you reproduced the issue include above patch? Or am I doing something wrong to reproduce it? If so, please give more details.&lt;/p&gt;</comment>
                            <comment id="377481" author="paf0186" created="Wed, 5 Jul 2023 14:26:27 +0000"  >&lt;p&gt;Thanks Sergey.&lt;/p&gt;</comment>
                            <comment id="377494" author="JIRAUSER18604" created="Wed, 5 Jul 2023 14:51:03 +0000"  >&lt;p&gt;Patrick and Sergey I do not have the LU 16623 in my workspace. Will update my workspace and let you know if the problem still persist.&lt;/p&gt;

&lt;p&gt;Thanks for your help.&lt;/p&gt;</comment>
                            <comment id="377522" author="JIRAUSER18604" created="Wed, 5 Jul 2023 16:57:17 +0000"  >&lt;p&gt;With the patch it works good as shown below&lt;/p&gt;

&lt;p&gt;lfs setstripe -C -1 /mnt/lustre/rajeev&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;lfs getstripe /mnt/lustre/rajeev&#160;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;/mnt/lustre/rajeev&lt;/p&gt;

&lt;p&gt;lmm_stripe_count:&#160; 2000&lt;/p&gt;

&lt;p&gt;lmm_stripe_size: &#160; 1048576&lt;/p&gt;

&lt;p&gt;lmm_pattern: &#160; &#160; &#160; raid0,overstriped&lt;/p&gt;

&lt;p&gt;lmm_layout_gen:&#160; &#160; 0&lt;/p&gt;

&lt;p&gt;lmm_stripe_offset: 0&lt;/p&gt;</comment>
                            <comment id="377612" author="adilger" created="Thu, 6 Jul 2023 00:51:26 +0000"  >&lt;p&gt;Rajeev, if you have the cycles, it would be good to implement the &quot;&lt;tt&gt;&amp;#45;C &amp;#45;1/&amp;#45;2/&amp;#45;3/...&lt;/tt&gt;&quot; option to specify 1x/2x/3x/... overstriping of the OSTs, maybe up to 32x the OST count, or at least &quot;&lt;tt&gt;&amp;#45;C &amp;#45;1&lt;/tt&gt;&quot; limiting to OST count?  There may be a couple of tests using &quot;&lt;tt&gt;&amp;#45;C &amp;#45;1&lt;/tt&gt;&quot; that need to be changed to e.g. &quot;&lt;tt&gt;&amp;#45;C 2000&lt;/tt&gt;&quot;.&lt;/p&gt;</comment>
                            <comment id="377749" author="JIRAUSER18604" created="Thu, 6 Jul 2023 16:34:36 +0000"  >&lt;p&gt;@Andreas I will try to add the functionality as suggested. I assume max in any case should not cross LOV_MAX_STRIPE_COUNT that is 2000 ?&lt;/p&gt;</comment>
                            <comment id="377752" author="paf0186" created="Thu, 6 Jul 2023 16:39:51 +0000"  >&lt;p&gt;Definitely not.&#160; That can cause crashes, or at least errors (or it should).&lt;/p&gt;</comment>
                            <comment id="379607" author="adilger" created="Thu, 20 Jul 2023 22:07:19 +0000"  >&lt;p&gt;Since the core &quot;&lt;tt&gt;&amp;#45;C &amp;#45;1&lt;/tt&gt;&quot; issues were already fixed by &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13748&quot; title=&quot;&amp;#39;lfs setstripe -C -1&amp;#39; stripes too widely&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13748&quot;&gt;&lt;del&gt;LU-13748&lt;/del&gt;&lt;/a&gt; and &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16623&quot; title=&quot;lod_statfs_and_check() does not skip unusable OSTs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16623&quot;&gt;&lt;del&gt;LU-16623&lt;/del&gt;&lt;/a&gt;, I changed this issue to track the improvement for mapping &quot;&lt;tt&gt;&amp;#45;C &amp;#45;1&lt;/tt&gt;&quot; to use &lt;tt&gt;OST_COUNT&lt;/tt&gt; like &quot;&lt;tt&gt;&amp;#45;c &amp;#45;1&lt;/tt&gt;&quot;, and &quot;&lt;tt&gt;&amp;#45;C &amp;#45;2&lt;/tt&gt;&quot; to use &quot;&lt;tt&gt;2 &amp;#42; OST_COUNT&lt;/tt&gt;&quot;, etc.&lt;/p&gt;</comment>
                            <comment id="385182" author="JIRAUSER18604" created="Thu, 7 Sep 2023 17:55:27 +0000"  >&lt;p&gt;I&apos;m currently reviewing the options -c, -C, overstripe-count, and stripe-count to gain a better understanding of their behavior.&lt;/p&gt;

&lt;p&gt;I&apos;ve noticed that there&apos;s a bug where the command accepts all of these options simultaneously, even though it appears that they should be mutually exclusive. Presently, all flags can be used together, as demonstrated in the following example:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;root@test2-rocky8 jbs&amp;#93;&lt;/span&gt;# lfs setstripe --overstripe-count 1024 --stripe-count -1 -c 10 -C -1 test&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;root@test2-rocky8 jbs&amp;#93;&lt;/span&gt;# lfs getstripe test | more&lt;/p&gt;

&lt;p&gt;test&lt;/p&gt;

&lt;p&gt;lmm_stripe_count:&#160; 2000&lt;/p&gt;

&lt;p&gt;lmm_stripe_size: &#160; 1048576&lt;/p&gt;

&lt;p&gt;lmm_pattern: &#160; &#160; &#160; raid0,overstriped&lt;/p&gt;

&lt;p&gt;lmm_layout_gen:&#160; &#160; 0&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;The documentation for these options are as follows:&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160; &#160; -c, --stripe-count &amp;lt;stripe_count&amp;gt;: Specifies the nu&#160; &#160; mber of OSTs to stripe a file over. A value of 0 means to use the filesystem-wide default stripe count (default is 1), and -1 means to stripe over all available OSTs.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160; &#160; -C, --overstripe-count &amp;lt;stripe_count&amp;gt;: Specifies the number of stripes to create, creating more than one stripe per OST if the count exceeds the number of OSTs in the file system. Similar to -c, 0 uses the filesystem-wide default stripe count (default is 1), and -1 means to stripe over all available OSTs.&lt;/p&gt;

&lt;p&gt;&#160;&#160; &#160;&lt;/p&gt;

&lt;p&gt;Now, the question arises: should we consider making these options mutually exclusive? The reason for this consideration is that the behavior of -c is essentially the same as using -C,. If we allow mutual inclusion, we would need to define the precedence of these options when used together.&lt;/p&gt;

&lt;p&gt;Your feedback and input on whether or not we should make these options mutually exclusive would be greatly appreciated.&lt;/p&gt;

&lt;p&gt;The fix will stick with the pattern mentioned in the comment above, which means it will use -1, -2, -3, and so on. In simpler terms, the stripe count will be calculated as a multiple of the OST count, up to the maximum stripe count allowed.&lt;/p&gt;

&lt;p&gt;*~ *&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&lt;/p&gt;</comment>
                            <comment id="385186" author="paf0186" created="Thu, 7 Sep 2023 18:23:31 +0000"  >&lt;p&gt;Interesting!&#160; I think we should make them mutually exclusive, yes.&#160; I would do that in a separate patch from the one which adds &apos;-2, -3&apos; functionality.&lt;/p&gt;</comment>
                            <comment id="385194" author="JIRAUSER18604" created="Thu, 7 Sep 2023 19:18:13 +0000"  >&lt;p&gt;Ok I will just take care of n*ostcount as part of this ticket. Thanks Patrick&lt;/p&gt;</comment>
                            <comment id="385195" author="paf0186" created="Thu, 7 Sep 2023 19:23:20 +0000"  >&lt;p&gt;It would be OK to fix that as a separate patch on this ticket, it&apos;s small enough it doesn&apos;t need a new ticket.&#160; But it should be a separate patch, that&apos;s all.&lt;/p&gt;</comment>
                            <comment id="385229" author="adilger" created="Fri, 8 Sep 2023 00:34:46 +0000"  >&lt;p&gt;Actually, I will disagree with Patrick here.  While &quot;-C M&quot; enables overstriping, it works with a stripe count that is less than the number of OSTs &amp;lt; M, equivalent to &quot;-c M&quot; in that case.  I don&apos;t think it &quot;conflicts&quot; with a later &quot;-c N&quot; option. Like many utilities, the last option specified will take precedence.&lt;/p&gt;</comment>
                            <comment id="385230" author="paf0186" created="Fri, 8 Sep 2023 01:05:55 +0000"  >&lt;p&gt;Interesting, OK!&#160; Happy to defer.&#160; I wasn&apos;t familiar with &quot;last option takes precedence&quot;.&lt;/p&gt;</comment>
                            <comment id="385340" author="jschwartz" created="Fri, 8 Sep 2023 20:38:16 +0000"  >&lt;p&gt;&amp;gt; Like many utilities, the last option specified will take precedence.&lt;/p&gt;

&lt;p&gt;I would be fine with either (mutually exclusive or last takes precedence &lt;em&gt;in its entirety&lt;/em&gt;) but this bothers me:&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;jupiter-p2:/lus/kjcf08 # mkdir test
jupiter-p2:/lus/kjcf08 # lfs setstripe --overstripe-count 1024 --stripe-count 10 test
jupiter-p2:/lus/kjcf08 # lfs getstripe -d test
test
stripe_count:  10 stripe_size:   1048576 pattern:       raid0,overstriped stripe_offset: -1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Note that we got (and kept) overstriped from the first param, but then picked up the count from the second.  If the last option truly took precedence I would expect a stripe count of 10 &lt;em&gt;without&lt;/em&gt; overstriped (just like if the first one took precedence I would expect a stripe count of 1024 &lt;em&gt;with&lt;/em&gt; overstriped).&lt;/p&gt;

&lt;p&gt;It is inconsistent that the behavior is different if you issue them individually, but in the same order:&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;jupiter-p2:/lus/kjcf08 # lfs setstripe --overstripe-count 1024 test
jupiter-p2:/lus/kjcf08 # lfs getstripe -d test
stripe_count:  1024 stripe_size:   1048576 pattern:       raid0,overstriped stripe_offset: -1
jupiter-p2:/lus/kjcf08 # lfs setstripe --stripe-count 10 test
jupiter-p2:/lus/kjcf08 # lfs getstripe -d test
stripe_count:  10 stripe_size:   1048576 pattern:       raid0 stripe_offset: -1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Here each command does as I would expect; &lt;tt&gt;&amp;#45;&amp;#45;overstripe-count 1024&lt;/tt&gt; by itself yields overstriped and stripe count 1024, and &lt;tt&gt;&amp;#45;&amp;#45;stripe-count 10&lt;/tt&gt; by itself on the same directory &lt;em&gt;removes overstriped&lt;/em&gt; (which is what I would expect) yielding stripe count 10 without overstriped.&lt;/p&gt;

&lt;p&gt;The fact that combining them causes it to take the overstriped from the first param and the stripe count from the second is surprising.  &lt;tt&gt;&amp;#45;&amp;#45;stripe-count&lt;/tt&gt; explicitly means not-overstriped and if the rule is that the last one takes precedence, then it should be like the &lt;tt&gt;&amp;#45;&amp;#45;overstripe-count&lt;/tt&gt; wasn&apos;t there at all instead of the &lt;tt&gt;&amp;#45;&amp;#45;stripe-count&lt;/tt&gt; acting as a modifier.&lt;/p&gt;</comment>
                            <comment id="385343" author="paf0186" created="Fri, 8 Sep 2023 20:50:37 +0000"  >&lt;p&gt;Josh,&lt;/p&gt;

&lt;p&gt;Makes sense to me.&#160; There&apos;s also another possible bug here - how many OSTs do you have on that system?&#160; If it&apos;s &amp;gt;= 10, then overstriped shouldn&apos;t be set by the &lt;b&gt;server&lt;/b&gt; code either, which is also a concern.&#160; Overstriping should only be set on the file when the &lt;b&gt;actual file striping&lt;/b&gt; exceeds the number of available OSTs.&#160; (Or at least that was the intent...)&lt;/p&gt;

&lt;p&gt;So there may be two things to fix there - proper overriding by later parameters in userspace, so the overstriping flag isn&apos;t passed along, and then - if you have &amp;gt;= 10 OSTs, then the server shouldn&apos;t set the overstriping pattern regardless of what userspace asked for.&#160; If you have 20 OSTs and give -C 10, overstriping shouldn&apos;t be set, because the file is not actually overstriped.&#160; Overstriping set on a not-overstriped file isn&apos;t fatal, but it&apos;s definitely wrong.&lt;/p&gt;</comment>
                            <comment id="385347" author="adilger" created="Fri, 8 Sep 2023 20:57:41 +0000"  >&lt;p&gt;There is code in &lt;tt&gt;lod_ost_alloc_rr()&lt;/tt&gt; in the MDS object allocation that &lt;em&gt;should&lt;/em&gt; be removing the &lt;tt&gt;LOV_PATTERN_OVERSTRIPING&lt;/tt&gt; flag if it is set unnecessarily:&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;

        /* If there are enough OSTs, a component with overstriping requested
         * will not actually end up overstriped.  The comp should reflect &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.
         */
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!overstriped)
                lod_comp-&amp;gt;llc_pattern &amp;amp;= ~LOV_PATTERN_OVERSTRIPING;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;If this isn&apos;t being applied consistently, then that would be a bug.&lt;/p&gt;</comment>
                            <comment id="385351" author="jschwartz" created="Fri, 8 Sep 2023 21:35:56 +0000"  >&lt;p&gt;I don&apos;t think that is coming into play here because I&apos;m just showing the default striping on a directory.  If I actually create a file within the directory I believe it is behaving as you suggest:&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;jupiter-p2:/lus/kjcf08 # mkdir test
jupiter-p2:/lus/kjcf08 # lfs setstripe --overstripe-count 1024 --stripe-count 10 test
jupiter-p2:/lus/kjcf08 # touch test/foo
jupiter-p2:/lus/kjcf08 # lfs getstripe test | head
test
stripe_count:  10 stripe_size:   1048576 pattern:       raid0,overstriped stripe_offset: -1

test/foo
lmm_stripe_count:  10
lmm_stripe_size:   1048576
lmm_pattern:       raid0,overstriped
lmm_layout_gen:    0
lmm_stripe_offset: 1
	obdidx		 objid		 objid		 group
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;here the file is overstriped because I only have 2 OSTs.&lt;/p&gt;

&lt;p&gt;This is a bit of a degenerative example, but if I just set the &lt;tt&gt;--overstripe-count 2&lt;/tt&gt; the directory will have a default of overstriped with a stripe count of 2, but files that are created are not overstriped (and have a stripe count of 2):&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;jupiter-p2:/lus/kjcf08 # lfs setstripe --overstripe-count 2 test
jupiter-p2:/lus/kjcf08 # lfs getstripe -d test
stripe_count:  2 stripe_size:   1048576 pattern:       raid0,overstriped stripe_offset: -1
jupiter-p2:/lus/kjcf08 # touch test/foo
jupiter-p2:/lus/kjcf08 # lfs getstripe test/foo
test/foo
lmm_stripe_count:  2
lmm_stripe_size:   1048576
lmm_pattern:       raid0
lmm_layout_gen:    0
lmm_stripe_offset: 1
	obdidx		 objid		 objid		 group
	     1	     116959791	    0x6f8aa2f	             0
	     0	     117253333	    0x6fd24d5	             0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;so I think that part of it is working OK.&lt;/p&gt;</comment>
                            <comment id="385354" author="paf0186" created="Fri, 8 Sep 2023 21:41:49 +0000"  >&lt;p&gt;OK, that&apos;s good, then.&#160; The user interface is important but I was more concerned that the server might be marking the layout incorrectly.&#160; Obviously default layouts are a different case.&lt;/p&gt;</comment>
                            <comment id="385355" author="jschwartz" created="Fri, 8 Sep 2023 21:48:06 +0000"  >&lt;p&gt;But just to be clear, the inconsistency I&apos;m concerned about can ultimately affect files, e.g. by ending up with a MUCH larger overstripe count than perhaps was intended if one accidentally does something like this:&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;jupiter-p2:/lus/kjcf08 # mkdir test
jupiter-p2:/lus/kjcf08 # lfs setstripe --overstripe-count 10 --stripe-count -1 test
jupiter-p2:/lus/kjcf08 # touch test/foo
jupiter-p2:/lus/kjcf08 # lfs getstripe test | head
test
stripe_count:  -1 stripe_size:   1048576 pattern:       raid0,overstriped stripe_offset: -1

test/foo
lmm_stripe_count:  2727
lmm_stripe_size:   1048576
lmm_pattern:       raid0,overstriped
lmm_layout_gen:    0
lmm_stripe_offset: 0
	obdidx		 objid		 objid		 group
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;(note the 2727 value is because I don&apos;t have Rajeev&apos;s other fix on this system, but on the latest code this would be 2000... still probably not what was expected on a system with 2 OSTs).&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="74967">LU-16623</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="59837">LU-13748</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </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|i03phr:</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>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>