<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:16:02 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-15167] fallocate does not increase quota usage</title>
                <link>https://jira.whamcloud.com/browse/LU-15167</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Using &quot;&lt;tt&gt;fallocate -l &amp;lt;size&amp;gt; &amp;lt;file&amp;gt;&lt;/tt&gt;&quot; to allocate space to &lt;tt&gt;&amp;lt;file&amp;gt;&lt;/tt&gt; does not increase the quota usage for the affected user/group/project:&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 -u 1000 /mnt/testfs
Disk quotas for usr 1000 (uid 1000):
     Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
    /mnt/testfs  102408       0       0       -       3       0       0       -
# lfs quota -g 1000 /mnt/testfs
Disk quotas for grp 1000 (gid 1000):
     Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
    /mnt/testfs  102408       0       0       -       3       0       0       -
# lfs quota -p 1000 /mnt/testfs
Disk quotas for prj 1000 (pid 1000):
     Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
    /mnt/testfs  102408       0  204800       -       3       0   10000       -

# fallocate -l 50M /mnt/testfs/projdir/50M
# lfs quota -u 1000 /mnt/testfs
Disk quotas for usr 1000 (uid 1000):
     Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
    /mnt/testfs  102408       0       0       -       4       0       0       -
# lfs quota -g 1000 /mnt/testfs
Disk quotas for grp 1000 (gid 1000):
     Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
    /mnt/testfs  102408       0       0       -       4       0       0       -
# lfs quota -p 1000 /mnt/testfs
Disk quotas for prj 1000 (pid 1000):
     Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
    /mnt/testfs  102408       0  204800       -       4       0   10000       -
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Unmounting and remounting the whole filesystem does not help, I needed to run &quot;&lt;tt&gt;e2fsck -fy&lt;/tt&gt;&quot; on the OSTs in order to update the quota file.&lt;/p&gt;</description>
                <environment></environment>
        <key id="66841">LU-15167</key>
            <summary>fallocate does not increase quota usage</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="arshad512">Arshad Hussain</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                    </labels>
                <created>Wed, 27 Oct 2021 02:34:30 +0000</created>
                <updated>Fri, 24 Jun 2022 00:03:49 +0000</updated>
                            <resolved>Mon, 13 Dec 2021 15:13:24 +0000</resolved>
                                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="316646" author="adilger" created="Wed, 27 Oct 2021 02:37:31 +0000"  >&lt;p&gt;This is probably ten times as important to fix for ZFS as it is for ldiskfs, because there isn&apos;t really a &quot;quota repair&quot; tool for zfs like e2fsck for ldiskfs.&lt;/p&gt;</comment>
                            <comment id="316671" author="arshad512" created="Wed, 27 Oct 2021 08:16:09 +0000"  >&lt;p&gt;Andreas, thanks for pointing out. I could recreate it in my setup. I am looking into this.&lt;/p&gt;

&lt;p&gt;&amp;gt;This is probably ten times as important to fix for ZFS as it is for ldiskfs, because there isn&apos;t really a &quot;quota repair&quot; tool for zfs like e2fsck for ldiskfs.&lt;/p&gt;

&lt;p&gt;Understood. Will handle this in the ZFS implementation also.&lt;/p&gt;

&lt;p&gt;Fail Case:&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;$ fallocate -l 1M /mnt/lustre/t1
$ lfs quota -u arshad /mnt/lustre
Disk quotas for usr arshad (uid 1000):
Filesystem kbytes quota limit grace files quota limit grace
/mnt/lustre 0 25600 25600 - 0 0 0 -&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Pass Case:&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;$ dd if=/dev/zero of=/mnt/lustre/t7 bs=2M count=1
$ lfs quota -u arshad /mnt/lustre
Disk quotas for usr arshad (uid 1000):
Filesystem kbytes quota limit grace files quota limit grace
/mnt/lustre 2048 25600 25600 - 2 0 0 -
uid 1000 is using default file quota setting&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="316673" author="arshad512" created="Wed, 27 Oct 2021 08:36:06 +0000"  >&lt;p&gt;&amp;gt;... I needed to run &quot;&lt;tt&gt;e2fsck -fy&lt;/tt&gt;&quot; on the OSTs in order to update the quota file.&lt;/p&gt;

&lt;p&gt;I could not get this to work on my system. I thought I let you know. Maybe I am doing something wrong.&lt;/p&gt;

&lt;p&gt;&#160;&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;$ umount /mnt/lustre
$ umount /mnt/lustre-mds1
$ umount /mnt/lustre-ost1

$ umount /mnt/lustre-ost2
$ umount /mnt/lustre-ost3
$ e2fsck -fy /tmp/lustre-ost1

$ e2fsck -fy /tmp/lustre-ost2
$ e2fsck -fy /tmp/lustre-ost3
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;After remounting... Still no update.&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 -u arshad /mnt/lustre
Disk quotas for usr arshad (uid 1000):
Filesystem kbytes quota limit grace files quota limit grace
/mnt/lustre 0 25600 25600 - 0 0 0 -

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Sample e2fsck run...Done on all osts&lt;/p&gt;

&lt;p&gt;&#160;&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;$ e2fsck -fy /tmp/lustre-ost1
e2fsck 1.45.6.wc5 (09-Feb-2021)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
[QUOTA WARNING] Usage inconsistent for ID 0:actual (2301952, 258) != expected (20480, 2)
Update quota info for quota type 2? yes


lustre-OST0000: ***** FILE SYSTEM WAS MODIFIED *****
lustre-OST0000: 268/100000 files (0.4% non-contiguous), 20245/100000 blocks
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;




&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="317606" author="gerrit" created="Sun, 7 Nov 2021 14:50:27 +0000"  >&lt;p&gt;&quot;Arshad Hussain &amp;lt;arshad.hussain@aeoncomputing.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/45475&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45475&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15167&quot; title=&quot;fallocate does not increase quota usage&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15167&quot;&gt;&lt;del&gt;LU-15167&lt;/del&gt;&lt;/a&gt; quota: fallocate does not increase quota usage&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 50ec6d9d53748a3ecb8eb566a84dd200426f0cc3&lt;/p&gt;</comment>
                            <comment id="320707" author="gerrit" created="Mon, 13 Dec 2021 03:52:20 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/45475/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45475/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15167&quot; title=&quot;fallocate does not increase quota usage&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15167&quot;&gt;&lt;del&gt;LU-15167&lt;/del&gt;&lt;/a&gt; quota: fallocate send UID/GID for quota&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 789038c97ae1072874dcd6afcc9cd78e9c885368&lt;/p&gt;</comment>
                            <comment id="320752" author="pjones" created="Mon, 13 Dec 2021 15:13:25 +0000"  >&lt;p&gt;Landed for 2.15&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10324">
                    <name>Cloners</name>
                                                                <inwardlinks description="is cloned by">
                                        <issuelink>
            <issuekey id="68487">LU-15519</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="69738">LU-15748</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="61793">LU-14157</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="19874">LU-3606</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </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|i028f3:</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>