Hello Varun and Vijay, First of all thank you for your comments. I saw my mistakes and I've understand the way GlusterFS compute quota. All is ok for me right now. I read the following doc which helps a lot ! https://access.redhat.com/site/documentation/en-US/Red_Hat_Storage/2.1/html-single/Administration_Guide/index.html#chap-User_Guide-Dir_Quota Regards, Thierry. -----Message d'origine----- De : Varun Shastry [mailto:vshastry@xxxxxxxxxx] Envoyé : mardi 27 mai 2014 12:25 À : Thierry Lamoureux; gluster-users@xxxxxxxxxxx Objet : Re: Quota problem : overquota late (Inline comments) On Friday 23 May 2014 10:11 PM, Thierry Lamoureux wrote: > Hello, > > I have a problem using GlusterFS Quota on a distributed volume. > > Here is my conf : > - GlusterFS 3.5 (LATEST) > - 3 servers > - 1 brick of 10TB per server > > Once my server have been added to the pool, I've performed the following commands : > - gluster volume create vol0 server1:/glusterfs/brick1/vol0 > server2:/glusterfs/brick2/vol0 server3:/glusterfs/brick3/vol0 > - gluster volume start vol0 > - gluster volume set vol0 features.quota-timeout 5 Hey Thierry, This option is corresponding to the old quota(<3.5) implementation and has no effect on the new one (3.5), also the option needs to be deprecated (Better we track it through a bug). Please use options - gluster volume quota <volname> [hard|soft]-timeout <time> while working with quota in 3.5.z versions. - Varun Shastry > - gluster volume quota vol0 enable > - gluster volume quota vol0 limit-usage /quota-test 50MB > > First of all, the last command doesn't work if the "quota-test" folder isn't created, contrary to what it is mentioned in the GlusterFS documentation : "You can set the disk limit on the directory even if it is not created" > > Here is the result of gluster volume info : > > Volume Name: vol0 > Type: Distribute > Volume ID: ee585e7a-1b89-40b5-bd37-1c977920e87f > Status: Started > Number of Bricks: 3 > Transport-type: tcp > Bricks: > Brick1: server1:/glusterfs/projets-brick1/vol0 > Brick2: server2:/glusterfs/projets-brick2/vol0 > Brick3: server3:/glusterfs/projets-brick3/vol0 > Options Reconfigured: > performance.cache-size: 256MB > features.quota-timeout: 5 > features.quota: on > > Then, I mount the volume on a client, go the the /mnt/quota-test folder and make a diskdump : > dd if=/dev/zero of=test bs=1M > > After approx. 1min I've got the message : > dd: write of « test »: Quota exceeded > dd: closing output file « test »: Quota exceeded > > Then, I lauch "gluster voluime quota vol0 list" : > Path Hard-limit Soft-limit Used Available > -------------------------------------------------------------------------------- > /quota-test 50.0MB 80% 1.3GB 0Bytes > > All info are fine, but we are for 1GB overquota. > > This behavior is the same with multiples copies : it take to long time to the gluster system to detect the overquota. > > Have I miss something in the configuration steps? > > Thank you for your help. > > Kind regards, > > Thierry ! > _______________________________________________ > Gluster-users mailing list > Gluster-users@xxxxxxxxxxx > http://supercolony.gluster.org/mailman/listinfo/gluster-users _______________________________________________ Gluster-users mailing list Gluster-users@xxxxxxxxxxx http://supercolony.gluster.org/mailman/listinfo/gluster-users