You can change quotas in the following ways:
You can determine from the quota report whether your filer is tracking disk usage for a particular user, group, or qtree. A quota in the quota report indicates that the filer 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.
If a user, group, or qtree is not under the effect of any /etc/quotas entry, complete the following steps to create a quota for the user, group, or qtree.
Suppose the /etc/quotas file currently contains the following entry:
jsmith user@/vol/cad 100M 15K
The following entry applies quotas to quota targets other than jsmith:
* user@/vol/cad 500M 15K
The following commands activate the newly created entry:
quota off cad;quota on cad
After quota initialization, all users, except for jsmith, are limited to 500 MB of disk space and 15,360 files in the /vol/cad volume.
To resize a quota, complete the following steps.
| 1 | ||
The quota being enforced is an explicit quota in the /etc/quotas file |
||
Create an entry in the /etc/quotas file to override the derived quota. |
||
| 2 |
quota resize volume Result |
|
Suppose the /etc/quotas file contains the following entry:
jsmith user@/vol/cad 50M 15K
If you want jsmith to have a more restrictive quota, change the existing entry to the following entry:
jsmith user@/vol/cad 20M 15K
Then enter the following command:
quota resize cad
The new quota for jsmith goes into effect immediately.
Suppose the /etc/quotas file contains the following entry:
* user@/vol/cad 50M 15K
If you want jsmith to have a less-restrictive quota, add the following explicit quota for jsmith:
jsmith user@/vol/cad 100M 15K
Then enter the following command:
quota resize cad
The new quota for jsmith goes into effect immediately.
After you edit the /etc/quotas file extensively, it is better to reinitialize quotas than to resize quotas. Although quota reinitalization takes a longer time than quota resizing, quota reinitialization ensures that all quotas listed in the file become effective. Quota resizing works only for quota targets that are currently tracked by Data ONTAP. If your revisions to the /etc/quotas file include entries for quota targets that the filer is not tracking, the quota resize command ignores them. For each entry that it skips, the quota resize command prints the following message:
quota resize: warning: /etc/quotas:n:skipping new entry
n is a line number.
Copyright © 1994-2003, Network Appliance, Inc. All rights
reserved.
Part No. 210-00472
File: quota15.htm
Last updated: 11/17/03 16:57:54