Skip to main content

Set up quotas on an SVM

Contributors netapp-ahibbard netapp-dbagwell dmp-netapp netapp-aherbin

You can set up quotas on a new SVM to management and monitor resource utilization.

About this task

At a high level, there several steps involved when configuring quotas including:

  1. Create a quota policy

  2. Add the quota rules to the policy

  3. Assign the policy to the SVM

  4. Initialize the quotas on each FlexVol volume on the SVM

Steps
  1. Enter the command vserver show -instance 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 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.

  2. 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

  3. Use the volume quota policy rule show command to check that the quota rules are configured correctly.

  4. If you are working on a new policy, use the vserver modify command to assign the new policy to the SVM.

  5. 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:

    • When you use the volume quota on command, you can add the -foreground parameter 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 show command.

    • You can use the volume quota show command to monitor the status of the quota initialization.

  6. Use the volume quota show -instance command to check for initialization errors, such as quota rules that failed to initialize.

  7. Use the volume quota report command to display a quota report so that you can ensure the enforced quotas match your expectations.