Chapter 12. Managing Directory Quota

Important

Directory Quota is a technology preview feature. Technology Preview features are not fully supported under Red Hat subscription level agreements (SLAs), may not be functionally complete, and are not intended for production use. However, these features provide early access to upcoming product innovations, enabling customers to test functionality and provide feedback during the development process. As Red Hat considers making future iterations of Technology Preview features generally available, we will provide commercially reasonable efforts to resolve any reported issues that customers experience when using these features.
Directory quotas allows you to set limits on usage of disk space by directories or volumes. The storage administrators can control the disk space utilization at the directory and/or volume levels by setting limits to allocatable disk space at any level in the volume and directory hierarchy. This is particularly useful in cloud deployments to facilitate utility billing model.

Note

Red Hat Storage supports only setting hard limits. Once the hard limit is set, it cannot exceed the limit and attempts to use more disk space beyond the set limit is denied.
System administrators can also monitor the resource utilization to limit the storage for the users depending on their role in the organization.
You can set the quota at the following levels:
  • Directory level – limits the usage at the directory level
  • Volume level – limits the usage at the volume level

Note

You can set the disk limit on the directory even if it is not created. The disk limit is enforced immediately after creating that directory. For more information on setting disk limit, see Section 12.3, “Setting or Replacing Disk Limit ”.

12.1. Enabling Quota

You must enable Quota to set disk limits.
To enable quota
  • Enable the quota using the following command:
    # gluster volume quota VOLNAME enable
    For example, to enable quota on test-volume:
    # gluster volume quota test-volume enable
    Quota is enabled on /test-volume