12.3. Setting or Replacing Disk Limit

You can create new directories in your storage environment and set the disk limit or set disk limit for the existing directories. The directory name should be relative to the volume with the export directory/mount being treated as "/".
To set or replace disk limit
  • Set the disk limit on a directory using the following command:
    # gluster volume quota VOLNAME limit-usage /directory limit-value
    For example, to set limit on data directory on test-volume where data is a directory under the export directory:
    # gluster volume quota test-volume limit-usage /data 10GB
    Usage limit has been set on /data
  • Set the disk limit on a volume using the following command:
    # gluster volume quota VOLNAME limit-usage / limit-value
    For example, to set limit on test-volume:
    # gluster volume quota test-volume limit-usage / 100GB
    Usage limit has been set on /
    In this example, / refers to Red Hat Storage mount point. If the mount point is /mnt/rhs1 then the quota limit set on / is considered for /mnt/rsh1.

Note

In a multi-level directory hierarchy, the strictest disk limit will be considered for enforcement.