<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:09:36 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-14422] lfs setstripe -c &apos;&apos; removes pool allocation</title>
                <link>https://jira.whamcloud.com/browse/LU-14422</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;One of our user groups was setting lfs setstripe -c &quot;$STRIPE_COUNT&quot; in a script and not checking the variable existed. Therefore at some point they managed to run the equivalent of&lt;/p&gt;

&lt;p&gt;lfs setstripe -c &quot;&quot;&lt;/p&gt;

&lt;p&gt;Testcase (Client: cray-lustre-default-2.7.5.13_4.4.180-6.0.7.1_16.13__gddebdf5c6.x86_64, Server: 2.10.8)&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;
whi550@galaxy-1 [2021-02-04 13:26] /askapbuffer/payne/whi550/testing&amp;gt; mkdir lfs_testing
whi550@galaxy-1 [2021-02-04 13:26] /askapbuffer/payne/whi550/testing&amp;gt; cd lfs_testing
whi550@galaxy-1 [2021-02-04 13:26] /askapbuffer/payne/whi550/testing/lfs_testing&amp;gt; lfs getstripe .
.
stripe_count:   1 stripe_size:    1048576 stripe_offset:  -1 pool:           processing
whi550@galaxy-1 [2021-02-04 13:26] /askapbuffer/payne/whi550/testing/lfs_testing&amp;gt; lfs setstripe -c &quot;&quot; .
whi550@galaxy-1 [2021-02-04 13:26] /askapbuffer/payne/whi550/testing/lfs_testing&amp;gt; lfs getstripe .
.
stripe_count:   1 stripe_size:    1048576 stripe_offset:  -1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;testcase on 2.12. (lustre-client-2.12.5-1.x86_64, server&#160;lustre-2.12.6-1.el7.x86_64)&lt;/p&gt;

&lt;p&gt;set up pools on server:&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@pgfs-mds4 ~]# mount /dev/mapper/TEST_MGT
[root@pgfs-mds4 ~]# mount /dev/mapper/TEST_OST0000
[root@pgfs-mds4 ~]# mount /dev/mapper/TEST_OST0001
[root@pgfs-mds4 ~]# mount /dev/mapper/TEST_MDT0000
[root@pgfs-mds4 ~]# lctl pool_list testfs
Pools from testfs:
[root@pgfs-mds4 ~]# lctl pool_new testfs.ost0
Pool testfs.ost0 created
[root@pgfs-mds4 ~]# lctl pool_new testfs.ost1
Pool testfs.ost1 created
[root@pgfs-mds4 ~]# lctl pool_add testfs.ost0 testfs-OST0000
OST testfs-OST0000_UUID added to pool testfs.ost0
[root@pgfs-mds4 ~]# lctl pool_add testfs.ost1 testfs-OST0001
OST testfs-OST0001_UUID added to pool testfs.ost1
[root@pgfs-mds4 ~]# rpm -q lustre
lustre-2.12.6-1.el7.x86_64
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;and the client:&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;aelwell@hpc-admin2:/testfs/pawsey0001/aelwell/dir1$ lfs getstripe .
.
stripe_count:  1 stripe_size:   1048576 pattern:       raid0 stripe_offset: -1 pool:          ost0

aelwell@hpc-admin2:/testfs/pawsey0001/aelwell/dir1$ lfs setstripe -c &quot;&quot; .
aelwell@hpc-admin2:/testfs/pawsey0001/aelwell/dir1$ lfs getstripe .
.
stripe_count:  1 stripe_size:   1048576 pattern:       0 stripe_offset: -1

aelwell@hpc-admin2:/testfs/pawsey0001/aelwell/dir1$
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="62836">LU-14422</key>
            <summary>lfs setstripe -c &apos;&apos; removes pool allocation</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="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="bobijam">Zhenyu Xu</assignee>
                                    <reporter username="Elwell">Andrew Elwell</reporter>
                        <labels>
                    </labels>
                <created>Thu, 11 Feb 2021 04:15:02 +0000</created>
                <updated>Sat, 11 Jun 2022 15:25:49 +0000</updated>
                            <resolved>Sat, 11 Jun 2022 15:25:49 +0000</resolved>
                                    <version>Lustre 2.10.8</version>
                    <version>Lustre 2.12.6</version>
                                    <fixVersion>Lustre 2.16.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="291705" author="elwell" created="Thu, 11 Feb 2021 04:16:25 +0000"  >&lt;p&gt;I tried to submit this with the original subject of &lt;br/&gt;
lfs setstripe -c &quot;&quot; removes pool allocation&lt;/p&gt;

&lt;p&gt;.. but Jira wouldn&apos;t accept it. &lt;/p&gt;</comment>
                            <comment id="291706" author="adilger" created="Thu, 11 Feb 2021 04:36:51 +0000"  >&lt;p&gt;Have you tried with a newer client?  Essentially, &quot;setstripe with totally empty layout&quot; means &quot;delete layout&quot;.  However, there were improvements since 2.7 that allow partial layout inheritance from the parent directory, so it may be that this problem is already fixed. &lt;/p&gt;</comment>
                            <comment id="291707" author="elwell" created="Thu, 11 Feb 2021 05:32:44 +0000"  >&lt;p&gt;Yes - the /testfs testcase was a 2.12.6 client against a 2.12.6 server - it doesn&apos;t iherit from parent &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;aelwell@hpc-admin2:/testfs/pawsey0001/aelwell$ lfs setstripe -p ost0 dir1/
aelwell@hpc-admin2:/testfs/pawsey0001/aelwell$ cd dir1
aelwell@hpc-admin2:/testfs/pawsey0001/aelwell/dir1$ lfs getstripe .
.
stripe_count:  1 stripe_size:   1048576 pattern:       raid0 stripe_offset: -1 pool:          ost0

aelwell@hpc-admin2:/testfs/pawsey0001/aelwell/dir1$ mkdir -p foo/bar
aelwell@hpc-admin2:/testfs/pawsey0001/aelwell/dir1/foo/bar$ cd foo/bar
aelwell@hpc-admin2:/testfs/pawsey0001/aelwell/dir1/foo/bar$ pwd
/testfs/pawsey0001/aelwell/dir1/foo/bar
aelwell@hpc-admin2:/testfs/pawsey0001/aelwell/dir1/foo/bar$ lfs getstripe . .. ../..
.
stripe_count:  1 stripe_size:   1048576 pattern:       raid0 stripe_offset: -1 pool:          ost0

..
stripe_count:  1 stripe_size:   1048576 pattern:       raid0 stripe_offset: -1 pool:          ost0

../..
stripe_count:  1 stripe_size:   1048576 pattern:       raid0 stripe_offset: -1 pool:          ost0

aelwell@hpc-admin2:/testfs/pawsey0001/aelwell/dir1/foo/bar$ lfs setstripe -c &quot;&quot; .
aelwell@hpc-admin2:/testfs/pawsey0001/aelwell/dir1/foo/bar$ lfs getstripe . .. ../..
.
stripe_count:  1 stripe_size:   1048576 pattern:       0 stripe_offset: -1

..
stripe_count:  1 stripe_size:   1048576 pattern:       raid0 stripe_offset: -1 pool:          ost0

../..
stripe_count:  1 stripe_size:   1048576 pattern:       raid0 stripe_offset: -1 pool:          ost0

aelwell@hpc-admin2:/testfs/pawsey0001/aelwell/dir1/foo/bar$

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="291708" author="elwell" created="Thu, 11 Feb 2021 06:10:28 +0000"  >&lt;p&gt;The good news is that it at least doesn&apos;t recursively remove pool info below &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; - however newly created dirs inherit the now blank pool info&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;aelwell@hpc-admin2:/testfs/pawsey0001/aelwell/dir1/foo$ lfs getstripe .. bar/
..
stripe_count:  1 stripe_size:   1048576 pattern:       raid0 stripe_offset: -1 pool:          ost0

../foo
stripe_count:  1 stripe_size:   1048576 pattern:       raid0 stripe_offset: -1 pool:          ost0

bar/
stripe_count:  1 stripe_size:   1048576 pattern:       raid0 stripe_offset: -1 pool:          ost0

aelwell@hpc-admin2:/testfs/pawsey0001/aelwell/dir1/foo$ lfs setstripe -c &quot;&quot; .
aelwell@hpc-admin2:/testfs/pawsey0001/aelwell/dir1/foo$ lfs getstripe .. bar/
..
stripe_count:  1 stripe_size:   1048576 pattern:       raid0 stripe_offset: -1 pool:          ost0

../foo
stripe_count:  1 stripe_size:   1048576 pattern:       raid0 stripe_offset: -1

bar/
stripe_count:  1 stripe_size:   1048576 pattern:       raid0 stripe_offset: -1 pool:          ost0

aelwell@hpc-admin2:/testfs/pawsey0001/aelwell/dir1/foo$ mkdir baz
aelwell@hpc-admin2:/testfs/pawsey0001/aelwell/dir1/foo$ lfs getstripe baz
baz
stripe_count:  1 stripe_size:   1048576 pattern:       0 stripe_offset: -1

aelwell@hpc-admin2:/testfs/pawsey0001/aelwell/dir1/foo$
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;I had seen &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; when hunting for similar cases, but there was nothing else obvious&lt;/p&gt;</comment>
                            <comment id="293393" author="gerrit" created="Mon, 1 Mar 2021 02:56:55 +0000"  >&lt;p&gt;Bobi Jam (bobijam@hotmail.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/41793&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/41793&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14422&quot; title=&quot;lfs setstripe -c &amp;#39;&amp;#39; removes pool allocation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14422&quot;&gt;&lt;del&gt;LU-14422&lt;/del&gt;&lt;/a&gt; utils: check empty stripe count setting&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 6afe84900669bd1e4fe381bac20a783c09fae73d&lt;/p&gt;</comment>
                            <comment id="337381" author="gerrit" created="Sat, 11 Jun 2022 05:30:34 +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/41793/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/41793/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14422&quot; title=&quot;lfs setstripe -c &amp;#39;&amp;#39; removes pool allocation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14422&quot;&gt;&lt;del&gt;LU-14422&lt;/del&gt;&lt;/a&gt; utils: check empty stripe-count/offset setting&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 50a7921471298fdc3a28107e7f026504db784aa5&lt;/p&gt;</comment>
                            <comment id="337484" author="pjones" created="Sat, 11 Jun 2022 15:25:49 +0000"  >&lt;p&gt;Landed for 2.16&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_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i01md3:</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>