<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:17:21 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-8417] setstripe -o does not work on directories</title>
                <link>https://jira.whamcloud.com/browse/LU-8417</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;the -o option to setstripe where you can specify the OSTs to use works on files but gets an error when you do the same thing on directories.&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@Lustre-TG1 lustrefs]# mkdir testdir
[root@Lustre-TG1 lustrefs]# lfs setstripe -o 0-3 -c 4 testfile
[root@Lustre-TG1 lustrefs]# lfs getstripe testfile
testfile
lmm_stripe_count:   4
lmm_stripe_size:    1048576
lmm_pattern:        1
lmm_layout_gen:     0
lmm_stripe_offset:  0
        obdidx           objid           objid           group
             0            9925         0x26c5                0
             1            1606          0x646                0
             2            1608          0x648                0
             3            1609          0x649                0

[root@Lustre-TG1 lustrefs]# lfs setstripe -o 0-3 -c 4 testdir
error on ioctl 0x4008669a for &apos;testdir&apos; (3): Invalid argument
error: setstripe: create stripe file &apos;testdir&apos; failed
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="38291">LU-8417</key>
            <summary>setstripe -o does not work on directories</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="wc-triage">WC Triage</assignee>
                                    <reporter username="ghagensen">Gary Hagensen</reporter>
                        <labels>
                            <label>easy</label>
                    </labels>
                <created>Wed, 20 Jul 2016 14:31:08 +0000</created>
                <updated>Thu, 30 Nov 2023 19:48:01 +0000</updated>
                                            <version>Lustre 2.7.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>9</watches>
                                                                            <comments>
                            <comment id="159396" author="adilger" created="Wed, 20 Jul 2016 19:35:09 +0000"  >&lt;p&gt;This would need to store the full uninitialized LOV EA on the MDS directory as the template for the file layout.  Based on discussion with Gary, this is needed for testing OSS performance.  For &quot;real world&quot; usage, it would probably be a &quot;poor man&apos;s OST pools&quot; in the sense that it would be possible to specify a list of OSTs, and then a stripe count less than the total OST count, and it should be possible to select a subset of OSTs to create files on.&lt;/p&gt;</comment>
                            <comment id="159404" author="adilger" created="Wed, 20 Jul 2016 20:18:04 +0000"  >&lt;p&gt;One issue with using &quot;-o ... -c&quot; to implement &quot;temporary pools&quot; is that there is no place (currently) to store the object allocation state across file creates as there is with a proper pool, so it can&apos;t be smart about round-robin allocation (e.g. 0+1, 2+3, 4+5, 6+7, 1+2, 3+4, ... to track the last OST index used and to avoid having stripe 0 on the same OST repeatedly).&lt;/p&gt;

&lt;p&gt;The MDS would somehow need to dynamically allocate an internal allocation state based on the specified OST list and then keep that in memory for some time to handle allocations with the same group of OSTs.  It is OK if the same OST list is shared by different directories, since the file creation and IO load on the OSTs is also shared.  There is no significant issue if the allocation state is dropped after some idle time (e.g. a couple of minutes), since the load on the OSTs is also transient.&lt;/p&gt;

&lt;p&gt;Ideally this would be implemented as part of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9&quot; title=&quot;Optimize weighted QOS Round-Robin allocator&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9&quot;&gt;LU-9&lt;/a&gt; so that the imbalance of file creates on a subset of OSTs does not cause global imbalance across other OSTs.&lt;/p&gt;</comment>
                            <comment id="159405" author="adilger" created="Wed, 20 Jul 2016 20:19:58 +0000"  >&lt;p&gt;Link to original &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4665&quot; title=&quot;utils: lfs setstripe to specify OSTs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4665&quot;&gt;&lt;del&gt;LU-4665&lt;/del&gt;&lt;/a&gt; ticket that introduced this feature.&lt;/p&gt;</comment>
                            <comment id="213014" author="adilger" created="Tue, 7 Nov 2017 20:03:12 +0000"  >&lt;p&gt;It looks like &lt;a href=&quot;https://review.whamcloud.com/12275&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/12275&lt;/a&gt; implements this to some extent.&lt;/p&gt;</comment>
                            <comment id="395021" author="adilger" created="Thu, 30 Nov 2023 19:48:01 +0000"  >&lt;p&gt;It looks like specifying explicit OSTs is working since at least 2.14:&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;# lfs setstripe -o 2,3,2,3 /mnt/testfs/specific
# touch /mnt/testfs/specific/fff
# lfs getstripe --yaml /mnt/testfs/specific
stripe_count:  4
stripe_size:   1048576
pattern:       raid0,overstriped
stripe_offset: 2

lmm_stripe_count:  4
lmm_stripe_size:   1048576
lmm_pattern:       raid0,overstriped
lmm_layout_gen:    0
lmm_stripe_offset: 2
lmm_objects:
      - l_ost_idx: 2
        l_fid:     0x380000401:0x79:0x0
      - l_ost_idx: 3
        l_fid:     0x3c0000401:0x79:0x0
      - l_ost_idx: 2
        l_fid:     0x380000401:0x7a:0x0
      - l_ost_idx: 3
        l_fid:     0x3c0000401:0x7a:0x0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The one remaining issue is that &quot;&lt;tt&gt;lfs getstripe&lt;/tt&gt;&quot; on the directory does not print the specific layout properly.  It should print the specific OST indices and not just the stripe count.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="23278">LU-4665</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="10082">LU-9</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="28251">LU-6135</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="25084">LU-5170</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|hzyhzr:</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>