Create a user quota on a file system or quota tree
You can create user quotas on a file system or quota tree:
Create a user quota on a file system to limit or track the amount of storage space that an individual user consumes on that file system. When you create or modify a user quota on a file system, you have the option to use default hard and soft limits that are set at the file-system level.
Create a user quota on a quota tree to limit or track the amount of storage space that an individual user consumes on that tree. When you create a user quota on a quota tree, you have the option to use the default hard and soft limits that are set at the quota-tree level.
Specify the ID of the file system that the quota will act upon. The file system cannot be read-only or a replication destination.
-fsName
Specify the name of the file system that the quota will act upon. The file system cannot be read-only or a replication destination.
-path
Specify either of the following:
If the user quota is for a file system, either do not use this qualifier, or set its value to
/.
If the user quota is for a quota tree, specify the quota tree path relative to the root of the file system.
-userId
Specify the user ID on the file system or quota tree.
-unixName
Specify the UNIX user name associated with the specified user ID.
-winName
Specify the Windows user name associated with the specified user ID. The format is:
[<domain>\]<name>
-default
Inherit the default quota limit settings for the user. To view the default limits, use the following command:
/quota/config -fs
<value> -path
<value> show
If a soft limit or hard limit has not been specified for the user, the default limit is applied.
-softLimit
Specify the preferred limit on storage usage by the user. A value of
0 means no limitation. If the hard limit is specified and the soft limit is not specified, there will be no soft limitation.
-hardLimit
Specify the absolute limit on storage usage by the user. A value of
0 means no limitation. If the soft limit is specified and the hard limit is not specified, there will be no hard limitation.
NOTE:The hard limit should be larger than the soft limit.
Example
The following command creates a user quota for user 201 on file system res_1, quota tree /qtree_1. The new user quota has the following limits: