[Gluster-devel] [Questions] why shard feature doesn't support quota

Krutika Dhananjay kdhananj at redhat.com
Thu Jun 29 07:24:36 UTC 2017


This is based on my high-level understanding of quota in gluster -
supporting quota on sharded volumes will require us to make quota xlator
account for shards residing under the hidden ".shard" directory per file
and adding this to the quota-xattr representing aggregated consumed size on
the parent directory of the original file.

This isn't hard to do. But at the moment we support sharding only for VM
image store use case.
There are plans to make shard useful for more generic use cases in the near
term. When we get there, we will support quota too on sharded files.

-Krutika

On Thu, Jun 29, 2017 at 11:20 AM, Xie Changlong <xiechanglong.d at gmail.com>
wrote:

> Hi all
>
> I did a small test on gluster 3.8.4, and found shard feature does not
> support quota.  Here is the step:
> $ gluster volume set s1 features.shard on
> $ gluster volume quota s1 enable
> $ gluster volume quota s1 limit-usage /ttt 1GB
> $ gluster volume quota s1 list
> $ cd /mnt/s1/ttt; fallocate -l 2GB testfile
> Then, i found testfile created sucessully.
>
> So, It seems shard doesn't support quota. It's a technical issue or there
> is a ongoing plan?
>
> --
> Thanks
>     -Xie
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-devel/attachments/20170629/547ce423/attachment.html>


More information about the Gluster-devel mailing list