This command creates a directory quota.
Usage
quota create --name NAME
--path PATH
[--tenant-id ID]
[--create-dir [--create-dir-mode PERMISSION-BITS|--inherit-acl]]
[--enable-email-providers|--disable-email-providers]
#Options to set directory quota limits
[--soft-limit LIMIT]
[--soft-limit-inodes LIMIT]
[--grace-period PERIOD]
[--hard-limit LIMIT]
[--hard-limit-inodes LIMIT]
#Options to configure user and group quota rules
[--is-user-quota]
[--default-user-quota LIMITS]
[--default-group-quota LIMITS]
#Options to configure quota group membership
[--quota-groups-ids IDs]Required Parameters
| A unique name for the quota. |
| The path to the directory to which quota limits apply. 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 |
General Options
| Specify a tenant for the quota. If not specified, the quota will be created for the default tenant. |
| Creates the directory if the quota directory does not exist yet (in which case this option is required). If this option is not specified and the quota directory doesn't exist, the quota will not be created. |
| This option is used together with the This option sets POSIX permissions mode for the new quota directory. The default value is 777. Specify |
| This option is used together with the If specified, the newly created directory will inherit the ACL of the parent directory. If not specified, and also in case the parent directory does not have an inherited ACL, the newly created directory will be assigned an ACL granting POSIX 777 permissions. |
| Allows querying providers for email addresses used to send email notifications when a quota limit is exceeded. By default, the querying is allowed. |
| Prohibits querying providers for email addresses used to send email notifications when a quota limit is exceeded. |
Options to Set Directory Quota Limits
| The soft limit of capacity usage. When this limit is reached, a notification email is sent, and the grace period countdown commences. Writes are blocked only after the grace period expires. Specify If not specified, no soft limit is applied. |
| The soft limit on the number of directories and unique files that can be created in the quota directory. When this limit is reached, a notification email is sent, and the grace period countdown commences. Writes are blocked only after the grace period expires. NOTE: A file with multiple hardlinks is counted only once. |
| A period during which writes to the quota directory are not blocked although a soft limit has been exceeded. If the grace period is not set, exceeding a soft limit does not cause blocking of further writes to the quota directory. Specify
|
| The limit of capacity usage above which no further writes are allowed. When the hard limit is reached, the HARD_EXCEEDED alarm is raised. Specify
The units are case-insensitive. For example, If not specified, no hard limit is applied. |
| The limit on the number of directories and unique files that can be created in the quota directory, above which no further writes are allowed. NOTE: A file with multiple hardlinks is counted only once. Specify |
Options to Configure User and Group Quota Rules
| Specify this option if you want to enable user and/or group quotas on the quota directory. If this option is specified, you can set more granular limits for the quota directory as follows:
|
| This option is used together with Specify LIMITS as a comma-separated list of options in single quotes. For example: |
| This option is used together with Specify For example: |
Options to Configure Quota Group Membership
| Includes the directory quota into a quota group. Specify |
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