Library Table of Contents Index Previous Next Comments

Creating or resizing quotas

Ways to change quotas  Top

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.

Creating a quota for a quota target that the filer is not tracking  Top

If currently a user, group, or qtree is not under the effect of any /etc/quotas entry, to create a quota for the user, group, or qtree, complete the following steps.

Step

Action

1

Create an entry in the /etc/quotas file for the user, group, or qtree.

2

If quotas are...

Then...

Currently turned off

Enter the following command to turn quotas on:

quota on volume

Currently turned on

Enter the following commands to reinitialize quotas:

quota off volume;quota on volume
Result

Data ONTAP initializes quotas for the specified volume. Quota initialization can take a few minutes. After the initialization, all entries in the /etc/quotas file and all derived quotas take effect.

3

Enter the following command to check the status of quota initialization:

quota
Result

Data ONTAP displays the percentage of quota initialization completed. After Data ONTAP finishes quota initialization, it displays the following message:

vol_name: quotas are on
Example

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.

Resizing an existing quota  Top

To resize a quota, complete the following steps.

Step

Action

1

If...

Then...

The quota being enforced is an explicit quota in the /etc/quotas file

Change the specification of the explicit quota.

The quota being enforced is a derived quota

Create an entry in the /etc/quotas file to override the derived quota.

2

Enter the following command:

quota resize volume
Result

The change you made in Step 1 takes effect.

Example of resizing an explicit quota

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.

Example of resizing a derived quota

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.

Recommendation after an extensive revision of the /etc/quotas file  Top

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.

Library Table of Contents Index Previous Next Comments