You use disk quotas to manage storage growth in distributed environments. Disk quotas allow you to allocate disk space to users based on the files and folders that they own. You can set disk quotas, quota thresholds, and quota limits for all users and for individual users. You can also monitor the amount of hard disk space that users have used and the amount that they have left against their quota.
Windows XP Professional disk quotas track and control disk usage on a per-user, per-volume basis. Windows XP Professional tracks disk quotas for each volume, even if the volumes are on the same hard disk. Because quotas are tracked on a per-user basis, every user's disk space is tracked regardless of the folder in which the user stores files. Table 14.2 describes the characteristics of Windows XP Professional disk quotas.
Table 14.2 Disk Quota Characteristics and Descriptions
Characteristic | Description |
---|---|
Disk usage is basedon file and folder ownership. | Windows XP Professional calculates disk space usage for users based on the files and folders that they own. When a user copies or saves a new file to an NTFS volume or takes ownership of a file on an NTFS volume, Windows XP Professional charges the disk space for the file against the user's quota limit. |
Disk quotas do not use compression. | Windows XP Professional ignores compression when it calculates hard disk space usage. Users are charged for each uncompressed byte, regardless of how much hard disk space is actually used. This is done partially because file compression produces different degrees of compression for different types of files. Different uncompressed file types that are the same size might end up being very different sizes when they are compressed. |
Free space for applications is based on quota limit. | When you enable disk quotas, the free space that Windows XP Professional reports to applications for the volume is the amount of space remaining within the user's disk quota limit. |
Disk quotas can only be applied to Windows XP Professional NTFS volumes.
You use disk quotas to monitor and control hard disk space usage. System administrators can do the following:
After you enable disk quotas for a volume, Windows XP Professional collects disk usage data for all users who own files and folders on the volume. This allows you to monitor volume usage on a per-user basis. By default, only members of the Administrators group can view and change quota settings. However, you can allow users to view quota settings.
You can enable disk quotas and enforce disk quota warnings and limits for all users or for individual users.
If you want to enable disk quotas, open the Properties dialog box for a disk, click the Quota tab, and configure the options that are described in Table 14.3 and displayed in Figure 14.6.
Table 14.3 Quota Tab Options
Option | Description |
---|---|
Enable Quota Management | Select this check box to enable disk quota management. |
Deny Disk Space To Users Exceeding Quota Limit | Select this check box so that when users exceed their hard disk space allocation, they receive an "out of disk space" message and cannot write to the volume. |
Do Not Limit Disk Usage | Click this option when you do not want to limit the amount of hard disk space for users. |
Limit Disk Space To | Configure the amount of disk space that users can use. |
Set Warning Level To | Configure the amount of disk space that users can fill before Windows XP Professional logs an event, indicating that a user is nearing his or her limit. |
Log Event When A User Exceeds Their Quota Limit | Select this option if you want Windows XP Professional to log an event in the Security log every time a user exceeds his or her quota limit. |
Log Event When A User Exceeds Their Warning Level | Select this option if you want Windows XP Professional to log an event in the Security log every time a user exceeds the warning level. |
Quota Entries | Click this button to open the Quota Entries For dialog box, where you can add a new entry, delete an entry, and view the per-user quota information. |
Figure 14.6 The Quota tab of the Properties dialog box for a disk
You can enforce identical quota limits for all users as follows:
Windows XP Professional will monitor usage and will not allow users to create files or folders on the volume when they exceed the limit.
You can determine the status of disk quotas in the Properties dialog box for a disk by checking the traffic light icon and reading the status message to its right (see Figure 14.6). The color shown on the traffic light icon indicates the status of disk quotas as follows:
You can enforce different quota limits for one or more specific users, as follows:
Figure 14.7 The Quota Entries For dialog box
You use the Quota Entries For dialog box (see Figure 14.7) to monitor usage for all users who have copied, saved, or taken ownership of files and folders on the volume. Windows XP Professional scans the volume and monitors the amount of disk space in use by each user. Use the Quota Entries For dialog box to view the following:
Use the following guidelines for using disk quotas:
In this practice you configure default quota management settings to limit the amount of data users can store on drive C (their hard disk drive). Next, you configure a custom quota setting for a user account. You increase the amount of data the user can store on drive C to 20 MB with a warning level set to 16 MB. Finally, you turn off quota management for drive C.
If you did not install Windows XP Professional on drive C, substitute the NTFS partition on which you did install Windows XP Professional whenever drive C is referred to in the practice.
Run the DiskQuotas file in the Demos folder on the CD-ROM accompanying this book for a demonstration of configuring disk management and disabling disk quotas.
In this exercise, you configure the quota management settings for drive C to limit the data that users can store on the volume. You then configure custom quota settings for a user account.
Windows XP Professional displays the Local Disk (C:) Properties dialog box with the General tab active.
Notice that disk quotas are disabled by default.
Notice that by default, the Do Not Limit Disk Usage option is selected.
What is the default disk space limit for new users?
If you wanted to place the same quota limit on all users of this computer, you would use the Limit Disk Usage To option.
Windows XP Professional displays the Disk Quota dialog box, telling you that you should enable the quota system only if you are going to use quotas on this disk volume and warning you that the volume will be rescanned to update disk usage statistics if you enable quotas.
Windows XP Professional displays the Quota Entries For Local Disk (C:) dialog box.
Are any user accounts listed? Why or why not?
Windows XP Professional displays the Select Users dialog box.
If you did not name your computer Pro1 or if your computer is part of a domain, select the appropriate computer or domain name.
Windows XP Professional displays the Add New Quota Entry dialog box.
What are the default settings for the user you just set a quota limit for?
Windows XP Professional begins copying files from the i386 folder on the CD-ROM to a new i386 folder in the User5 folder on drive C. After copying some files, Windows XP Professional displays the Error Copying File Or Folder dialog box indicating that there is not enough room on the disk.
Why did you get this error message?
Notice that the Size On Disk value is slightly less than your quota limit of 10 MB.
In this exercise, you disable quota management settings for drive C.
Windows XP Professional displays the Local Disk (C:) Properties dialog box with the General tab active.
All quota settings for drive C are no longer available.
Windows XP Professional displays the Disk Quota dialog box, warning you that if you disable quotas, the volume will be rescanned if you enable them later.
The following questions will help you determine whether you have learned enough to move on to the next lesson. If you have difficulty answering these questions, review the material in this lesson before beginning the next lesson. The answers are in Appendix A, "Questions and Answers."