<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:19:06 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-1720] Quota doesn&apos;t work over 4TB on single OST</title>
                <link>https://jira.whamcloud.com/browse/LU-1720</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;We set quota &quot;ug3&quot; to all OSTs and MDT, then an also set 5TB quota limitation to a user. But, if user1 writes files to single OST, it exceeds quota limitation when total file size gets 4TB.&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 quota -v -u user1 /lustre/
Disk quotas for user user1 (uid 1000):
     Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
       /lustre/ 4295057504       0 5368709120       -      13       0       0       -
lustre-MDT0000_UUID
                      4       -    1024       -      13       -       0       -
lustre-OST0000_UUID
                      0       -    1024       -       -       -       -       -
lustre-OST0001_UUID
                4295057500*      - 4294959104       -       -       -       -       -
lustre-OST0002_UUID
                      0       -    1024       -       -       -       -       -
lustre-OST0003_UUID
                      0       -    1024       -       -       -       -       -
..
..
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;# lctl get_param lquota.*.quota_type
lquota.lustre-OST0001.quota_type=ug3
lquota.lustre-OST0004.quota_type=ug3
lquota.lustre-OST0008.quota_type=ug3
lquota.lustre-OST000c.quota_type=ug3
lquota.lustre-OST0011.quota_type=ug3
lquota.lustre-OST0015.quota_type=ug3
lquota.lustre-OST0019.quota_type=ug3
lquota.lustre-OST001d.quota_type=ug3
lquota.lustre-OST0021.quota_type=ug3
lquota.lustre-OST0025.quota_type=ug3
lquota.lustre-OST0028.quota_type=ug3
lquota.lustre-OST002d.quota_type=ug3
lquota.lustre-OST0031.quota_type=ug3
lquota.lustre-OST0035.quota_type=ug3
lquota.lustre-OST0039.quota_type=ug3

# lctl get_param lquota.*.quota_type
lquota.lustre-MDT0000.quota_type=ug3
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>CentOS5.8 Lustre-1.8.8-wc1</environment>
        <key id="15438">LU-1720</key>
            <summary>Quota doesn&apos;t work over 4TB on single OST</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="ys">Yang Sheng</assignee>
                                    <reporter username="ihara">Shuichi Ihara</reporter>
                        <labels>
                    </labels>
                <created>Wed, 8 Aug 2012 02:25:52 +0000</created>
                <updated>Fri, 24 Nov 2017 16:15:53 +0000</updated>
                            <resolved>Thu, 1 Nov 2012 02:46:16 +0000</resolved>
                                    <version>Lustre 1.8.8</version>
                                    <fixVersion>Lustre 2.1.4</fixVersion>
                    <fixVersion>Lustre 1.8.9</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>9</watches>
                                                                            <comments>
                            <comment id="42869" author="niu" created="Wed, 8 Aug 2012 05:53:25 +0000"  >&lt;p&gt;Hi, Ihara&lt;/p&gt;

&lt;p&gt;Could you collect the messages on OSTs? I&apos;m afraid that the quota file for local fs (operational quota file) is not coverted to 64bit yet, just like &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-1584&quot; title=&quot;error set quota fs limit&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-1584&quot;&gt;&lt;del&gt;LU-1584&lt;/del&gt;&lt;/a&gt;?&lt;/p&gt;</comment>
                            <comment id="42870" author="ihara" created="Wed, 8 Aug 2012 07:19:36 +0000"  >&lt;p&gt;Hi Niu, I will send you messages latter (system was shutdown, will bootup soon), but this is completely new test system. The filesystem is formatted with &lt;/p&gt;
{ost,mdt}
&lt;p&gt;.quota_type=ug3.&lt;/p&gt;</comment>
                            <comment id="42878" author="ihara" created="Wed, 8 Aug 2012 11:04:19 +0000"  >&lt;p&gt;Hi Niu,&lt;/p&gt;

&lt;p&gt;tested again, it&apos;s very simple configuraiton.&lt;br/&gt;
1 x OSS, 1 x OST and 1 x Client. user1&apos;s quota limit is 5TB, and write 4.5TB to single OST. Formated with  &lt;/p&gt;
{ost,mdt}
&lt;p&gt;.quota_type=ug3, but it hits again when quota is exceeded by 4TB.&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 quotacheck -ug /lustre/
# lfs setquota -B 5368709120 -u user1 /lustre
# su - user1
user1 writes files 10 x 450GB files to /lustre

dd: writing `/lustre/quota_test/file-10&apos;: Disk quota exceeded
dd: closing output file `/lustre/quota_test/file-10&apos;: Input/output error

$ lfs quota -v -u user1 /lustre/
Disk quotas for user user1 (uid 1000):
     Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
       /lustre/ 4294935256       0 5368709120       -      13       0       0       -
lustre-MDT0000_UUID
                      4       -    1024       -      13       -       0       -
lustre-OST0000_UUID
                4294935252*      - 4294933504       -       -       -       -       -
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;
OSS&apos;s messages when quota is exceeded.

Aug  8 23:55:51 s02 kernel: LustreError: 18960:0:(quota_context.c:685:dqacq_completion()) error set quota fs limit! (rc:-34)
Aug  8 23:55:51 s02 kernel: LustreError: 18960:0:(quota_context.c:685:dqacq_completion()) error set quota fs limit! (rc:-34)
Aug  8 23:55:51 s02 kernel: Lustre: 19756:0:(quota_interface.c:491:quota_chk_acq_common()) still haven&apos;t managed to acquire quota space from the quota master after 10 retries (err=0, rc=0)
Aug  8 23:55:52 s02 kernel: LustreError: 18960:0:(quota_context.c:685:dqacq_completion()) error set quota fs limit! (rc:-34)
Aug  8 23:55:52 s02 kernel: LustreError: 18960:0:(quota_context.c:685:dqacq_completion()) Skipped 2473 previous similar messages
Aug  8 23:55:53 s02 kernel: LustreError: 18960:0:(quota_context.c:685:dqacq_completion()) error set quota fs limit! (rc:-34)
Aug  8 23:55:53 s02 kernel: LustreError: 18960:0:(quota_context.c:685:dqacq_completion()) Skipped 1814 previous similar messages
Aug  8 23:55:55 s02 kernel: LustreError: 18960:0:(quota_context.c:685:dqacq_completion()) error set quota fs limit! (rc:-34)
Aug  8 23:55:55 s02 kernel: LustreError: 18960:0:(quota_context.c:685:dqacq_completion()) Skipped 3868 previous similar messages

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="42904" author="niu" created="Wed, 8 Aug 2012 22:16:26 +0000"  >&lt;p&gt;Hi, Ihara&lt;/p&gt;

&lt;p&gt;Which looks like the same problem reported in the lustre-discuss, and finally, when they format the filesystem with e2fsprogs-1.41.90.wc4, the problem is gone. (they can reproduce the problem with e2fsprogs-1.41.90.wc3). Could you check the e2fsprogs version on server? Thanks.&lt;/p&gt;</comment>
                            <comment id="42905" author="ihara" created="Wed, 8 Aug 2012 22:22:24 +0000"  >&lt;p&gt;Hi Niu,&lt;/p&gt;

&lt;p&gt;e2fsprogs-1.42.3.wc1 is installed and the filesystem is formated with it.&lt;br/&gt;
I did same testing on the master branch, but the problem didn&apos;t happen.&lt;/p&gt;</comment>
                            <comment id="42906" author="niu" created="Wed, 8 Aug 2012 22:50:05 +0000"  >&lt;p&gt;It&apos;s too bad that the error message only report an error code, could you apply this patch (which print more information) and enable D_QUOTA while running tests? Thanks.&lt;/p&gt;</comment>
                            <comment id="42907" author="niu" created="Wed, 8 Aug 2012 22:51:00 +0000"  >&lt;p&gt;print more information when set local limit failed.&lt;/p&gt;</comment>
                            <comment id="42909" author="ihara" created="Wed, 8 Aug 2012 23:46:46 +0000"  >&lt;p&gt;Niu, could you plesae check patch again? it seems to be failing with patch.&lt;/p&gt;

&lt;p&gt;/usr/src/lustre-1.8.8/lustre/quota/quota_context.c: In function &apos;dqacq_completion&apos;:&lt;br/&gt;
/usr/src/lustre-1.8.8/lustre/quota/quota_context.c:688: warning: format &apos;%d&apos; expects type &apos;int&apos;, but argument 13 has type &apos;long unsigned int&apos;&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;6&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;/usr/src/lustre-1.8.8/lustre/quota/quota_context.o&amp;#93;&lt;/span&gt; Error 1&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;5&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;/usr/src/lustre-1.8.8/lustre/quota&amp;#93;&lt;/span&gt; Error 2&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;4&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;/usr/src/lustre-1.8.8/lustre&amp;#93;&lt;/span&gt; Error 2&lt;/p&gt;</comment>
                            <comment id="42910" author="niu" created="Wed, 8 Aug 2012 23:53:15 +0000"  >&lt;p&gt;fix the complile error.&lt;/p&gt;</comment>
                            <comment id="42911" author="niu" created="Wed, 8 Aug 2012 23:56:01 +0000"  >&lt;p&gt;sorry, please use the updated one.&lt;/p&gt;</comment>
                            <comment id="42913" author="ihara" created="Thu, 9 Aug 2012 01:04:37 +0000"  >&lt;p&gt;debug log with enabled D_QUOTA &lt;/p&gt;</comment>
                            <comment id="42914" author="ihara" created="Thu, 9 Aug 2012 01:05:45 +0000"  >&lt;p&gt;syslog on OSS after patches applied.&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;Aug  9 13:57:37 s02 kernel: LustreError: 8891:0:(quota_context.c:691:dqacq_completion()) error set quota fs limit! rc:-34, count:1024, hardlimit:4294967296 isblk:b
Aug  9 13:57:37 s02 kernel: LustreError: 8891:0:(quota_context.c:691:dqacq_completion()) Skipped 115657 previous similar messages
Aug  9 13:57:37 s02 kernel: Lustre: 9294:0:(quota_interface.c:475:quota_chk_acq_common()) still haven&apos;t managed to acquire quota space from the quota master after 10 retries (err=0, rc=0)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="42917" author="niu" created="Thu, 9 Aug 2012 02:01:03 +0000"  >&lt;p&gt;Looks the &apos;hardlimit&apos; and &apos;count&apos; values are sane, I suspect that the local quota file was created as 32bit somehow... Could you just mount the ost device as ldiskfs and check the quota file name on it? The name should be &quot;lquota.user&quot; &amp;amp; &quot;lquota.group&quot; for 32bit, or &quot;lquota_v2.user&quot; &amp;amp; &quot;lquota_v2.group&quot; for 64bit. Thanks.&lt;/p&gt;</comment>
                            <comment id="42920" author="ihara" created="Thu, 9 Aug 2012 02:40:44 +0000"  >&lt;p&gt;Niu,&lt;br/&gt;
Yeah, I thought and had checked them before and lquota_v2.&lt;/p&gt;
{user,group}
&lt;p&gt; existed. That was odd and filed this prolbem on here.&lt;br/&gt;
Here is I just checked. There are no  &quot;lquota.user&quot; &amp;amp; &quot;lquota.group&quot; files, but v2 files are existing, instead.&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;# mount -t ldiskfs /dev/mapper/LUN00 /mnt/lustre/LUN00/
# ls /mnt/lustre/LUN00/
CONFIGS  O  health_check  last_rcvd  lost+found  lquota_v2.group  lquota_v2.user
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="42928" author="ihara" created="Thu, 9 Aug 2012 05:20:48 +0000"  >&lt;p&gt;Tested with 1.8.7, but still hit same probolem.&lt;/p&gt;</comment>
                            <comment id="42952" author="ihara" created="Thu, 9 Aug 2012 13:48:37 +0000"  >&lt;p&gt;I have tested with lustre-2.1.2 on RHEL5, but we hit same quota limitation by 4TB.&lt;/p&gt;</comment>
                            <comment id="42990" author="ihara" created="Fri, 10 Aug 2012 00:25:20 +0000"  >&lt;p&gt;This is reproducer of this problem.&lt;br/&gt;
And here is what I did to make the lustre and tesing.&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;# MDS
# mkfs.lustre --reformat --mgs --mdt --param mdt.quota_type=ug3 /dev/sdb1
# mount -t lustre /dev/sdb1 /mnt/lustre/MDT
# lctl get_param lquota.*.quota_type
lquota.mdd_obd-lustre-MDT0000.quota_type=ug3


# OSS
# mkfs.lustre --reformat --ost --mgsnode=192.168.100.129@o2ib --param ost.quota_type=ug3 /dev/mapper/LUN59
# mount -t lustre /dev/mapper/LUN59 /mnt/lustre/LUN59
# lctl get_param lquota.*.quota_type
lquota.lustre-OST0000.quota_type=ug3


# Client
# mount -t lustre 192.168.100.129@o2ib:/lustre /lustre
# nohup /tmp/reproducer.sh &amp;amp;

# lfs quota -u user1 -v /lustre/
Disk quotas for user user1 (uid 1000):
     Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
       /lustre/ 4295204904       0 5368709120       -     100       0       0       -
lustre-MDT0000_UUID
                      0       -    1024       -     100       -       0       -
lustre-OST0000_UUID
                4295204904*      - 4294966272 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="43000" author="niu" created="Fri, 10 Aug 2012 04:25:28 +0000"  >&lt;p&gt;Thanks for your update, Ihara!&lt;/p&gt;

&lt;p&gt;Finally, I found the reason: the kernel quota-large-limits-rhel5.patch (which makes kernel do_set_dqblk() support 64bits) is mis-updated in ba5dd769f66194a80920cf93d6014c78729efaae (&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-674&quot; title=&quot;Update RHEL5 kernel to 2.6.18-274.3.1.el5  security update&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-674&quot;&gt;&lt;del&gt;LU-674&lt;/del&gt;&lt;/a&gt; kernel update RHEL5.7 &lt;span class=&quot;error&quot;&gt;&amp;#91;2.6.18-274.3.1.el5&amp;#93;&lt;/span&gt;).&lt;/p&gt;

&lt;p&gt;Yangshen, could you take a look on this, and fix the patch? Thanks.&lt;/p&gt;</comment>
                            <comment id="43007" author="ihara" created="Fri, 10 Aug 2012 07:19:07 +0000"  >&lt;p&gt;Niu, thanks for analysis. what do you mean mis-updated?&lt;/p&gt;</comment>
                            <comment id="43009" author="niu" created="Fri, 10 Aug 2012 09:26:27 +0000"  >&lt;p&gt;The patch updated incorrectly when supporting new kernel. Please check: &lt;a href=&quot;http://review.whamcloud.com/#change,3599&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,3599&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="43010" author="ys" created="Fri, 10 Aug 2012 09:44:42 +0000"  >&lt;p&gt;patch for b2_1: &lt;a href=&quot;http://review.whamcloud.com/3600&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/3600&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="43011" author="ys" created="Fri, 10 Aug 2012 09:46:16 +0000"  >&lt;p&gt;patch for b1_8: &lt;a href=&quot;http://review.whamcloud.com/3599&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/3599&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="43476" author="ihara" created="Sun, 19 Aug 2012 19:20:37 +0000"  >&lt;p&gt;I reproduced this problem with lustre-1.8.8 on RHEL5 and confirmed it&apos;s fixed by kernel patch on &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-1720&quot; title=&quot;Quota doesn&amp;#39;t work over 4TB on single OST&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-1720&quot;&gt;&lt;del&gt;LU-1720&lt;/del&gt;&lt;/a&gt;. Also confirmed fixing on lustre-2.1.2 with RHEL5 and the problem doesn&apos;t happen on RHEL6 even without patches.&lt;/p&gt;</comment>
                            <comment id="43688" author="ihara" created="Thu, 23 Aug 2012 10:08:13 +0000"  >&lt;p&gt;Hi, I&apos;ve confirmed the patch &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-1720&quot; title=&quot;Quota doesn&amp;#39;t work over 4TB on single OST&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-1720&quot;&gt;&lt;del&gt;LU-1720&lt;/del&gt;&lt;/a&gt; solves this problem, would you please merge if the review is finished?&lt;/p&gt;</comment>
                            <comment id="44044" author="pjones" created="Fri, 31 Aug 2012 11:23:50 +0000"  >&lt;p&gt;Landed to b1_8. Still needs to land to 2.x branches&lt;/p&gt;</comment>
                            <comment id="47236" author="ys" created="Thu, 1 Nov 2012 02:46:16 +0000"  >&lt;p&gt;Patch landed to all branch. Close bug.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="11766" name="debuglog.txt.gz" size="3960645" author="ihara" created="Thu, 9 Aug 2012 01:04:37 +0000"/>
                            <attachment id="11768" name="reproducer.sh" size="386" author="ihara" created="Fri, 10 Aug 2012 00:25:20 +0000"/>
                            <attachment id="11765" name="setlimit_err_msg.patch" size="866" author="niu" created="Wed, 8 Aug 2012 23:53:15 +0000"/>
                            <attachment id="11764" name="setlimit_err_msg.patch" size="821" author="niu" created="Wed, 8 Aug 2012 22:51:00 +0000"/>
                    </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|hzv3gv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4061</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10021"><![CDATA[2]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>