Gluster — Directory Quotas

What is Quota?

Quota as a feature — Gluster 🐜

Levels

Let’s test the feature

Prerequisites

Enable the quota 🔘

# gluster volume quota <VOLNAME> enable
# gluster volume quota tvol enable
Quota is enabled on /tvol

Disabling Quota 🔴

# gluster volume quota <VOLNAME> disable
# gluster volume quota tvol disable
Quota translator is disabled on /tvol

Setting or Replacing Disk Limit

gluster volume quota <VOLNAME> limit-usage <DIR> <HARD_LIMIT>
# gluster volume quota tvol limit-usage /data 10GB Usage limit has been set on /data
[root@servera ~]# mount -t glusterfs servera:tvol /mnt/tvol

Steps: 🚶

# cd /mnt/tvol && mkdir data
# gluster volume quota tvol limit-usage /data 10GB 
Usage limit has been set on /data
volume quota : success

😃

Next: Advanced features in Quota

References:

Flutter | Google Actions | Gluster