set the usage list using the following command gluster volume quota testfs01 limit-usage /bharath 100MB It also lists the same on the volume info command output as attached ~]# gluster volume info Volume Name: gv0 Type: Replicate Volume ID: 1b4b227f-656d-4d67-9b83-41e4da8aa2e5 Status: Started Number of Bricks: 1 x 2 = 2 Transport-type: tcp Bricks: Brick1: 10.15.0.134:/export/sdb1/brick Brick2: 10.15.0.135:/export/sdb1/brick Options Reconfigured: features.limit-usage: /bharath:100MB features.quota: on features.read-only: off auth.reject: none We were able to list the gluster volume usage [root@Func-l83 bharath]# gluster volume quota gv0 list path limit_set size ---------------------------------------------------------------------------------- /bharath 100MB 148.9MB After which we had copied some data on the specified directory, but the quota does not restrict copying data.
Hi, Did you set the soft/hard timeout to zero ? volume quota <VOLNAME> {alert-time|soft-timeout|hard-timeout} {<time>} Refer here : https://gluster.readthedocs.org/en/latest/Administrator%20Guide/Directory%20Quota/