When modifying a quota, you can view quota accounting for each user and group and use it to help you decide what quota rules to set.
-
Click
to open the Actions menu for the quota and select Edit.
-
Make any changes you want to make in the Quota Rules tab (see Creating Quotas).
-
If you want to view the current usage in the directory before you set quotas, select the User Accounting tab to see usage per user and/or the Group Accounting tab to see usage per group.
If you want to make changes to user and group rules without looking at the accounting, skip to the step Step 5.
-
On the User Accounting tab or the Group Accounting tab, a list of query results is displayed. The list shows you all users/groups that own files/directories in the quota directory.
To filter the list: enter a text string into the Search field at the top of the User or Group column or the State column. The list is filtered responsively as you type. (Do not select the ENTER key when searching, because that will create the quota immediately.)
The following information is displayed for each user or group:
Name
The user or group name.
State
The state of the quota:
-
Ok. The quota was created. The directory is not exceeding any of the limits.
-
Failed. Quota creation failed.
-
Soft limit (capacity) Exceeded. The current size of the quota directory has exceeded the specified capacity soft limit.
-
Soft limit (files and directories) exceeded. The combined number of files and directories has exceeded the directory's soft limit for files and directories.
-
Soft Limits both Exceeded. Both the quota directory's size, and the number of files and directories in the quota directory have exceeded the quota soft limit.
-
Hard limit (capacity)exceeded. The capacity of the quota directory has exceeded the quota hard limit.
-
Hard limit (files and directories)exceeded. The combined number of files and directories have exceeded the quota hard limit for files and directories.
-
Hard Limits both exceeded. Both the capacity, and files and directories have exceeded the quota hard limit.
-
Grace Period Exceeded. The soft limit was exceeded for the extent of the grace period.
Capacity
The percentage of the user's capacity hard limit that the user has consumed in the directory, if such a hard limit is defined for the user. The applicable hard limit could be defined by a user rule or by a default user rule.
Files & Directories
The percentage of the user's hard limit for files and directories that the user has consumed in the directory, if such a hard limit is defined for the user. The applicable hard limit could be defined by a user rule or by a default user rule.
Capacity
The capacity used by files or directories under the quota directory that are owned by the user or group.
Files & Directories
The number of files and directories under the quota directory owned by the user or group.
Capacity
The capacity soft limit defined for the user/group, if defined. The applicable limit could be defined by a user/group rule or by a default user/group rule.
Files & Directories
The files and directories soft limit defined for the user/group, if defined. The applicable limit could be defined by a user/group rule or by a default user/group rule.
Capacity
The capacity hard limit defined for the user/group, if defined. The applicable limit could be defined by a user/group rule or by a default user/group rule.
Files & Directories
The files and directories hard limit defined for the user/group, if defined. The applicable limit could be defined by a user/group rule or by a default user/group rule.
Grace Period
The grace limit defined for the user/group, if defined. The applicable grace period could be defined by a user/group rule or by a default user/group rule.
Time left
If a grace period is configured for the user or group, and the user or group has exceeded the soft capacity limit, then this field shows how much time remains until the grace period expires, at which time the user will be blocked from writing to the directory.
Add rule
This is a shortcut button to navigate to the User Rules tab to add a rule for the user (see next step for details).
-
-
To edit/add/remove user rules, select the User Rules tab. To edit/add/remove group rules, select the Group Rules tab.
If a default user or group rule is configured in the Quota Rules tab, it is used as a default for any user or group that doesn't have an individual rule. Other rules apply to specific users. The following fields are specified for each rule:
Name
The user's user name or the group's group name.
Capacity
The limit of capacity usage by the user at which warnings of exceeding the quota are issued, and the grace period countdown is triggered.
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 hard links is counted only once.
Capacity
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.Files & Directories
The number of directories and unique files in the quota directory that the user can create.
A file with multiple hard links is counted only once.
Grace period
Set this value to trigger an alarm and block write operations to the directory if the user exceeds either the capacity soft limit or the files and directories soft limit for a specified time period.
If the grace period is not set, the user is only write blocked if and when the user reaches one of the hard limits.
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 minutes, enter
18:00
. -
To specify 20 hours, enter 20:00:00.
-
You can also specify time in days, hours, minutes or seconds, in the format, for example 10d, 10h, 10m or 10s. The usage is case sensitive, entering 10D or 10H will return an error.
-
-
When you are done making changes to the quota, click Update.
The quota is updated.
To modify a directory quota, use the quota modify
command. This includes modifying or 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.
To delete a user or group quota rule, use the userquota delete
command.
To modify non default user and group quotas, use the userquota modify command.
Comments
0 comments
Article is closed for comments.