Set up quotas on an SVM
You can set up quotas on a new SVM to management and monitor resource utilization.
At a high level, there several steps involved when configuring quotas including:
-
Create a quota policy
-
Add the quota rules to the policy
-
Assign the policy to the SVM
-
Initialize the quotas on each FlexVol volume on the SVM
-
Enter the command
vserver show -instanceto display the name of the default quota policy that was automatically created when the SVM was created.If a name was not specified when the SVM was created, the name is "default". You can use the
vserver quota policy renamecommand to give the default policy a name.You can also create a new policy by using the
volume quota policy createcommand. -
Use the
volume quota policy rule createcommand to create any of the following quota rules for each volume on the SVM:-
Default quota rules for all users
-
Explicit quota rules for specific users
-
Default quota rules for all groups
-
Explicit quota rules for specific groups
-
Default quota rules for all qtrees
-
Explicit quota rules for specific qtrees
-
-
Use the
volume quota policy rule showcommand to check that the quota rules are configured correctly. -
If you are working on a new policy, use the
vserver modifycommand to assign the new policy to the SVM. -
Use the
volume quota oncommand to initialize the quotas on each volume on the SVM.You can monitor the initialization process in the following ways:
-
When you use the
volume quota oncommand, you can add the-foregroundparameter to run the quota on job in the foreground. (By default, the job runs in the background.)When the job runs in the background, you can monitor its progress by using the
job showcommand. -
You can use the
volume quota showcommand to monitor the status of the quota initialization.
-
-
Use the
volume quota show -instancecommand to check for initialization errors, such as quota rules that failed to initialize. -
Use the
volume quota reportcommand to display a quota report so that you can ensure the enforced quotas match your expectations.