Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1227724 - Quota: Used space of the volume is wrongly calculated
Quota: Used space of the volume is wrongly calculated
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: quota (Show other bugs)
3.1
Unspecified Unspecified
high Severity high
: ---
: RHGS 3.1.1
Assigned To: Vijaikumar Mallikarjuna
RajeshReddy
: ZStream
Depends On:
Blocks: 1251815
  Show dependency treegraph
 
Reported: 2015-06-03 07:45 EDT by RajeshReddy
Modified: 2016-09-17 08:43 EDT (History)
11 users (show)

See Also:
Fixed In Version: glusterfs-3.7.1-12
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-10-05 03:10:06 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1845 normal SHIPPED_LIVE Moderate: Red Hat Gluster Storage 3.1 update 2015-10-05 07:06:22 EDT

  None (edit)
Description RajeshReddy 2015-06-03 07:45:16 EDT
Description of problem:
==========================
quota: Used space of the volume is wrongly calculated 


Version-Release number of selected component (if applicable):
===================
quota: Used space of the volume is wrongly calculated 


How reproducible:


Steps to Reproduce:
===================
1.Create 1X4 replica volume and enable quota 
2.Set quota usage-limit as 10GB
3.Mount the volume on client using fuse and create 360 MB data on the mount 
4.Using quota list check the used space and it is showing as 1.1 GB used 

Note: Used space is calcuated as 4X (say for each 1MB data on mount used space is showing as 4MB)

Actual results:


Expected results:
===============
Used space should show correctly


Additional info:
===================
10.70.33.235:/testquota on /mnt/testquota type fuse.glusterfs (rw,default_permissions,allow_other,max_read=131072)

[root@scarface data]# du -h /mnt/testquota/
512	/mnt/testquota/.trashcan/internal_op
1.0K	/mnt/testquota/.trashcan
360M	/mnt/testquota/data
360M	/mnt/testquota/

[root@rhs-client37 data]# gluster vol quota testquota  list
                  Path                   Hard-limit Soft-limit   Used  Available  Soft-limit exceeded? Hard-limit exceeded?
---------------------------------------------------------------------------------------------------------------------------
/                                         10.0GB       80%       1.1GB   8.9GB              No                   No
Comment 2 Vijaikumar Mallikarjuna 2015-06-17 01:14:27 EDT
Hi Rajesh,

any rename/mv/rmdir operation performed?
Comment 3 RajeshReddy 2015-06-17 01:22:57 EDT
No  rename/mv/rmdir operations performed on that volume, just created few files on it
Comment 5 Vijaikumar Mallikarjuna 2015-08-06 05:55:08 EDT
Not able to re-create with glusterfs-3.7.1-10, so moving to ON_QA for verification
Comment 8 RajeshReddy 2015-08-27 01:06:40 EDT
Tested with build glusterfs-3.7.1-12 and used space information is showing properly so closing the bug
Comment 10 errata-xmlrpc 2015-10-05 03:10:06 EDT
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.

https://rhn.redhat.com/errata/RHSA-2015-1845.html

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