<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:32:00 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-3220] Quota doesn&apos;t work right with DNE</title>
                <link>https://jira.whamcloud.com/browse/LU-3220</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Here are the test steps:&lt;br/&gt;
1. setup the system with 2 MDTs and quota enabled.&lt;br/&gt;
2. setup inode quota for user/group quota_usr&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;/usr/bin/lfs setquota -u quota_usr -b 0 -B 10M -i 0 -I 5 /mnt/lustre
/usr/bin/lfs setquota -g quota_usr -b 0 -B 10M -i 0 -I 5 /mnt/lustre
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;3. check user quota shows that MDT0 has limit 5 while MD1 has limit 0&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@client-5 tests]# lfs quota -v -u quota_usr /mnt/lustre
Disk quotas for user quota_usr (uid 60000):
     Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
    /mnt/lustre       4       0   10240       -       1       0       5       -
lustre-MDT0000_UUID
                      4       -       0       -       1       -       5       -
lustre-MDT0001_UUID
                      0       -       0       -       0       -       0       -
lustre-OST0000_UUID
                      0       -       0       -       -       -       -       -
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;4. create 2 dirs &quot;test&quot; and &quot;test2&quot;, &quot;test&quot; is on the default MDT, &quot;test2&quot; is on the second MDT with &quot;lfs mkdir -i 1 ...&quot;&lt;br/&gt;
5. chown to quota_usr for these 2 dirs&lt;br/&gt;
6. I can only touch file under dir &quot;test&quot; while got &quot;Disk quota exceede&quot; in &quot;test2&quot;&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@client-5 tests]# chown quota_usr.quota_usr /mnt/lustre/test
[root@client-5 tests]# chown quota_usr.quota_usr /mnt/lustre/test2/
[root@client-5 tests]# lfs quota -v -u quota_usr /mnt/lustre
Disk quotas for user quota_usr (uid 60000):
     Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
    /mnt/lustre       8       0   10240       -       2       0       5       -
lustre-MDT0000_UUID
                      4       -       0       -       1       -       5       -
lustre-MDT0001_UUID
                      4       -       0       -       1*      -       1       -
lustre-OST0000_UUID
                      0       -       0       -       -       -       -       -
[root@client-5 tests]# ./runas -u 60000 -g 60000 touch /mnt/lustre/test2/a1
running as uid/gid/euid/egid 60000/60000/60000/60000, groups:
 [touch] [/mnt/lustre/test2/a1]
touch: cannot touch `/mnt/lustre/test2/a1&apos;: Disk quota exceeded
[root@client-5 tests]# ./runas -u 60000 -g 60000 touch /mnt/lustre/test/a1
running as uid/gid/euid/egid 60000/60000/60000/60000, groups:
 [touch] [/mnt/lustre/test/a1]
[root@client-5 tests]# 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="18521">LU-3220</key>
            <summary>Quota doesn&apos;t work right with DNE</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="niu">Niu Yawei</assignee>
                                    <reporter username="sarah">Sarah Liu</reporter>
                        <labels>
                            <label>dne</label>
                    </labels>
                <created>Wed, 24 Apr 2013 18:43:30 +0000</created>
                <updated>Wed, 16 Oct 2013 00:33:47 +0000</updated>
                            <resolved>Thu, 11 Jul 2013 05:50:13 +0000</resolved>
                                    <version>Lustre 2.4.0</version>
                                    <fixVersion>Lustre 2.5.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="56968" author="johann" created="Wed, 24 Apr 2013 19:06:30 +0000"  >&lt;p&gt;Niu, any thoughts?&lt;/p&gt;</comment>
                            <comment id="57010" author="niu" created="Thu, 25 Apr 2013 05:39:32 +0000"  >&lt;p&gt;I think this is expected since our minmal iunit size is 1K inodes. The limit in this test is much smaller than 1 iunit size, so they all be ocupied by single MDT (revoke glimpse won&apos;t be triggered in this case, because we&apos;ve reached minimal iunit).&lt;/p&gt;

&lt;p&gt;As long as we keep using 1K minmal iunit, tests should use inode limit in K unit. (see the quota DNE tests in s-q, test_7e &amp;amp; test_12b)&lt;/p&gt;
</comment>
                            <comment id="57065" author="pjones" created="Thu, 25 Apr 2013 17:47:53 +0000"  >&lt;p&gt;Niu&lt;/p&gt;

&lt;p&gt;Is there anything that we can do to improve this test while running under DNE? Should we improve our documentation to make is easier to understand what to expect when using DNE in conjunction with quotas?&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="57090" author="niu" created="Fri, 26 Apr 2013 01:49:55 +0000"  >&lt;p&gt;Peter, this is mentioned in Lustre manual:&lt;/p&gt;

&lt;p&gt;&quot;To reduce quota requests, quota space is initially allocated to QSDs in very large chunks. How much unused quota space can be hold by a target is controlled by the qunit size. When quota space for a given ID is close to exhaustion on the QMT, the qunit size is reduced and QSDs are notified of the new qunit size value via a glimpse callback. Slaves are then responsible for releasing quota space above the new qunit value. The qunit size isn&apos;t shrunk indefinitely and there is a minimal value of 1MB for blocks and 1,000 for inodes. This means that the quota space rebalancing process will stop when this mininum value is reached. As a result, quota exceeded can be returned while many slaves still have 1MB or 1,000 inodes of spare quota space.&quot;&lt;/p&gt;</comment>
                            <comment id="57096" author="johann" created="Fri, 26 Apr 2013 07:28:10 +0000"  >&lt;p&gt;I would advise to add a real-life example with DNE in the manual.&lt;br/&gt;
Besides, i wonder whether we should add a warning when someone sets a limit smaller than &lt;span class=&quot;error&quot;&gt;&amp;#91;bi&amp;#93;&lt;/span&gt;unit.&lt;/p&gt;

&lt;p&gt;Niu, what do you think?&lt;/p&gt;</comment>
                            <comment id="57097" author="niu" created="Fri, 26 Apr 2013 08:35:01 +0000"  >&lt;p&gt;The quota commands used for DNE are exactly same as non-DNE, so I don&apos;t think the example for DNE is any different from the non-DNE.&lt;/p&gt;

&lt;p&gt;Ok, I would add a warning message when setting small limit, and maybe we could extend the help descrption of &apos;lfs setquota&apos; to explain such situation as well.&lt;/p&gt;</comment>
                            <comment id="57180" author="niu" created="Sat, 27 Apr 2013 05:17:37 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/6182&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/6182&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="59316" author="sarah" created="Fri, 24 May 2013 23:08:36 +0000"  >&lt;p&gt;I rerun this test with inode limit set to 1005, still hit the same issue.&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@client-15 tests]# ./runas -u 60000 -g 60000 touch /mnt/lustre/test2/a1008
running as uid/gid/euid/egid 60000/60000/60000/60000, groups:
 [touch] [/mnt/lustre/test2/a1008]
touch: cannot touch `/mnt/lustre/test2/a1008&apos;: Disk quota exceeded
[root@client-15 tests]# ./runas -u 60000 -g 60000 touch /mnt/lustre/test2/a1008
running as uid/gid/euid/egid 60000/60000/60000/60000, groups:
 [touch] [/mnt/lustre/test2/a1008]
touch: cannot touch `/mnt/lustre/test2/a1008&apos;: Disk quota exceeded
[root@client-15 tests]# lfs quota -v -u quota_usr /mnt/lustre
Disk quotas for user quota_usr (uid 60000):
     Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
    /mnt/lustre      52       0   10240       -       2       0    1005       -
lustre-MDT0000_UUID
                     48       -       0       -       1       -    1005       -
lustre-MDT0001_UUID
                      4       -       0       -       1*      -       1       -
lustre-OST0000_UUID
                      0       -       0       -       -       -       -       -
[root@client-15 tests]# ./runas -u 60000 -g 60000 touch /mnt/lustre/test/a1008
running as uid/gid/euid/egid 60000/60000/60000/60000, groups:
 [touch] [/mnt/lustre/test/a1008]
[root@client-15 tests]# 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="59343" author="niu" created="Mon, 27 May 2013 03:42:24 +0000"  >&lt;p&gt;Sarah, sorry, the least inode qunit size is 1K but not 1000, I&apos;ll update the patch and manual. Thanks.&lt;/p&gt;</comment>
                            <comment id="62076" author="niu" created="Thu, 11 Jul 2013 05:50:13 +0000"  >&lt;p&gt;patch landed for 2.5&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|hzvowv:</customfieldvalue>

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