GlusterFS is a scalable network filesystem suitable for data-intensive tasks such as cloud storage and media streaming. GlusterFS is free and open source software and can utilize common off-the-shelf hardware, distributed file system capable of scaling to several petabytes and handling thousands of clients. It is a file system with a modular, stackable design, and a unique no-metadata server architecture. This no-metadata server architecture ensures better performance, linear scalability, and reliability.
Gluster volume quota feature provides users a mechanism to control the disk utlization at volume level or directory level or both. This is particularly useful in cloud deployments to facilitate the use of utility billing models.
– In this guide, we will show you how to manage Quota on Glusterfs Server at volume level or directory level. In this articles, we will go through those steps:
- Enabling Quotas
- Disabling Quotas
- Setting limits usage at the Volume Level or Directory Level
- Displaying quota list
- Displaying Disk Limit Informationat volume level or directory level
1. Enabling Quotas
– To set disk limits you have to enable the quotas on the volume using the following command:
# gluster volume quota volume_name enable volume quota : success
2. 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.
– For example, to set limit to 10GB on the test-volume, you can use the following command:
# gluster volume quota test-volume limit-usage / 10GB
– For example, to set limit on data directory on the 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
3. Displaying Disk Limit Information
– To display disk limit information on all the directories on which the limit is set, you can use the following command:
# gluster volume quota list
– For example, to see the set disks limit on the test-volume:
# gluster volume quota test-volume list /Test/data 10 GB 6 GB
Display disk limit information on a particular directory on which limit is set, using the following command:
# gluster volume quota volume_name list /directory_name
– For example, to view the set limit on /data directory of test-volume:
# gluster volume quota test-volume list /data /Test/data 10 GB 6 GB
4. Disabling Quota
– To disable quota, use the following command:
# gluster volume quota disable
– For example, to disable quota on the test-volume:
# gluster volume quota test-volume disable Quota translator is disabled on /test-volume
To read more about Gluster volume quota feature, see :http://docs.gluster.org/en/latest/Administrator%20Guide/Directory%20Quota/
We hope this tutorial was enough Helpful. If you need more information, or have any questions, just comment below and we will be glad to assist you!
PS. If you like this post please share it with your friends on the social networks using the buttons below.Thanks.