Skip to main content

volume quota on

Contributors
Suggest changes

Turn on quotas for volumes

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

This command creates a job to activate quotas for the specified volume. You can monitor the progress of the job by using the job show and job watch-progress commands.

Parameters

-vserver <vserver name> - Vserver Name

This specifies the name of the Vserver on which the volume is located.

-volume <volume name> - Volume Name

This specifies the name of the volume on which you are activating quotas.

[-w, -foreground <true>] - Foreground Process

This optionally specifies whether the job created for activating quotas runs as a foreground process. The default setting is false (that is, the operation runs in the background). When set to true , the command will not return until the job completes. The quota job finishes after the filesystem scanner is started. The quota state for the volume is initializing until the filesystem scanner finishes scanning the entire filesystem. After the scanning is complete, the quota state will be on .

Examples

The following example activates quotas on the volume named vol1 , which exists on Vserver vs0 .

cluster1::> volume quota on -vserver vs0 -volume vol1
[Job 23] Job is queued: Quota ON Operation on vserver vs0 volume vol1.

The following example uses a 7G-compatible command to activate quotas on the volume named vol1 which exists on Vserver vs0 .

cluster1::> vserver context vs0
vs0::> quota on -w vol1
[Job 25] Job is queued: Quota ON Operation on vserver vs0 volume vol1.

[Job 25] Job succeeded: Successful