Bug 1177592

Summary: quota: rename of "dir" fails in case of quota space availability is around 1GB
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Vijaikumar Mallikarjuna <vmallika>
Component: quotaAssignee: Vijaikumar Mallikarjuna <vmallika>
Status: CLOSED ERRATA QA Contact: Anil Shah <ashah>
Severity: high Docs Contact:
Priority: high    
Version: 2.1CC: bmohanra, byarlaga, mselvaga, mzywusko, rgowdapp, rhs-bugs, smohan, storage-qa-internal, surs, vmallika
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.1.2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.7.5-0.3 Doc Type: Bug Fix
Doc Text:
Previously, the rename operation failed because the delta was taken into account on both src and dst. With this fix, we check the limit on the common ancestor of both the src and dst and the issue is resolved.
Story Points: ---
Clone Of: 1139104 Environment:
Last Closed: 2016-03-01 05:22:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1139104    
Bug Blocks: 1029866, 1153964, 1183944, 1260783    

Comment 1 Vijaikumar Mallikarjuna 2014-12-29 09:43:14 UTC
Patch submitted: https://code.engineering.redhat.com/gerrit/39200

Comment 4 Saurabh 2015-03-03 07:00:07 UTC
 gluster  volume quota vol0 list
                  Path                   Hard-limit Soft-limit   Used  Available  Soft-limit exceeded? Hard-limit exceeded?
---------------------------------------------------------------------------------------------------------------------------
/                                        100.0GB       80%      47.9GB  52.1GB              No                   No
/dir1                                     18.0GB       80%      17.0GB   1.0GB             Yes                   No
/dir2                                     22.9GB       80%      22.9GB  0Bytes             Yes                  Yes


# mv dirn1/ dirn1-rename
# ls -ld dirn1-rename/
drwxr-xr-x. 2 root root 57 Mar  3 05:44 dirn1-rename/
# ls -l dirn1-rename/5GBfile-rename 
-rw-r--r--. 1 root root 5368709120 Mar  3 05:22 dirn1-rename/5GBfile-rename


Hence moving to Verified

Comment 8 Vijaikumar Mallikarjuna 2015-10-15 10:02:46 UTC
This issue has been fixed in 3.0. Please check bug#1139104

Comment 9 Anil Shah 2015-11-12 10:43:11 UTC
Bug verified on build glusterfs-3.7.5-6.el7rhgs

Comment 10 Bhavana 2016-02-23 10:20:54 UTC
Hi Mani,

The doc text is edited. Do signoff on the same if it looks OK.

Comment 12 errata-xmlrpc 2016-03-01 05:22:57 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/RHBA-2016-0193.html