Explains how to set disk space quotas for users and groups.
Quotas limit the disk space used by a volume or an entity (user or group) on an Enterprise Edition-licensed cluster, by specifying the amount of disk space the volume or entity is allowed to use. A volume quota limits the space used by a volume. A user/group quota limits the space used by all volumes owned by a user or group. These quotas work on tenant volumes as well.
You can set hard quota and advisory quota defaults for users and groups. When a user or group is created, the default quota and advisory quota apply unless overridden by specific quotas. You can set an entity quota that differs from the default using the entity modify command or through the Control System.
The size of a disk space quota is expressed in terms of the actual data stored from the user's point of view. Only post-compression data blocks are counted, and snapshot and replica space do not count against quotas. For example, a 10G file that is compressed to 8G and has a replication factor of 3 consumes 24G (3*8G), but charges only 8G to the user or volume's quota.
You can set an entity quota through the Control System and using the CLI.
Complete the following steps to set the entity quota in the Control System:
To set an entity (user or group) quota, run the following command:
maprcli entity modify -name <entityname> -advisoryquota <advisory quota> -quota <quota>
To manage quotas, you must have a or
fc permissions.
Quotas are expressed as an integer value plus a single letter to represent the unit:
Example: 500G specifies a 500-gigabyte quota. Do not use two-letter abbreviations for units, such as MB or GB.
For complete reference information, see the entity modify command.
To set the resource usage limit for the cluster's disk resource, run the following command:
maprcli rlimit set -resource disk -cluster <cluster name> -value <limit>
For complete reference information, see the rlimit set command.