This command creates a quota.
Usage
quota create --name NAME --path PATH [--grace-period GRACE-PERIOD] [--soft-limit SOFT-LIMIT] [--hard-limit HARD-LIMIT] [--create-dir] [--hard-limit-inodes HARD-LIMIT-INODES] [--soft-limit-inodes SOFT-LIMIT-INODES] [--is-user-quota] [--enable-email-providers] [--disable-email-providers] [--default-user-quota DEFAULT_USER_QUOTA] [--default-group-quota DEFAULT_GROUP_QUOTA]
Required Parameters
| Specifies the name of the quota. |
| Specifies a path to a directory in the element store to which the quota applies. The quota applies to the entire directory, including all subdirectories. If a quota configured on a subdirectory is bigger than the quota on its parent directory, the more restrictive quota applies. You can specify a non existent directory if you add the |
Options
| Triggers an alarm and blocks write operations to the directory if the storage usage continues to exceed the soft limit for a specified time period. If no grace period is set, the directory is only blocked if and when usage reaches the hard limit. Specify
|
| Sets a storage usage soft limit. Warnings of exceeding the quota are issued when this limit is reached. If not specified, no soft limit is applied. |
| Sets a storage usage limit. No writes are allowed beyond this limit. When the hard limit is reached, the HARD_EXCEEDED alarm is triggered. The value must be a complete integer and must be specified with a unit of measurement. Do not insert a space between the value and the unit of measurements. Valid units are:
The units are case-insensitive. For example: If not specified, no hard limit is applied. |
| Creates the directory if the directory does not exist. Required if the directory doesn't exist. |
| Sets a limit on the number of directories and unique files under the path. No writes are allowed beyond this limit. A file with multiple hardlinks is counted only once. |
| Sets a soft limit on the number of directories and unique files under the path. Warnings of exceeding the quota are issued when the limit is reached. A file with multiple hardlinks is counted only once. |
| Enables the ability to configure user and/or group quotas on the quota directory, |
| Relevant for user quotas, enables querying of providers for user email addresses used to send email notifications to users when they exceed user quotas. (Enabled by default.) |
| Relevant for user quotas, disables querying of providers for user addresses used to send email notifications to users when they exceed user quotas. |
| Specifies the configuration of a default user quota. If configured, the default user quota is applied to users without individual quotas. For example: |
| Specifies the configuration of a default group quota. If configured, the default group quota is applied to groups without individual quotas. For example: |
Example
vcli: admin> quota create --name quota1 --path /dev --grace-period 30 20:15:10 --soft-limit 1tb --hard-limit 2tb --create-dir --hard-limit-inodes 5000 --soft-limit-inodes 4800