<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:13:37 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-7984] Group quota does not reflect actual usage</title>
                <link>https://jira.whamcloud.com/browse/LU-7984</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;ol&gt;
	&lt;li&gt;du -hs --apparent-size .&lt;br/&gt;
15T     .&lt;/li&gt;
	&lt;li&gt;du -hs .&lt;br/&gt;
9,5T    .&lt;/li&gt;
	&lt;li&gt;lfs find . ! -G rcaguess&lt;/li&gt;
	&lt;li&gt;lfs quota -g rcaguess  /rfs18&lt;br/&gt;
Disk quotas for group rcaguess (gid 771):&lt;br/&gt;
     Filesystem  kbytes   quota   limit   grace   files   quota limit   grace&lt;br/&gt;
/rfs18&lt;br/&gt;
                375111456*      0 1048576       -  340878 0       0       -&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;(Filesystem name edited to protect the guilty, but other than that&lt;br/&gt;
 it&apos;s a cut&apos;n&apos;paste.)&lt;/p&gt;

&lt;p&gt;There is such a huge difference between usage measured by the quota&lt;br/&gt;
system and reality that it&apos;s a real operation issue.&lt;/p&gt;

&lt;p&gt;Is this resolvable without downtime? Getting to within 10% of real usage is workable, it doesn&apos;t need to be perfect.&lt;/p&gt;

&lt;p&gt;If not, what is the procedure to do an off-line fsck of the quota in 2.4?&lt;/p&gt;</description>
                <environment>CentOS 6.5, Linux 2.6.32-431.20.3.el6.x86_64&lt;br/&gt;
&lt;br/&gt;
Everything running on ZFS, llnl&amp;#39;s patches to make ZFS usable (13chaos)&lt;br/&gt;
&lt;br/&gt;
lz4 compression enable&lt;br/&gt;
&lt;br/&gt;
Site is Linkoping University</environment>
        <key id="35808">LU-7984</key>
            <summary>Group quota does not reflect actual 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="2">Won&apos;t Fix</resolution>
                                        <assignee username="niu">Niu Yawei</assignee>
                                    <reporter username="zino">Peter Bortas</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 Apr 2016 12:32:29 +0000</created>
                <updated>Fri, 21 Jul 2017 12:44:43 +0000</updated>
                            <resolved>Fri, 21 Jul 2017 12:44:43 +0000</resolved>
                                    <version>Lustre 2.4.2</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="147812" author="zino" created="Tue, 5 Apr 2016 12:34:57 +0000"  >&lt;p&gt;Jira decided to auto-convert the root prompts to a numbered list. Imagine hashes instead of the list numbers...&lt;/p&gt;</comment>
                            <comment id="147969" author="pjones" created="Wed, 6 Apr 2016 11:00:07 +0000"  >&lt;p&gt;Niu&lt;/p&gt;

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

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

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="147981" author="niu" created="Wed, 6 Apr 2016 14:50:14 +0000"  >&lt;p&gt;I don&apos;t think there is any way to do offline fsck for zfs.&lt;/p&gt;

&lt;p&gt;Given the huge difference of quota output and du output, I suspect some OST objects got wrong ownership, and there were three known bugs which could lead to the inconsistent ownership on OST objects:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4345&quot; title=&quot;failed to update accounting ZAP for user&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4345&quot;&gt;&lt;del&gt;LU-4345&lt;/del&gt;&lt;/a&gt;. If you are running 2.4.2-llnl, I believe the fix has already been included. (Could you verify if your Lustre is the latest 2.4.2-llnl?)&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5006&quot; title=&quot;chown/chgrp doesn&amp;#39;t work for files created by lfs setstripe&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5006&quot;&gt;&lt;del&gt;LU-5006&lt;/del&gt;&lt;/a&gt;. If Application creates file by mknod (or by &apos;lfs setstripe&apos;) then changes the file&apos;s ownership, the ownership won&apos;t be set properly on OST objects.&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7205&quot; title=&quot;OSP sync RPC could be out of order&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7205&quot;&gt;&lt;del&gt;LU-7205&lt;/del&gt;&lt;/a&gt;. This is a rare race and very unlikely to happen.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;The way to fix the inconsistent ownership is: find out all the files belong to group &apos;xxx&apos;, then explicitly change files&apos;s group to &apos;xxx&apos; again (by chown or chgrp command from client), it can be done online. (The prerequisite is &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4345&quot; title=&quot;failed to update accounting ZAP for user&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4345&quot;&gt;&lt;del&gt;LU-4345&lt;/del&gt;&lt;/a&gt; is included)&lt;/p&gt;</comment>
                            <comment id="147987" author="zino" created="Wed, 6 Apr 2016 15:22:43 +0000"  >&lt;p&gt;Thanks Niu, that gives me some threads to start pulling in.&lt;/p&gt;

&lt;p&gt;Re: &quot;I don&apos;t think there is any way to do offline fsck for zfs&quot;&lt;/p&gt;

&lt;p&gt;What I meant was a way to verify and update the combined quota counter against the objects in the OST. There is as you say no fsck for zfs outside of online scrub. &lt;/p&gt;


&lt;p&gt;Is there a way to map Lustre file/objid -&amp;gt; zfs object/attribute to verify with zdb that wrong ownership of the object really is the problem?&lt;/p&gt;</comment>
                            <comment id="148085" author="niu" created="Thu, 7 Apr 2016 08:33:10 +0000"  >&lt;blockquote&gt;
&lt;p&gt;What I meant was a way to verify and update the combined quota counter against the objects in the OST.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I don&apos;t think zfs has that kind of tool neither.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Is there a way to map Lustre file/objid -&amp;gt; zfs object/attribute to verify with zdb that wrong ownership of the object really is the problem?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;With zfs, I think you have to mount the OST as zfs then verify the objects&apos; owner, that requires  OST offline.&lt;/p&gt;</comment>
                            <comment id="202452" author="niu" created="Tue, 18 Jul 2017 13:21:20 +0000"  >&lt;p&gt;Any updates on this? Can we close this one? Thanks.&lt;/p&gt;</comment>
                            <comment id="203059" author="pjones" created="Fri, 21 Jul 2017 12:44:43 +0000"  >&lt;p&gt;Seems like there are no further questions on this for the time being&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_10490" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>End date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 7 Apr 2016 12:32:29 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzy6s7:</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>
                                                                                                                        <customfield id="customfield_10493" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>Start date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 5 Apr 2016 12:32:29 +0000</customfieldvalue>

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