Bug 801357 - quota: previous limit set is only followed
quota: previous limit set is only followed
Status: CLOSED NOTABUG
Product: GlusterFS
Classification: Community
Component: quota (Show other bugs)
pre-release
x86_64 Linux
unspecified Severity high
: ---
: ---
Assigned To: Raghavendra G
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-08 06:04 EST by Saurabh
Modified: 2016-01-19 01:09 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-03-08 06:18:51 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)

  None (edit)
Description Saurabh 2012-03-08 06:04:52 EST
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 06:18:51 EST
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.