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 quotaVOLNAMElimit-usage /directorylimit-valueFor example, to set limit ondatadirectory ontest-volumewhere 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 quotaVOLNAMElimit-usage /limit-valueFor 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/rhs1then 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.