Modifying Quota Settings






Modifying Quota Settings

Problem

You want to modify an existing quota template or auto-template. Modifying these items can affect new quotas that are created as well as existing quotas that are already in effect.

Solution

Using graphical user interface

To modify an existing quota template, do the following:

  1. Open the File Server Management MMC snap-in. Navigate to File Server Management File Server Resource Manager Quota Management.

  2. To modify a quota template, double-click on Quota Templates. Right-click on the quota you want to modify and select Edit Template Properties. Modify the template as described in Recipe 9.7 and click OK.

  3. On the "Update Quotas Derived from Template" screen, select one of the following and click OK:


    Apply template only to derived quotas that match the original template

    This will apply the new template only to quota entries that haven't been customized or modified since the original template was applied.


    Apply template to all derived quotas

    This will apply the new template to all quota entries that were based on the original template. Any customizations that you've made will be lost.


    Do not apply template to derived quotas

    This will keep any existing quota entries unchanged.

To modify a quota entry, do the following:

  1. Open the File Server Management MMC snap-in. Navigate to File Server Management File Server Resource Manager Quota Management.

  2. To modify a quota, double-click on Quotas. Right-click on the quota you want to modify and select "Edit quota properties."

  3. Under "Auto apply quota properties" select the new quota template that should be applied from the drop-down box and click OK.

  4. On the Update Quotas Derived from Template screen, select one of the following and click OK:


    Apply quota only to derived quotas that match the original template

    This will apply the new quota only to quota entries that haven't been customized or modified since the original auto-quota was applied.


    Apply quota to all derived quotas

    This will apply the new template to all quota entries that were based on the original auto-quota. Any customizations that you've made will be lost.


    Do not apply quota to derived quotas

    This will keep any existing quota entries unchanged.

Using a command-line interface

The following command will modify a quota entry, changing the notification threshold from 90 percent to 80 percent:

	> dirquota Quota Modify /Path:D:\home\* /Modify-Threshold:90,80

Discussion

The major advantage of using disk quota templates and auto-quotas is automation: any time you make a change to the template or the auto-quota, this change will automatically apply to any new quotas that are derived from the template. However, the question remains of what do to with any existing quotas that have already been created, particularly if you've modified any of those quotas from the original template definition. When you modify a template definition, you have three choices regarding existing quota entries: you can modify only those entries that match the original template definition (i.e., only quota entries that haven't been modified in any way); you can choose to apply the new template settings to all quota entries that are taken from the template, losing any modifications you've made to existing entries; or you can choose to apply the template changes to only new entries, leaving any existing quota entries unchanged. Likewise, when you modify an auto-quota definition, you can choose to push those changes to all existing subfolders, to only those subfolders whose quota definitions haven't changed, or to apply the change to new subfolders only.

See Also

Recipe 9.7 for more on managing disk quota templates, Recipe 9.8 for more on defining disk quotas, and Recipe 9.9 for information on auto-quotas



 Python   SQL   Java   php   Perl 
 game development   web development   internet   *nix   graphics   hardware 
 telecommunications   C++ 
 Flash   Active Directory   Windows