Although each quota has a specific limit and type, you can define multiple notification thresholds as either a warning threshold or a limit threshold. Warning thresholds are considered to be any percentage of the limit that is less than 100 percent. Limit thresholds occur when the limit reached is 100 percent. For example, you could define warning thresholds that are triggered at 85 percent and 95 percent of the limit and a limit threshold that is triggered when 100 percent of the limit is reached.
Users who are approaching or have exceeded a limit can be automatically notified by email. The notification system also allows for notifying administrators by email, triggering incident reporting, running commands, and logging related events.
TABLE 4–6Disk quota templates
QUOTA TEMPLATE |
LIMIT |
QUOTA TYPE |
DESCRIPTION |
100 MB Limit |
100 MB |
Hard |
Sends warnings to users as the limit is approached and exceeded |
200 MB Limit Reports To User |
200 MB |
Hard |
Sends storage reports to the users who exceed the threshold |
200 MB Limit With 50 MB Extension |
200 MB |
Hard |
Uses the DIRQUOTA command to grant an automatic, one-time, 50-MB extension to users who exceed the quota limit |
250 MB Extended Limit |
250 MB |
Hard |
Meant to be used by those whose limit has been extended from 200 MB to 250 MB |
Monitor 200 GB Volume Usage |
200 MB |
Soft |
Monitors volume usage, and warns when the limit is approached and exceeded |
Monitor 500 MB Share |
500 MB |
Soft |
Monitors share usage, and warns when the limit is approached and exceeded |
Managing disk quota templates
You use disk quota templates to define quota properties, including the limit, quota type, and notification thresholds. In File Server Resource Manager, you can view the currently defined disk quota templates by expanding the Quota Management node, and then selecting Quota Templates. Table 4–6, shown earlier, provides a summary of the default disk quota templates. Table 4–7, which follows, shows variables that can be used for automatically generated messages and events.
TABLE 4–7Key variables available for disk quota messages and event logging
VARIABLE NAME |
DESCRIPTION |
[Admin Email] |
Inserts the email addresses of the administrators defined under the global options |
[File Screen Path] |
Inserts the local file path, such as C: \Data |
[File Screen Remote Path] |
Inserts the remote path, such as \\server\share |
[File Screen System Path] |
Inserts the canonical file path, such as \\?\VolumeGUID |
[Server Domain] |
Inserts the domain of the server on which the notification occurred |
[Server] |
Inserts the server on which the notification occurred |
[Source File Owner] |
Inserts the user name of the owner of the file/folder |
[Source File Owner Email] |
Inserts the email address of the owner of the file/folder |
[Source File Path] |
Inserts the source path of the file/folder |
You can modify existing disk quota templates by following these steps:
1.In File Server Resource Manager, expand the Quota Management node, and then select Quota Templates.
Currently defined disk quota templates are listed by name, limit, and quota type.
2.To modify disk quota template properties, double-tap or double-click the disk quota template name. This displays a related Properties dialog box, as shown in Figure 4–9.
3.On the Settings tab, you can set the template name, limit, and quota type. Current notification thresholds are listed. To modify an existing threshold, select it and then tap or click Edit. To define a new threshold, tap or click Add.
4.When you have finished modifying the quota template, tap or click OK to ave the changes.
FIGURE 4–9Use disk quota properties to configure the limit, quota type, and notification thresholds.
You can create a new disk quota template by following these steps:
1.In File Server Resource Manager, expand the Quota Management node, and then select Quota Templates.
2.On the Action menu or in the Actions pane, tap or click Create Quota Template to display the Create Quota Template dialog box.
3.On the Settings tab, set the template name, limit, and quota type. You should create a limit threshold first, and then create additional warning thresholds as necessary. In the Limit list, enter the limit value and specify whether you are setting the limit in kilobytes, megabytes, gigabytes, or terabytes.
4.Tap or click Add to add warning thresholds. In the Add Threshold dialog box, enter a percentage value under Generate Notifications When Usage Reaches (%). Warning thresholds are considered to be any percentage of the limit that is less than 100 percent. Limit thresholds occur when the limit reached is 100 percent.
5.On the E-Mail Message tab, you can configure notification as follows:
■To notify an administrator when the disk quota is triggered, select the Send E-Mail To The Following Administrators check box, and then enter the email address or addresses to use. Be sure to separate multiple email addresses with a semicolon. Use the value [Admin Email] to specify the default administrator as configured previously under the global options.
■To notify users, select the Send E-Mail To The User Who Exceeded The Threshold check box.
■Specify the contents of the notification message in the Subject and Message Body text boxes. Table 4–7 lists available variables and their meanings.
6.On the Event Log tab, you can configure event logging. Select the Send Warning To Event Log check box to enable logging, and then specify the text of the log entry in the Log Entry text box. Table 4–7 lists available variables and their meanings.
7.On the Command tab, you can optionally specify a command or script to run, arguments to pass in to the command or script, and a working directory. The default security context for commands is Local Service, which grants standard user access to local resources but denies access to network resources. If the command requires access to both local and network resources, you can run the command as Network Service.
8.On the Report tab, select the Generate Reports check box to enable incident reporting, and then select the types of reports to generate. Incident reports are stored under %SystemDrive%\StorageReports\Incident by default, and they can also be sent to designated administrators. Use the value [Admin Email ] to specify the default administrator as configured previously under the global options.
9.Repeat steps 5–7 to define additional notification thresholds.
10.Tap or click OK when you have finished creating the template.
Creating Resource Manager disk quotas
You use disk quotas to designate file paths that have specific usage limits. In File Server Resource Manager, you can view current disk quotas by expanding the Quota Management node, and then selecting Quotas. Before you define disk quotas, you should specify screening file groups and disk quota templates that you will use, as discussed in “Managing disk quota templates” earlier in this chapter.
Читать дальше