<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:37:33 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-3861] Quota issues after upgrade from 2.1.4 to 2.4</title>
                <link>https://jira.whamcloud.com/browse/LU-3861</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;filesystem was create with lustre 2.1.4 with quota off. Files were created. The the filesystem was upgraded. &lt;/p&gt;

&lt;p&gt;Did run tunefs.lustre --quota on all osts and mdt. &lt;br/&gt;
and lctl conf_param fsname.quota.ost|mdt=u|g|ug|none&lt;/p&gt;

&lt;p&gt;inode quota doesn&apos;t release when you go over the remove the files. Also how do you run a &quot;quotacheck&quot; to account for all the files created when quota was off&lt;/p&gt;</description>
                <environment></environment>
        <key id="20712">LU-3861</key>
            <summary>Quota issues after upgrade from 2.1.4 to 2.4</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="6">Not a Bug</resolution>
                                        <assignee username="niu">Niu Yawei</assignee>
                                    <reporter username="mhanafi">Mahmoud Hanafi</reporter>
                        <labels>
                    </labels>
                <created>Thu, 29 Aug 2013 22:28:13 +0000</created>
                <updated>Tue, 29 Oct 2013 18:30:42 +0000</updated>
                            <resolved>Tue, 29 Oct 2013 18:30:42 +0000</resolved>
                                    <version>Lustre 2.4.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="65408" author="mhanafi" created="Thu, 29 Aug 2013 23:03:37 +0000"  >&lt;p&gt;ok we figured out why this was. inodes are aquired 1024 at a time. But the other question remains why is not account for the files that where created before the upgrade.&lt;/p&gt;</comment>
                            <comment id="65409" author="pjones" created="Thu, 29 Aug 2013 23:09:49 +0000"  >&lt;p&gt;Niu&lt;/p&gt;

&lt;p&gt;Could you please advise here?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="65416" author="niu" created="Fri, 30 Aug 2013 02:16:00 +0000"  >&lt;blockquote&gt;
&lt;p&gt;ok we figured out why this was. inodes are aquired 1024 at a time. But the other question remains why is not account for the files that where created before the upgrade.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;The &apos;quotacheck&apos; would be run when you enable the quota feature by &apos;tunefs.lustre --quota&apos;, and quota accounting will always be enabled form then on.&lt;/p&gt;

&lt;p&gt;Do you mean the files created before upgrade were not accounted? Could you show me the out of &apos;lfs quota&apos; and the real file count?&lt;/p&gt;</comment>
                            <comment id="65458" author="mhanafi" created="Fri, 30 Aug 2013 17:32:52 +0000"  >&lt;p&gt;yes files created pre-upgrade are not accounted for in the inode count. As you can see I have &amp;gt; 20 files but lfs quota says i have 4. And those are the 4 I created post upgrade.&lt;/p&gt;

&lt;p&gt;pfe21 /nobackupp7 # find /nobackupp7 -user mhanafi -type f | wc -l&lt;br/&gt;
24615&lt;br/&gt;
pfe21 /nobackupp7 # lfs quota -u mhanafi /nobackupp7&lt;br/&gt;
Disk quotas for user mhanafi (uid 11312):&lt;br/&gt;
     Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace&lt;br/&gt;
    /nobackupp7 34640729864       0 346350607480       -       4    4000    5000       -&lt;/p&gt;</comment>
                            <comment id="65488" author="niu" created="Sat, 31 Aug 2013 06:03:47 +0000"  >&lt;p&gt;What&apos;s the e2fsprogs version on MDS? Was there any error messages when running &apos;tune2fs.lustre --quota&apos;? Could you paste the output of &apos;dumpe2fs met_device&apos; and try to collect debug log when start mdt and when running &apos;lfs quota&apos;?&lt;/p&gt;</comment>
                            <comment id="65801" author="niu" created="Thu, 5 Sep 2013 07:02:57 +0000"  >&lt;p&gt;I believe it&apos;s the same problem described in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3784&quot; title=&quot;Quota issue on system upgraded to 2.4.x&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3784&quot;&gt;&lt;del&gt;LU-3784&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="65875" author="mhanafi" created="Thu, 5 Sep 2013 19:34:21 +0000"  >&lt;p&gt;No errors where seen during the tune2fs.lustre --quota.&lt;br/&gt;
Running version of e2fsprogs are&lt;br/&gt;
nbp7-mds1 ~ # rpm -qa |grep e2fs&lt;br/&gt;
e2fsprogs-debuginfo-1.42.6.wc2-7.el6.x86_64&lt;br/&gt;
e2fsprogs-devel-1.42.7.wc1-7.el6.x86_64&lt;br/&gt;
e2fsprogs-1.42.7.wc1-7.el6.x86_64&lt;br/&gt;
e2fsprogs-static-1.42.7.wc1-7.el6.x86_64&lt;br/&gt;
e2fsprogs-libs-1.42.7.wc1-7.el6.x86_64&lt;/p&gt;

&lt;p&gt;attach is debug logs while running quota command&lt;/p&gt;</comment>
                            <comment id="65903" author="niu" created="Fri, 6 Sep 2013 04:09:20 +0000"  >&lt;p&gt;Hi, Mahmoud&lt;/p&gt;

&lt;p&gt;Could install the e2fsprogs from &lt;a href=&quot;http://build.whamcloud.com/job/e2fsprogs-reviews/173/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://build.whamcloud.com/job/e2fsprogs-reviews/173/&lt;/a&gt; (see &lt;a href=&quot;http://review.whamcloud.com/#/c/7556/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/7556/&lt;/a&gt;), and disable/enable quota for all your mdt and ost devices by:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;tune2fs -O ^quota $dev&lt;/li&gt;
	&lt;li&gt;tune2fs -O quota $dev&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Then setup lustre to see if the problem is resloved? Thanks.&lt;/p&gt;</comment>
                            <comment id="65968" author="jaylan" created="Fri, 6 Sep 2013 18:08:53 +0000"  >&lt;p&gt;Which branch should I use to build for lustre-2.4? Thanks!&lt;/p&gt;</comment>
                            <comment id="65990" author="jaylan" created="Fri, 6 Sep 2013 22:40:56 +0000"  >&lt;p&gt;Please ignore my question earlier wrt branch of e2fsprogs git.&lt;/p&gt;

&lt;p&gt;I pulled things down and did a &apos;make rpm&apos;. It failed here...&lt;/p&gt;

&lt;p&gt;154 tests succeeded	1 tests failed&lt;br/&gt;
Tests failed: m_quota &lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;test_post&amp;#93;&lt;/span&gt; Error 1&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt;: Leaving directory `/usr/src/redhat/BUILD/e2fsprogs-1.42.7.wc1/tests&apos;&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;check-recursive&amp;#93;&lt;/span&gt; Error 1&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;: Leaving directory `/usr/src/redhat/BUILD/e2fsprogs-1.42.7.wc1&apos;&lt;br/&gt;
error: Bad exit status from /var/tmp/rpm-tmp.10sTlL (%check)&lt;/p&gt;

&lt;p&gt;What mistake could I have made? Please advise. Thanks!&lt;/p&gt;</comment>
                            <comment id="65993" author="jaylan" created="Fri, 6 Sep 2013 23:24:59 +0000"  >&lt;p&gt;The tests/m_quota/expect.1 file generated during &apos;make rpm&apos;. This test failed.&lt;/p&gt;

&lt;p&gt;The source is at &lt;a href=&quot;https://github.com/jlan/e2fsprogs-nas&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/jlan/e2fsprogs-nas&lt;/a&gt;. Branch nas-2.4.0.&lt;/p&gt;</comment>
                            <comment id="66026" author="niu" created="Mon, 9 Sep 2013 02:22:42 +0000"  >&lt;p&gt;Hi, Jay&lt;/p&gt;

&lt;p&gt;You can download rpm from &lt;a href=&quot;http://build.whamcloud.com/job/e2fsprogs-reviews/173/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://build.whamcloud.com/job/e2fsprogs-reviews/173/&lt;/a&gt; directly. If you want to build by yourself, you&apos;d build patchset2, and if m_quota test failed, it probably because the users/groups on your building system is different with ours, you can just check the m_quota.failed file and correct the m_quota/expect.1.&lt;/p&gt;</comment>
                            <comment id="66107" author="jaylan" created="Mon, 9 Sep 2013 18:42:25 +0000"  >&lt;p&gt;Attached the m_quota.failed file. It does not seem to be the users/groups ID problem. Can you check the file and let me know what the failure was about? Thanks!&lt;/p&gt;</comment>
                            <comment id="66151" author="niu" created="Tue, 10 Sep 2013 02:46:14 +0000"  >&lt;p&gt;Jay, you can just correct your m_quota/expect.1 as the m_quota.failed shows.&lt;/p&gt;</comment>
                            <comment id="66223" author="jaylan" created="Tue, 10 Sep 2013 18:18:25 +0000"  >&lt;p&gt;Hi Niu, yeah, that worked. Thanks!&lt;/p&gt;

&lt;p&gt;Hmm, I would assume the tests/m_quota/expect.1 file specifies expected values out of a good test run. If I change the expected values to get tests passed, I am wondering what&apos;s the point of running the tests?&lt;/p&gt;</comment>
                            <comment id="66295" author="niu" created="Wed, 11 Sep 2013 02:34:45 +0000"  >&lt;p&gt;I&apos;m not quite sure why the free blocks are not constant on different building system when quota feature enabled.&lt;/p&gt;</comment>
                            <comment id="66371" author="mhanafi" created="Wed, 11 Sep 2013 17:53:46 +0000"  >&lt;p&gt;Installing the new e2fsprogs and running tune2fs -O ^quota $device/tune2fs -O quota $device had fixed the issue. lfs quota is now reporting correctly.&lt;/p&gt;

&lt;p&gt;mhanafi@pfe21:~&amp;gt; lfs quota -u mhanafi /nobackupp7&lt;br/&gt;
Disk quotas for user mhanafi (uid 11312):&lt;br/&gt;
     Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace&lt;br/&gt;
    /nobackupp7 34640747452       0 346350607480       -   24751*   4000    5000       -&lt;/p&gt;</comment>
                            <comment id="70144" author="mhanafi" created="Tue, 29 Oct 2013 18:05:24 +0000"  >&lt;p&gt;This case can be closed&lt;/p&gt;</comment>
                            <comment id="70156" author="pjones" created="Tue, 29 Oct 2013 18:30:42 +0000"  >&lt;p&gt;Thanks Mahmoud&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="20484">LU-3784</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="13434" name="debug.quota" size="1433115" author="mhanafi" created="Thu, 5 Sep 2013 19:34:34 +0000"/>
                            <attachment id="13437" name="m_quota-expect.1.LU-3861" size="6281" author="jaylan" created="Fri, 6 Sep 2013 23:24:59 +0000"/>
                            <attachment id="13444" name="m_quota.failed" size="1140" author="jaylan" created="Mon, 9 Sep 2013 18:42:25 +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|hzvzon:</customfieldvalue>

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