Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 667360 - rpc.rquotad can't handle quotas >4TB
rpc.rquotad can't handle quotas >4TB
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: quota (Show other bugs)
5.5
Unspecified Unspecified
high Severity high
: rc
: ---
Assigned To: Petr Pisar
Branislav Blaškovič
https://sourceforge.net/tracker/?func...
: Patch
: 864500 (view as bug list)
Depends On: 831520
Blocks: 743405 798457 807971
  Show dependency treegraph
 
Reported: 2011-01-05 07:38 EST by Sachin Prabhu
Modified: 2013-01-07 23:55 EST (History)
10 users (show)

See Also:
Fixed In Version: quota-3.13-6.el5
Doc Type: Bug Fix
Doc Text:
Cause Querying quota usage or limits for network-mounted file system if quota values are 2^32 or bigger. Consequence Values are not properly transported over RPC and interpreted by client. Mangled values (wrapped to 32 bits) are reported by client then. Fix Proper interpretation of RPC values by client has been back-ported from upstream and proper reporting big values by rpc.rquotad has been implemented. Result Block quota usage and limits values bigger than 2^32-1 are properly reported by client for network file systems.
Story Points: ---
Clone Of:
: 667755 (view as bug list)
Environment:
Last Closed: 2013-01-07 23:55:31 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Use factor signalled in RPC to compute real values (52 bytes, text/plain)
2012-05-10 07:42 EDT, Petr Pisar
no flags Details
Make RPC block factor dynamic (52 bytes, text/plain)
2012-05-10 07:42 EDT, Petr Pisar
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0120 normal SHIPPED_LIVE Low: quota security and bug fix update 2013-01-08 04:10:58 EST

  None (edit)
Description Sachin Prabhu 2011-01-05 07:38:32 EST
A user reports a problem with the quotas reported over NFS for a user who has been allocated 5Tb of quota. The quota for that user is reported as being only 650G instead of the actual 5Tb.

On the client client:

Filesystem blocks quota limit grace files quota limit grace
nfs:/export/work 696848372* 200000000 0 179days 73350427 0 0

On the server:

Disk quotas for user user1 (uid 123):
Filesystem blocks quota limit grace files quota limit grace
/dev/sdc 4991815668* 200000000 0 179days 73350427 0 0 

This problem is similar to the problem reported on the centos bug tracker
http://bugs.centos.org/bug_view_advanced_page.php?bug_id=4071
which also contains a patch for this issue.
Comment 1 Petr Pisar 2011-01-06 08:26:18 EST
The patch does not fix it. It just divides limits by 2^20 on transmission from rpc.rquotad making mangled values on client site. It would break compatibility between patched and unpatched servers and clients.

In addition, server needs to use VFSV1 quota file format to allow 64b limits on the ext file system. This will be supported by quota and kernel since RHEL-6.1 probably. Supported VFSV0 quota format can handle 32b values only. (See bug #609795 for more details.)

I agree there is a bug in RPC (as reported problem presents even in upstream development version), however I cannot see how user could set >2^32 limits on server. (I assume XFS is not supported by RHEL-5.)

If I understand correctly, administrator set 200000000 KB soft limit, user exceeded it and quota on client shows bad count of used blocks now. However the limit is forced by server correctly. So the only problem is used blocks are not reported correctly on the client.
Comment 3 RHEL Product and Program Management 2011-01-11 15:11:41 EST
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.
Comment 4 RHEL Product and Program Management 2011-01-11 18:24:59 EST
This request was erroneously denied for the current release of
Red Hat Enterprise Linux.  The error has been fixed and this
request has been re-proposed for the current release.
Comment 9 RHEL Product and Program Management 2011-09-22 20:09:28 EDT
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.
Comment 10 RHEL Product and Program Management 2012-04-02 06:29:00 EDT
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.
Comment 14 Petr Pisar 2012-05-10 07:42:00 EDT
Created attachment 583519 [details]
Use factor signalled in RPC to compute real values

RHEL-6 patch applies cleanly.
Comment 15 Petr Pisar 2012-05-10 07:42:57 EDT
Created attachment 583520 [details]
Make RPC block factor dynamic

RHEL-6 patch applies cleanly.
Comment 17 Petr Pisar 2012-05-10 08:06:03 EDT
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause
    Querying quota usage or limits for network-mounted file
    system if quota values are 2^32 or bigger.
Consequence
    Values are not properly transported over RPC and
    interpreted by client. Mangled values (wrapped to 32
    bits) are reported by client then.
Fix
    Proper interpretation of RPC values by client has been
    back-ported from upstream and proper reporting big
    values by rpc.rquotad has been implemented.
Result
    Block quota usage and limits values bigger than 2^32-1
    are properly reported by client for network file
    systems.
Comment 20 Petr Pisar 2012-10-10 02:39:08 EDT
*** Bug 864500 has been marked as a duplicate of this bug. ***
Comment 22 errata-xmlrpc 2013-01-07 23:55:31 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2013-0120.html

Note You need to log in before you can comment on or make changes to this bug.