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

Activating or reinitializing quotas

About activating or reinitializing quotas  Top

You use the quota on command to activate or reinitialize quotas. The following list outlines some facts you should know about activating or reinitializing quotas:

CIFS requirement for activating quotas  Top

If the /etc/quotas file contains user quotas that use Windows IDs as targets, CIFS must be running before you can activate or reinitialize quotas.

Quota initialization terminated by upgrade  Top

Any quota initialization running when the storage system is upgraded is terminated and must be manually restarted from the beginning. For this reason, you should allow any running quota initialization to complete before upgrading your storage system.

Activating quotas  Top

To activate quotas, complete the following step.

Step

Action

1

Enter the following command:

quota on [-w] vol_name

The -w option causes the command to return only after the entire /etc/quotas file has been scanned (synchronous mode). This is useful when activating quotas from a script.

Example

The following example turns on quotas on a volume named cad:

quota on cad

Reinitializing quotas  Top

To reinitialize quotas, complete the following steps.

Step

Action

1

If quotas are already on for the volume you want to reinitialize quotas on, enter the following command:

quota off vol_name
2

Enter the following command:

quota on vol_name

Deactivating quotas  Top

To deactivate quotas, complete the following step.

Step

Action

1

Enter the following command:

quota off vol_name

Example

The following example turns off quotas on a volume named cad:

quota off cad

Note
If a quota initialization is almost complete, the quota off command can fail. If this happens, retry the command after a minute or two.

Canceling quota initialization  Top

To cancel a quota initialization that is in progress, complete the following step.

Step

Action

1

Enter the following command:

quota off vol_name

Note
If a quota initialization is almost complete, the quota off command can fail. In this case, the initialization scan is already complete.

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