<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:28:26 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-2815] quota not correct</title>
                <link>https://jira.whamcloud.com/browse/LU-2815</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;lfs quota show user over his inode qouta but his not see attached output of lfs quota.&lt;/p&gt;
</description>
                <environment></environment>
        <key id="17581">LU-2815</key>
            <summary>quota not correct</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="6">Not a Bug</resolution>
                                        <assignee username="niu">Niu Yawei</assignee>
                                    <reporter username="mhanafi">Mahmoud Hanafi</reporter>
                        <labels>
                    </labels>
                <created>Thu, 14 Feb 2013 14:53:35 +0000</created>
                <updated>Tue, 29 Oct 2013 18:31:54 +0000</updated>
                            <resolved>Tue, 29 Oct 2013 18:31:54 +0000</resolved>
                                    <version>Lustre 2.1.3</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="52411" author="johann" created="Thu, 14 Feb 2013 18:00:39 +0000"  >&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;Disk quotas for user efares (uid 12137):
Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
/nobackupp2 56990092684* 50000000000 75000000000 1w4d18h25m10s   98038* 100000  200000 1w6d23h49m47s
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Although the inode usage is below the soft limit, the MDT still owns 102400 inodes from the master as shown below:&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;nbp2-MDT0000_UUID
                 287960       -  393216       -   98038       -  102400       -
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Therefore the quota master started the grace time. The issue is that the quota allocation algorithm only relies on the hard limit and does not take into account the soft limit. The new quota implementation in 2.4 should address this problem.&lt;br/&gt;
Meanwhile, you can decrease iunit/itune:&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;$ cat /proc/fs/lustre/mds/lustre-MDT0000/quota_iunit_sz 
5120
$ cat /proc/fs/lustre/mds/lustre-MDT0000/quota_itune_sz 
2560
$ echo 640 &amp;gt; /proc/fs/lustre/mds/lustre-MDT0000/quota_itune_sz
$ echo 1280 &amp;gt; /proc/fs/lustre/mds/lustre-MDT0000/quota_iunit_sz
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="52412" author="pjones" created="Thu, 14 Feb 2013 18:05:41 +0000"  >&lt;p&gt;Assigning to Niu for any follow-on questions&lt;/p&gt;</comment>
                            <comment id="52428" author="johann" created="Fri, 15 Feb 2013 02:40:30 +0000"  >&lt;p&gt;When removing a file, the inode count should drop (provided that the file isn&apos;t opened somewhere else) from 113869 to 113868.&lt;br/&gt;
As for the quota allocation, the MDS won&apos;t release any quota space until inode_usage &amp;lt; quota_owned_by_mds - itune.&lt;/p&gt;</comment>
                            <comment id="52459" author="mhanafi" created="Fri, 15 Feb 2013 13:35:41 +0000"  >&lt;p&gt;if the file is open then you shouldn&apos;t be able to delete it. The user was able to delete the file. This &quot;inode_usage &amp;lt; quota_owned_by_mds - itune&quot; is used for inode quota or block quota. We are having a lot of reports such issue with quotas.&lt;/p&gt;

&lt;p&gt;We need a better explanation of how this can occur and why Lustre quota are getting out of sync with real usage.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Mahmoud &lt;/p&gt;</comment>
                            <comment id="52474" author="johann" created="Fri, 15 Feb 2013 15:06:26 +0000"  >&lt;blockquote&gt;
&lt;p&gt;if the file is open then you shouldn&apos;t be able to delete it.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Not at all. You can definitely delete an opened file. The file is unlinked from the namespace (it is actually moved to a special directory called PENDING on the MDT) and then finally deleted once the last opener closes the file. Please see the man page of unlink(2) for more information.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;This &quot;inode_usage &amp;lt; quota_owned_by_mds - itune&quot; is used for inode quota or block quota.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I deliberately used the word &quot;inode&quot; above to tell that this logic applies to inode quota management. The same logic is used for blocks on the OST.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;We are having a lot of reports such issue with quotas.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Have you decreased iunit and itune as suggested above?&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;We need a better explanation of how this can occur and why Lustre quota are getting out of sync with real usage.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Could you please try to create a file with this user, run lfs quota -v, delete the file and run lfs quota -v again?&lt;/p&gt;</comment>
                            <comment id="53222" author="mhanafi" created="Fri, 1 Mar 2013 14:42:20 +0000"  >&lt;p&gt;Here is another example of quota issue. du and lfs quota don&apos;t match&lt;/p&gt;

&lt;p&gt;nbp6-mds /proc/fs/lustre/lquota/mdd_obd-nbp6-MDT0000 # lfs quota  -q -u dposselt /nobackupp6&lt;br/&gt;
    /nobackupp6 6493023000  7000000000 10000000000       -  164963  200000  500000       -&lt;/p&gt;

&lt;p&gt;pfe1 /nobackupp6/dposselt # du  --apparent-size -sk&lt;br/&gt;
5565676998      .&lt;/p&gt;
</comment>
                            <comment id="53409" author="niu" created="Tue, 5 Mar 2013 23:39:50 +0000"  >&lt;p&gt;Mahmoud, &quot;du --apparent-size&quot; is usually smaller than actual disk usage, because apparent-size doesn&apos;t count the full block size at the end of file, but disk usage does. Quota usage is actual disk usage (maybe not exactly equal to the output of du), could you check the output of &quot;du -sk&quot;, I think it should be closer to the output of &apos;lfs quota&apos;?&lt;/p&gt;</comment>
                            <comment id="70146" author="mhanafi" created="Tue, 29 Oct 2013 18:06:16 +0000"  >&lt;p&gt;This can be closed&lt;/p&gt;</comment>
                            <comment id="70157" author="pjones" created="Tue, 29 Oct 2013 18:31:54 +0000"  >&lt;p&gt;Thanks Mahmoud&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="12254" name="efares.quotaout" size="12566" author="mhanafi" created="Thu, 14 Feb 2013 14:53:35 +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|hzvj5z:</customfieldvalue>

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