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:
Resizing quotas is faster than a full reinitialization; however, some quota file changes may not be reflected.
Performing a full quota reinitialization reads and recalculates the entire quota file. This may take some time, but all quota file changes are guaranteed to be reflected after the initialization is complete.
Note
Your storage system functions normally while quotas are being initialized; however, quotas remain off until the initialization is complete.
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:
Note
After you have made extensive changes to the /etc/quota file, you should perform a full reinitialization to ensure that all of the changes become effective.
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.
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.
To resize quotas, complete the following step.
| 1 |
quota resize vol_name vol_name is the name of the volume you want to resize quotas for. |
Copyright © 1994-2005, Network Appliance, Inc. All rights
reserved.
Part No. 210-01085_B0
File: 8quot15.htm
Last updated: 01-Dec-2005 16:51:45