To set up quotas on a new storage virtual machine (SVM, formerly known as Vserver), you must create a quota policy, add quota policy rules to the policy, assign the policy to the SVM, and initialize quotas on each FlexVol volume on the SVM.
Procedure
- Use the vserver show command with the -instance option to 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 also use the
vserver quota policy rename command to give the default policy a name.
Note: You can also create a new policy by using the volume quota policy create command.
- Use the volume quota policy rule create command 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 show command to check that the quota rules are configured correctly.
- If you are working on a new policy, use the vserver modify command to assign the new policy to the SVM.
- Use the volume quota on command to initialize the quotas on each volume on the SVM.
You can monitor the initialization process in the following ways:
- Use the volume quota show -instance command to check for initialization errors, such as quota rules that failed to initialize.
- Use the volume quota report command to display a quota report so that you can ensure the enforced quotas match your expectations.