[Gluster-users] Issue with Gluster Quota

Brian Smith brs at usf.edu
Wed Jul 6 15:07:28 UTC 2011


Here's the output of those commands:

[root at gluster1 ~]# getfattr -m . -d -e hex /glusterfs/home/brs
getfattr: Removing leading '/' from absolute path names
# file: glusterfs/home/brs
security.selinux=0x726f6f743a6f626a6563745f723a66696c655f743a733000
trusted.gfid=0x1bbcb9a08bf64406b440f3bb3ad334ed
trusted.glusterfs.dht=0x00000001000000007fffffffffffffff
trusted.glusterfs.quota.00000000-0000-0000-0000-000000000001.contri=0x0000000000006000
trusted.glusterfs.quota.dirty=0x3000
trusted.glusterfs.quota.size=0x0000000000006000

and

[root at gluster2 ~]# getfattr -m . -d -e hex /glusterfs/home/brs
getfattr: Removing leading '/' from absolute path names
# file: glusterfs/home/brs
security.selinux=0x726f6f743a6f626a6563745f723a66696c655f743a733000
trusted.gfid=0x1bbcb9a08bf64406b440f3bb3ad334ed
trusted.glusterfs.dht=0x0000000100000000000000007ffffffe
trusted.glusterfs.quota.00000000-0000-0000-0000-000000000001.contri=0x0000000000002000
trusted.glusterfs.quota.dirty=0x3000
trusted.glusterfs.quota.size=0x0000000000002000

Brian Smith
Senior Systems Administrator
IT Research Computing, University of South Florida
4202 E. Fowler Ave. ENB308
Office Phone: +1 813 974-1467
Organization URL: http://rc.usf.edu

On 07/06/2011 02:27 AM, Mohammed Junaid wrote:
> Hi Brian,
> 
> Please find the comments in line.
> 
> I'm running into the same issue.  But be aware, the documentation says
>> that you should use an absolute path _relative_ to the volume.  So if
>> your volume is, for example:
>>
>> volume name: home
>>
>> and a top-level directory in home is test, you would simply do
>>
>> volume quota home limit-usage /test 10MB
>>
>> So, in your case:
>>
>> volume quota crlgfs1 limit-usage /dheeraj 10MB
>>
>>
> Yes, this is what quota expects to set a limit on the directory.
> 
> 
>> I get the usage numbers in my configuration, but the quota is not
>> enforced.  this is my config:
>>
>> gluster> volume info
>>
>> Volume Name: home
>> Type: Distribute
>> Status: Started
>> Number of Bricks: 2
>> Transport-type: tcp,rdma
>> Bricks:
>> Brick1: gluster1:/glusterfs/home
>> Brick2: gluster2:/glusterfs/home
>> Options Reconfigured:
>> features.limit-usage: /brs:10MB
>> features.quota: on
>>
>> Here's my quota information:
>>
>> gluster> volume quota home list
>>        path              limit_set          size
>>
>> ----------------------------------------------------------------------------------
>> /brs                   10485760             16424960
>>
>>
> Did you start with an empty backend? And can you run these commands and
> paste the output.
> 
>   getfattr -m . -d -e hex  gluster1:/glusterfs/home/brs
>   getfattr -m . -d -e hex  gluster2:/glusterfs/home/brs
> 
> Thanks,
> Juanid
> 



More information about the Gluster-users mailing list