Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments

Sample quota entries

Explicit quota examples  Top

The following list contains examples of explicit quotas:

Tracking quota examples  Top

The following list contains examples of tracking quotas:

Default quota examples  Top

The following list contains examples of default quotas:

Default tracking quota example  Top

Default tracking quotas enable you to create default quotas that do not enforce any resource limits. This is helpful when you want to use the quota resize command when you modify your /etc/quotas file, but you do not want to apply resource limits with your default quotas. Default tracking quotas are created per-volume, as shown in the following example:

#Quota Target    type            disk  files  thold  sdisk  sfile
#------------    ----            ----  -----  -----  -----  -----
*                user@/vol/vol1   -      -
*                group@/vol/vol1  -      -
*                tree@/vol/vol1   -      -

Sample quota file and explanation  Top

The following sample /etc/quotas file contains default quotas and explicit quotas:

#Quota Target type                disk  files  thold  sdisk  sfile
#------------ ----                ----  -----  -----  -----  -----
*             user@/vol/cad       50M   15K
*             group@/vol/cad      750M  85K
*             tree@/vol/cad       100M  75K
jdoe          user@/vol/cad/proj1 100M  75K
msmith        user@/vol/cad       75M   75K
msmith        user@/vol/cad/proj1 75M   75K

 

The following list explains the effects of these /etc/quotas entries:

How conflicting quotas are resolved  Top

When more than one quota is in effect, the most restrictive quota is applied. Consider the following example /etc/quota file:

*                     tree@/vol/cad          100M      75K 
jdoe                  user@/vol/cad/proj1    750M      75K 

Because the jdoe user has a disk quota of 750 MB in the proj1 qtree, you might expect that to be the limit applied in that qtree. But the proj1 qtree has a tree quota of 100 MB, because of the first line in the quota file. So jdoe will not be able to write more than 100 MB to the qtree. If other users have already written to the proj1 qtree, the limit would be reached even sooner.

To remedy this situation, you can create an explicit tree quota for the proj1 qtree, as shown in this example:

*                    tree@/vol/cad           100M      75K 
/vol/cad/proj1       tree                    800M      75K 
jdoe                 user@/vol/cad/proj1     750M      75K 

Now the jdoe user is no longer restricted by the default tree quota and can use the entire 750 MB of the user quota in the proj1 qtree.

Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments