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

Modifying quotas

About modifying quotas  Top

When you want to change how quotas are being tracked on your storage system, you first need to make the required change to your /etc/quota file. Then, you need to request Data ONTAP to read the /etc/quota file again and incorporate the changes. You can do this using one of the two following methods:

When you can use resizing  Top

Because quota resizing is faster than quota initialization, you should use resizing whenever possible. You can use quota resizing for the following types of changes to the /etc/quota file:

Resizing example 1

Consider the following sample /etc/quota file:

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

Suppose you make the following changes:

These changes result in the following /etc/quota file:

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

All of these changes can be made effective using the quota resize command; a full quota reinitialization is not necessary.

Resizing example 2

Your quotas file did not contain the default tracking tree quota, and you want to add a tree quota to the sample quota file, resulting in this /etc/quota file:

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

In this case, using the quota resize command does not cause the newly added entry to be effective, because there is no default entry for tree quotas already in effect. A full quota initialization is required.

Note
If you use the resize command and the /etc/quota file contains changes that will not be reflected, Data ONTAP issues a warning.

You can determine from the quota report whether your storage system is tracking disk usage for a particular user, group, or qtree. A quota in the quota report indicates that the storage system is tracking the disk space and the number of files owned by the quota target. For more information about quota reports, see Understanding quota reports.

Resizing quotas  Top

To resize quotas, complete the following step.

Step

Action

1

Enter the following command:

quota resize vol_name

vol_name is the name of the volume you want to resize quotas for.

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