Table of ContentsView in Frames

How you use explicit quotas

You can use explicit quotas to specify a quota for a specific quota target, or to override a default quota for a specific target.

An explicit quota specifies a limit for a particular user, group, or qtree. An explicit quota replaces any default quota that is in place for the same target.

When you add an explicit user quota for a user that has a derived user quota, you must use the same user mapping setting as the default user quota. Otherwise, when you resize quotas, the explicit user quota is rejected because it is considered a new quota.

Explicit quotas only affect default quotas at the same level (volume or qtree). For example, an explicit user quota for a qtree does not affect the default user quota for the volume that contains that qtree. However, the explicit user quota for the qtree overrides (replaces the limits defined by) the default user quota for that qtree.

Examples of explicit quotas

One user, chen, is allowed 80 MB of space on vol1 with the following command:

volume quota policy rule create -vserver vs1 -policy-name quota_policy_vs1_1 -volume vol1 -type user -target corp\chen -disk-limit 80MB -qtree ""

A group, eng1, is allowed 150 MB of disk space and an unlimited number of files in qtree proj1 on vol2 with the following command:

volume quota policy rule create -vserver vs1 -policy-name quota_policy_vs1_1 -volume vol2 -type group -target eng1 -disk-limit 150MB -qtree proj1

The qtree, proj1, is allowed 750 MB of disk space and 76,800 files on the vol2 volume with the following command:

volume quota policy rule create -vserver vs1 -policy-name quota_policy_vs1_1 -volume vol2 -type tree -target proj1 -disk-limit 750MB -file-limit 76800 -qtree ""

The volume quota policy rule show command displays the following output:

Vserver: vs1               Policy: quota_policy_vs1_1  Volume:
                                                               vol1
  
                                                 Soft             Soft
                           User         Disk     Disk   Files    Files
  Type   Target    Qtree   Mapping     Limit    Limit   Limit    Limit  Threshold
  -----  --------  ------- -------  --------  -------  ------  -------  ---------
  user   corp\chen      ""     off      80MB        -       -        -          -

                                                                vol2
  
                                                 Soft             Soft
                           User         Disk     Disk   Files    Files
  Type   Target    Qtree   Mapping     Limit    Limit   Limit    Limit  Threshold
  -----  --------  ------- -------  --------  -------  ------  -------  ---------
  group      eng1    proj1     off     150MB        -       -        -          -
  tree      proj1       ""     off     750MB        -   76800        -          -