<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:37:50 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-3893] lfs getstripe in nested directories does not indicate pools exist</title>
                <link>https://jira.whamcloud.com/browse/LU-3893</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When assigning a directory an OST pool, nested (sub) directories fail to indicate that they have a pool assigned to them when queried with lfs getstripe&lt;/p&gt;


&lt;p&gt;All looks good so far..&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;[root@coolermaster lustre]# lfs getstripe test
test
stripe_count:   -1 stripe_size:    1048576 stripe_offset:  -1 pool:           test 

[root@coolermaster lustre]# cd test
[root@coolermaster test]# touch y
[root@coolermaster test]# lfs getstripe y
y
lmm_stripe_count:   1
lmm_stripe_size:    1048576
lmm_layout_gen:     0
lmm_stripe_offset:  0
lmm_pool:           test
        obdidx           objid           objid           group
             0               4            0x4                0

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;Um.. where did pool info go???&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;[root@coolermaster test]# mkdir x
[root@coolermaster test]# lfs getstripe x
x
stripe_count:   -1 stripe_size:    1048576 stripe_offset:  -1 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Creating a file, indicates that the pool is infact inhieritied&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;[root@coolermaster test]# cd x
[root@coolermaster x]# touch y
[root@coolermaster x]# lfs getstripe y
y
lmm_stripe_count:   1
lmm_stripe_size:    1048576
lmm_layout_gen:     0
lmm_stripe_offset:  0
lmm_pool:           test
        obdidx           objid           objid           group
             0               5            0x5                0

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;There also seems to be another bug here, lfs getstripe format changes depending on output context.&lt;/p&gt;</description>
                <environment></environment>
        <key id="20810">LU-3893</key>
            <summary>lfs getstripe in nested directories does not indicate pools exist</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="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="cfaber#1">Colin Faber [X]</reporter>
                        <labels>
                    </labels>
                <created>Fri, 6 Sep 2013 05:49:37 +0000</created>
                <updated>Thu, 4 Sep 2014 15:03:07 +0000</updated>
                                                                                <due></due>
                            <votes>1</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="65976" author="cfaber" created="Fri, 6 Sep 2013 20:17:23 +0000"  >&lt;p&gt;Maybe something else is going on here...&lt;/p&gt;

&lt;p&gt;Ah so...&lt;/p&gt;

&lt;p&gt;This might be, because the directory it self is empty in this test.  It seems inherited pools are only visible if the directory contains some other file. This makes sense.&lt;/p&gt;

&lt;p&gt;I&apos;m not sure if this would be a bug with lfs getstripe or not, possibly lfs getstripe should look at the obd index allocation, if none, pull the pool data from the parent directory.&lt;/p&gt;

&lt;p&gt;-cf&lt;/p&gt;</comment>
                            <comment id="93189" author="scott.dolecki@gmail.com" created="Thu, 4 Sep 2014 14:17:27 +0000"  >&lt;p&gt;Files created in the nested directories do not get assigned to the proper pool.  Initially the files created within the nested directories are assigned to the correct pool.  Somewhere around 20k files the new files being created no longer stay contained with the correct pool.&lt;/p&gt;

&lt;p&gt;Versions : &lt;/p&gt;
{2.5.1, 2.6.0}

&lt;p&gt;Test setup : mdt, ost0, ost1 all located on a single machine.  The same behavior has been observed on a larger system with multiple mdts and osts located on separated machines.&lt;/p&gt;

&lt;p&gt;Test steps :&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;mkdir /mnt/lustre/ost0
lfs setstripe --pool lustre.ost0 /mnt/lustre/ost0
for x in {0..100}
do
  for y in {0..100}
  do
    mkdir -p /mnt/lustre/ost0/${x}/${y}
    for z in {0..100}
    do
      dd if=/dev/zero of=/mnt/lustre/ost0/${x}/${y}/${z}.img bs=1M count=1
    done
  done
done
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="93192" author="scott.dolecki@gmail.com" created="Thu, 4 Sep 2014 15:03:07 +0000"  >&lt;p&gt;I will gladly look into this problem if someone can direct me to the source code that might be responsible for the pool assignment when mkdir is called.  I am not new to lustre but am new to the lustre source code. &lt;/p&gt;

&lt;p&gt;Thank you&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|hzw0i7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>10162</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>