This command modifies a directory quota.
Usage
quota modify --id ID
[--name NAME]
[--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
[--enable-user-quota|--disable-user-quota]
[--default-user-quota LIMITS]
[--default-group-quota LIMITS]
#Options to configure quota group membership
[--quota-groups-ids IDs|--detach-all-quota-groups]Required Parameters
| The ID of the quota that you want to modify. |
General Options
| The name of the quota. |
| 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 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 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:
|
| Disables user and/or group quotas on the quota directory. |
| This option is used together with Specify 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 IDs as a comma-separated list of quota IDs, for example: |
| Removes the directory quota from all quota groups. |
Example
To set the grace period to 8 hours:
vcli: admin> quota modify --id 4 --grace-period 8h
Are you sure you want to modify the quota? [y/N] y