Setting Quota for a Volume
Describes how to set disk quotas for a volume using either the Control System, the CLI or the REST API.
Setting Quota for a Volume Using the Control System
About this task
To set volume quotas, in the Summary tab under :
NOTE The Volumes page is under the Volumes
menu in the Kubernetes version of the Control System.
Procedure
-
Ensure that the Quota column is displayed in the
Volumes pane.
If necessary, customize the columns to see the Quota column.
- Click the Set Quota link associated with the volume for which you want to set quotas to display the Set Quota window.
-
Specify the following in the Set Quota window:
NOTE Both, advisory and hard, quotas can be expressed in megabytes (MB), gigabytes (GB), which is the default, or terabytes (TB).
- Click Save Changes for the changes to take effect.
Setting Quota for a Volume Using the CLI or the REST API
About this task
The basic command to set quota for a volume is:
maprcli volume create -name <volName> -path <mountPath> -advisoryquota <advisoryQuota> -quota <hardQuota>
maprcli volume modify -name <volName> -advisoryquota <advisoryQuota> -quota <hardQuota>
Send a request of type POST. For example:
curl -k -X POST 'https://<hostname>:8443/rest/volume/create?name=<volName>&path=<mountPath>&advisoryquota=<advisoryQuota>"a=<hardQuota>' --user mapr:mapr
curl -k -X POST 'https://<hostname>:8443/rest/volume/modify?name=<volName>&advisoryquota=<advisoryQuota>"a=<hardQuota>' --user mapr:mapr
For the complete list of required and optional parameters, see
volume create
and
volume modify
.