Enabling quotas on a GlusterFS volume keeps shared storage predictable by limiting how much space a directory tree can consume, reducing the chance of a single workload filling the bricks and causing service disruption.
GlusterFS enforces quotas at the volume level through the gluster volume quota subsystem. Enabling quotas turns on quota accounting for the volume and sets the features.quota option, which must be enabled before any limit-usage rules can be applied.
Quota accounting introduces additional metadata work and may require background initialization on volumes with existing data, so enabling quotas during quieter periods helps avoid unexpected latency. Commands must be executed on a node with the gluster CLI and connectivity to the cluster management plane.
Related: How to set GlusterFS quota limits
Related: How to check GlusterFS logs
$ sudo gluster volume info volume1 Volume Name: volume1 Status: Started
Replace volume1 with the target volume name.
$ sudo gluster volume quota volume1 enable volume quota: success: quota enabled for volume volume1
Quota accounting can add overhead and may take time to initialize on large or busy volumes.
$ sudo gluster volume get volume1 features.quota Option Value ------ ----- features.quota on
features.quota set to on indicates quota accounting is active.
$ sudo gluster volume quota volume1 list No quota configured
No quota configured is expected until at least one quota limit is set.