<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:16:02 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-8264] lfs setstripe without -p pool_name doesn&apos;t inherit pool from parent/ROOT directory</title>
                <link>https://jira.whamcloud.com/browse/LU-8264</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Actually exactly sure of if this is bug, as a doubt filing this bug. Please adviced. Here is use case or more details about it.&lt;/p&gt;

&lt;p&gt;Say I have 4 osts on my setup and created pool with 2 osts assign to it&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;lctl pool_new lustre.pool ;
lctl pool_add lustre.pool lustre-OST0000 lustre-OST0001 ; 
mkdir /mnt/lustre/test_pool
lfs setstripe -c -1 -p lustre.pool /mnt/lustre/test_pool 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Now I can create file in that by following two ways&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; case1: lfs setstripe -c 3 -p lustre.pool /mnt/lustre/test_pool/test1
 case2: lfs setstripe -c 3  /mnt/lustre/test_pool/test2 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Here in case 1 we trim the strip count to 2 as pool has 2 osts&lt;br/&gt;
But in case 2 we allow stripe count 3&lt;br/&gt;
So question is case2 is expected behaviour or bug (as test_pool is assigned to pool) ?&lt;/p&gt;

&lt;p&gt;Following text taken from admin guide.&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;Several lfs commands can be run with OST pools. Use the lfs setstripe command to associate a directory with an OST pool. This causes all &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; regular files and directories in the directory to be created in the pool. The lfs command can be used to list pools in a file system and OSTs in a named pool.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="37539">LU-8264</key>
            <summary>lfs setstripe without -p pool_name doesn&apos;t inherit pool from parent/ROOT directory</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</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="hongchao.zhang">Hongchao Zhang</assignee>
                                    <reporter username="520557">Rahul Deshmukh</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Mon, 13 Jun 2016 05:47:32 +0000</created>
                <updated>Tue, 19 Mar 2019 16:36:42 +0000</updated>
                            <resolved>Thu, 25 Jan 2018 04:50:53 +0000</resolved>
                                    <version>Lustre 2.9.0</version>
                    <version>Lustre 2.10.1</version>
                    <version>Lustre 2.10.4</version>
                                    <fixVersion>Lustre 2.11.0</fixVersion>
                    <fixVersion>Lustre 2.10.4</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>9</watches>
                                                                            <comments>
                            <comment id="155548" author="adilger" created="Mon, 13 Jun 2016 18:00:48 +0000"  >&lt;p&gt;This is indeed a bug, caused by the fact that if the user specifies &lt;em&gt;any&lt;/em&gt; striping parameters (in your case &lt;tt&gt;-c 3&lt;/tt&gt;) they &lt;em&gt;all&lt;/em&gt; of the striping parameters come from the client instead of inheriting the rest of the striping parameters from the parent directory.&lt;/p&gt;

&lt;p&gt;This should be fixed by the patch &lt;a href=&quot;http://review.whamcloud.com/19041&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/19041&lt;/a&gt; &quot;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7660&quot; title=&quot;FS default striping settings only honored on MDT 0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7660&quot;&gt;&lt;del&gt;LU-7660&lt;/del&gt;&lt;/a&gt; dne: support fs default stripe&quot; which would be very useful if you could test and verify that it is fixing this problem.&lt;/p&gt;</comment>
                            <comment id="155796" author="jamesanunez" created="Wed, 15 Jun 2016 15:20:29 +0000"  >&lt;p&gt;Seems like ost-pools.sh test 16 &quot;Inheritance of pool properties&quot; falls short. I&apos;ll work on improving this test.&lt;/p&gt;</comment>
                            <comment id="155883" author="520557" created="Thu, 16 Jun 2016 05:10:46 +0000"  >&lt;p&gt;&amp;gt; This should be fixed by the patch &lt;a href=&quot;http://review.whamcloud.com/19041&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/19041&lt;/a&gt; &quot;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7660&quot; title=&quot;FS default striping settings only honored on MDT 0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7660&quot;&gt;&lt;del&gt;LU-7660&lt;/del&gt;&lt;/a&gt; dne: support fs default stripe&quot; which would be very &lt;br/&gt;
&amp;gt; useful if you could test and verify that it is fixing this problem.&lt;/p&gt;

&lt;p&gt;I have checked with above mention patch but it did not solve the problem. Let me cook the patch and push it.&lt;/p&gt;</comment>
                            <comment id="156037" author="gerrit" created="Fri, 17 Jun 2016 10:40:51 +0000"  >&lt;p&gt;Rahul Deshmukh (rahul.deshmukh@seagate.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/20849&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/20849&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8264&quot; title=&quot;lfs setstripe without -p pool_name doesn&amp;#39;t inherit pool from parent/ROOT directory&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8264&quot;&gt;&lt;del&gt;LU-8264&lt;/del&gt;&lt;/a&gt; lod: lfs setstripe fix for pool.&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 81089bfb4f3564cb2f7ba40d5c39598da2403768&lt;/p&gt;</comment>
                            <comment id="156076" author="gerrit" created="Fri, 17 Jun 2016 19:33:58 +0000"  >&lt;p&gt;James Nunez (james.a.nunez@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/20859&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/20859&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8264&quot; title=&quot;lfs setstripe without -p pool_name doesn&amp;#39;t inherit pool from parent/ROOT directory&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8264&quot;&gt;&lt;del&gt;LU-8264&lt;/del&gt;&lt;/a&gt; tests: setstripe striping parameters not inherited&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 9abd9545d25a8a27fb6542c3077453a14fe35184&lt;/p&gt;</comment>
                            <comment id="156078" author="jamesanunez" created="Fri, 17 Jun 2016 19:38:59 +0000"  >&lt;p&gt;Rahul - I just made a few changes to ost-pools.sh to catch this kind of error. I&apos;ll rebase my patch when yours lands to master and make any necessary changes. &lt;/p&gt;

&lt;p&gt;Some of the changes I made to the ost-pools test script were based on Andreas&apos; abandoned patch &lt;a href=&quot;http://review.whamcloud.com/#/c/18887/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/18887/&lt;/a&gt; &lt;/p&gt;</comment>
                            <comment id="157099" author="520557" created="Tue, 28 Jun 2016 09:10:28 +0000"  >&lt;blockquote&gt;
&lt;p&gt;Rahul - I just made a few changes to ost-pools.sh to catch this kind of error. I&apos;ll rebase my patch when yours lands to master and make any necessary changes.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Ok, Sure.&lt;/p&gt;</comment>
                            <comment id="164856" author="adilger" created="Fri, 2 Sep 2016 18:59:31 +0000"  >&lt;p&gt;Lai, can you please verify that this issue is fixed with your patch &lt;a href=&quot;http://review.whamcloud.com/19041&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/19041&lt;/a&gt; &quot;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7660&quot; title=&quot;FS default striping settings only honored on MDT 0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7660&quot;&gt;&lt;del&gt;LU-7660&lt;/del&gt;&lt;/a&gt; dne: support fs default stripe&quot; and then close this ticket if it is.  Otherwise, please add a comment explaining what still needs to be done.&lt;/p&gt;</comment>
                            <comment id="164906" author="laisiyao" created="Mon, 5 Sep 2016 09:11:39 +0000"  >&lt;p&gt;This issue is that when striping is specified, but pool not, the inherited pool (from parent or filesystem default) should be used. However current code always ignore inherited pool.&lt;/p&gt;

&lt;p&gt;IMO &lt;a href=&quot;http://review.whamcloud.com/20849&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/20849&lt;/a&gt; can fix this issue.&lt;/p&gt;</comment>
                            <comment id="164970" author="adilger" created="Tue, 6 Sep 2016 15:59:07 +0000"  >&lt;p&gt;Since 20849 is landed for 2.9, can you please convert &quot;IMO&quot; to a test case to verify this is working correctly so this bug can be closed. &lt;/p&gt;</comment>
                            <comment id="165049" author="laisiyao" created="Wed, 7 Sep 2016 02:56:34 +0000"  >&lt;p&gt;sure, I&apos;ll add a specific test case later.&lt;/p&gt;</comment>
                            <comment id="165585" author="adilger" created="Sat, 10 Sep 2016 06:24:33 +0000"  >&lt;p&gt;Patch &lt;a href=&quot;http://review.whamcloud.com/20859&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/20859&lt;/a&gt; &quot;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8264&quot; title=&quot;lfs setstripe without -p pool_name doesn&amp;#39;t inherit pool from parent/ROOT directory&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8264&quot;&gt;&lt;del&gt;LU-8264&lt;/del&gt;&lt;/a&gt; tests: setstripe striping parameters not inherited&quot; looks like it has the test case for this change, it just needs to be updated and landed.&lt;/p&gt;</comment>
                            <comment id="216213" author="adilger" created="Wed, 13 Dec 2017 22:16:20 +0000"  >&lt;p&gt;It looks like this is still a problem with at least 2.10.1 client+MDS, per &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10369&quot; title=&quot;running &amp;quot;lfs setstripe -c3 /mnt/lustre/pooldir/newfile&amp;quot; doesn&amp;#39;t inherit pool&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10369&quot;&gt;&lt;del&gt;LU-10369&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="216632" author="pjones" created="Mon, 18 Dec 2017 18:25:31 +0000"  >&lt;p&gt;Hongchao&lt;/p&gt;

&lt;p&gt;Can you please complete this work?&lt;/p&gt;

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

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="217964" author="hongchao.zhang" created="Thu, 11 Jan 2018 10:45:53 +0000"  >&lt;p&gt;the patch &lt;a href=&quot;https://review.whamcloud.com/#/c/20849/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/20849/&lt;/a&gt; has been updated.&lt;/p&gt;</comment>
                            <comment id="219070" author="gerrit" created="Thu, 25 Jan 2018 04:45:48 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/20849/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/20849/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8264&quot; title=&quot;lfs setstripe without -p pool_name doesn&amp;#39;t inherit pool from parent/ROOT directory&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8264&quot;&gt;&lt;del&gt;LU-8264&lt;/del&gt;&lt;/a&gt; lod: lfs setstripe fix for pool.&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: c62ba699c51237ae1a04b59dd23201d8fe852a67&lt;/p&gt;</comment>
                            <comment id="219096" author="pjones" created="Thu, 25 Jan 2018 04:50:53 +0000"  >&lt;p&gt;Landed for 2.11&lt;/p&gt;</comment>
                            <comment id="221598" author="gerrit" created="Fri, 23 Feb 2018 18:50:42 +0000"  >&lt;p&gt;James Nunez (james.a.nunez@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/31401&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/31401&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8264&quot; title=&quot;lfs setstripe without -p pool_name doesn&amp;#39;t inherit pool from parent/ROOT directory&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8264&quot;&gt;&lt;del&gt;LU-8264&lt;/del&gt;&lt;/a&gt; lod: lfs setstripe fix for pool.&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 4820faa50e857f8a1b209673093500244cc6e4a2&lt;/p&gt;</comment>
                            <comment id="225230" author="gerrit" created="Thu, 5 Apr 2018 18:28:40 +0000"  >&lt;p&gt;John L. Hammond (john.hammond@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/31401/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/31401/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8264&quot; title=&quot;lfs setstripe without -p pool_name doesn&amp;#39;t inherit pool from parent/ROOT directory&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8264&quot;&gt;&lt;del&gt;LU-8264&lt;/del&gt;&lt;/a&gt; lod: lfs setstripe fix for pool.&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 585643bfe764ee236bd761ba1f824962c7940644&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="34094">LU-7660</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is duplicated by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="49643">LU-10350</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="49687">LU-10369</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="34953">LU-7813</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|hzyeev:</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>