You can create a quota on a directory with or without quotas for individual users and groups.
For a simple directory quota, follow the first stage procedure below only. For a directory quota with user and group quotas, follow both sections below in order.
-
From the left navigation menu, select Element Store and then Quotas.
-
Click Create Quota.
-
In the Directory Quota tab, complete these fields:
Field
Description
Name (required)
A unique name for the quota.
Path (required)
The path to the directory.
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.
Hard limit (required)
Storage usage limit beyond which no writes will be allowed.
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:
4gb
is valid.Soft limit
Storage usage limit at which warnings of exceeding the quota are issued.
Hard limit Files/Directories
Number of directories and unique files under the path beyond which no writes will be allowed. A file with multiple hardlinks is counted only once.
Soft limit Files/Directories
Number of directories and unique files under the path at which warnings of exceeding the quota will be issued. A file with multiple hardlinks is counted only once.
Grace period
Set this value to trigger an alarm and block write operations to the directory if the storage usage continues to exceed the soft limit for a specified time period.
If the grace period is not set, the directory is only blocked if and when usage reaches the hard limit.
Specify the grace period in the format:
[DD] [HH:[MM:]]ss
. Examples:-
To specify 30 days, 20 hours, 15 minutes and 10 seconds, enter
30 20:15:10
. -
To specify 18 hours, enter
18:00
.
Create Directory
Enable this to create the directory if the directory was not created yet.
If Create Directory is disabled and the directory doesn't exist, the quota will not be created.
Enable User/Group Quotas
If you want to enable user and/or group quotas on the quota directory, enable this setting.
Caution
You will not be able to enable or disable this setting after creating the quota.
Enable Alarms
If user/group quotas are enabled, alarms are enabled by default on the following events, which can be managed as Event Definitions:
-
A threshold event that monitors the number of users exceeding their quotas. Per the default event definition, an alarm of major severity is raised when one or more users exceed their user quota limits on the quote. The alarm notification reports the number of users that exceeded their quota.
-
A threshold event that monitors the number of users that are blocked from writing to the quota. Per the default event definition, an alarm of critical severity is raised when one or more users is blocked from writing to the quota.
You can use this setting to disable these alarms for the quota.
This setting does not affect emails sent to users when they exceed quota limits. Such emails continue to be sent when this setting is disabled.
Default Email
Emails are sent to users if and when they exceed their user/group quota limits. Default Email is a default email address that is used instead of a user's email address in the event that no email address is found for the user on a provider and no email suffix is set in the Quota Setup area of the Notifications settings.
For more information about this feature, see Managing User Quota Emails .
-
-
If you did not enable the Enable User/Group Quotas setting, click Create.
Quota creation now begins. The process is asynchronous and you can track the quota's state in the Quotas page.
If you did enable the Enable User/Group Quotas setting, continue with Configure User/Group Quotas.
When you create user and group quotas, you define rules that apply various limits and behaviors for users or groups. You can set a default user rule and similarly a default group rule. The default rules apply to all users that don't have an individual rule. You can also or alternatively create rules per user and per group, which override the default rules for those users and groups.
-
Continuing in the Create Quota dialog from Create a Directory Quota, select the User Rules tab.
-
If you want to create a default rule to apply quota limits to all users, complete the fields under Default:
Soft limit
The capacity usage limit per user, at which warnings of exceeding the quota are issued.
Hard limit
The capacity usage limit beyond which no writes will be allowed for the user.
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:
4gb
is valid.Soft limit files/directories
This is a limit on the number of directories and unique files in the quota directory that the user can create, which is not enforced until the grace period is reached.
If the user exceeds this limit, a warning is sent by email unless alarms are disabled. A file with multiple hardlinks is counted only once.
Hard limit files/directories
Number of directories and unique files under the path beyond which no writes will be allowed for the user.
A file with multiple hardlinks is counted only once.
Grace period
Set this value to trigger an alarm and block write operations to the directory if the user's usage continues to exceed the soft limit for a specified time period.
If the grace period is not set, writes are only blocked if and when usage reaches the hard limit.
Specify the grace period in the format:
[DD] [HH:[MM:]]ss
. Examples:-
To specify 30 days, 20 hours, 15 minutes and 10 seconds, enter
30 20:15:10
. -
To specify 18 hours, enter
18:00
.
-
-
To configure individual rules for specific users:
-
On the Group Rules tab, optionally configure a default rule and/or rules for specific groups. This is done the same way as for users (see previous steps).
-
When you are done configuring rules, click Create.
Quota creation now begins. The process is asynchronous and you can track the quota's state in the Quotas page.
To create a directory quota, use the quota create command. This includes creating default user and group quotas but not any additional user or group quotas.
To add non default user or group quota rules to a directory quota, use the userquota create command.
Comments
0 comments
Article is closed for comments.