Bug 801357 - quota: previous limit set is only followed
Summary: quota: previous limit set is only followed
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: GlusterFS
Classification: Community
Component: quota
Version: pre-release
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Raghavendra G
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-08 11:04 UTC by Saurabh
Modified: 2016-01-19 06:09 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-08 11:18:51 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Saurabh 2012-03-08 11:04:52 UTC
Description of problem:

I have put up some limit for quota and created some files, after changing the limit to a higher value still the data creation fails with "Disk quota exceeded" 

presently seen only with nfs.



Version-Release number of selected component (if applicable):
3.3.0qa26

How reproducible:
always

Steps to Reproduce:
1. create a distribute-replicate volume 
2. set the limit for quota to 1MB
3. create files on the nfs mount upto the limit crosses.
4. now change the limit to a higher value lets say, 250GB or 1GB
5. now try to create the files over nfs mount
  
Actual results:
the new addition of data is unsuccessful.


Expected results:
addition of data should be successful


Additional info:


logs,


	path		  limit_set	     size
----------------------------------------------------------------------------------
/                           1MB                1.0MB


=========================================================================

from server,


[root@RHEL6 ~]# gluster volume quota dist-rep list
	path		  limit_set	     size
----------------------------------------------------------------------------------
/                         250GB                1.0MB
[root@RHEL6 ~]# 
[root@RHEL6 ~]# 
[root@RHEL6 ~]# gluster volume quota dist-rep limit-usage / 1GB
limit set on /
[root@RHEL6 ~]# gluster volume quota dist-rep list
	path		  limit_set	     size
----------------------------------------------------------------------------------
/                           1GB                1.0MB
=============================================================================

from client,

[root@RHSSA1 quota_nfs.1331201049]# rm -rf *
[root@RHSSA1 quota_nfs.1331201049]# dd if=/dev/zero of=f.1 bs=1024 count=1024
1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB) copied, 0.248589 s, 4.2 MB/s
[root@RHSSA1 quota_nfs.1331201049]# 
[root@RHSSA1 quota_nfs.1331201049]# 
[root@RHSSA1 quota_nfs.1331201049]# dd if=/dev/zero of=f.2 bs=1024 count=1024
dd: opening `f.2': Disk quota exceeded
[root@RHSSA1 quota_nfs.1331201049]# ls -l
total 1284
-rw-r--r--. 1 root root 1048576 Mar  8 10:50 f.1
[root@RHSSA1 quota_nfs.1331201049]# pwd
/mnt/quota_nfs.1331201049
[root@RHSSA1 quota_nfs.1331201049]# ls
f.1
[root@RHSSA1 quota_nfs.1331201049]# ls -l 
total 1284
-rw-r--r--. 1 root root 1048576 Mar  8 10:50 f.1
[root@RHSSA1 quota_nfs.1331201049]# ls -l
total 1284
-rw-r--r--. 1 root root 1048576 Mar  8 10:50 f.1
[root@RHSSA1 quota_nfs.1331201049]# stat f.1
  File: `f.1'
  Size: 1048576   	Blocks: 2568       IO Block: 65536  regular file
Device: 18h/24d	Inode: 3998269856365352350  Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2012-03-08 10:50:09.355081894 +0000
Modify: 2012-03-08 10:50:09.602108522 +0000
Change: 2012-03-08 10:50:09.603569429 +0000
[root@RHSSA1 quota_nfs.1331201049]# ls -l
total 1284
-rw-r--r--. 1 root root 1048576 Mar  8 10:50 f.1
[root@RHSSA1 quota_nfs.1331201049]# 
[root@RHSSA1 quota_nfs.1331201049]# dd if=/dev/zero of=f.2 bs=1024 count=1024
dd: opening `f.2': Disk quota exceeded
[root@RHSSA1 quota_nfs.1331201049]# ls -l
total 1284
-rw-r--r--. 1 root root 1048576 Mar  8 10:50 f.1
[root@RHSSA1 quota_nfs.1331201049]# dd if=/dev/zero of=f.2 bs=1024 count=1024
dd: opening `f.2': Disk quota exceeded
[root@RHSSA1 quota_nfs.1331201049]#  
[root@RHSSA1 quota_nfs.1331201049]#

Comment 1 Saurabh 2012-03-08 11:18:51 UTC
closing this bug as some wrong parameters were provided


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