Bug 1227724 - Quota: Used space of the volume is wrongly calculated
Summary: Quota: Used space of the volume is wrongly calculated
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: quota
Version: rhgs-3.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: RHGS 3.1.1
Assignee: Vijaikumar Mallikarjuna
QA Contact: RajeshReddy
URL:
Whiteboard:
Depends On:
Blocks: 1251815
TreeView+ depends on / blocked
 
Reported: 2015-06-03 11:45 UTC by RajeshReddy
Modified: 2016-09-17 12:43 UTC (History)
11 users (show)

Fixed In Version: glusterfs-3.7.1-12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-05 07:10:06 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1845 0 normal SHIPPED_LIVE Moderate: Red Hat Gluster Storage 3.1 update 2015-10-05 11:06:22 UTC

Description RajeshReddy 2015-06-03 11:45:16 UTC
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 05:14:27 UTC
Hi Rajesh,

any rename/mv/rmdir operation performed?

Comment 3 RajeshReddy 2015-06-17 05:22:57 UTC
No  rename/mv/rmdir operations performed on that volume, just created few files on it

Comment 5 Vijaikumar Mallikarjuna 2015-08-06 09:55:08 UTC
Not able to re-create with glusterfs-3.7.1-10, so moving to ON_QA for verification

Comment 8 RajeshReddy 2015-08-27 05:06:40 UTC
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 07:10:06 UTC
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.