<div dir="ltr"><div><div>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.<br></div><br></div><div>This isn't hard to do. But at the moment we support sharding only for VM image store use case.<br></div><div>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.<br><br></div><div>-Krutika<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 29, 2017 at 11:20 AM, Xie Changlong <span dir="ltr"><<a href="mailto:xiechanglong.d@gmail.com" target="_blank">xiechanglong.d@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all<br>
<br>
I did a small test on gluster 3.8.4, and found shard feature does not support quota. Here is the step:<br>
$ gluster volume set s1 features.shard on<br>
$ gluster volume quota s1 enable<br>
$ gluster volume quota s1 limit-usage /ttt 1GB<br>
$ gluster volume quota s1 list<br>
$ cd /mnt/s1/ttt; fallocate -l 2GB testfile<br>
Then, i found testfile created sucessully.<br>
<br>
So, It seems shard doesn't support quota. It's a technical issue or there is a ongoing plan?<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Thanks<br>
-Xie<br>
</font></span></blockquote></div><br></div>