While it may sound like a fine idea to allow users to have all the storage space they desire, this practice can start increasing the total cost of ownership (TCO) of your computer systems. In large distributed environments in particular it may become important to manage the amount of disk storage users can utilize.
When you must manage storage growth in distributed environments, you use disk quotas. Disk quotas allow you to allocate disk space usage based on the files and folders that users 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 and the amount that they have left against their quota.
After this lesson, you will be able to
Estimated lesson time: 20 minutes
Windows 2000 disk quotas track and control disk usage on a per-user, per-volume basis. Windows 2000 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 2.10 describes the characteristics of Windows 2000 Professional disk quotas.
Table 2.10 Disk Quota Characteristics and Descriptions
Characteristic | Description |
---|---|
Disk usage is based on file and folder ownership | Windows 2000 Professional calculates disk space . usage based on the files and folders that users 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 2000 charges the disk space for the file against the user's quota limit. |
Disk quotas do not use compression. | Windows 2000 Professional ignores compression when it calculates hard disk space usage. Usage totals are based on uncompressed file sizes, 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 to be 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 2000 Professional reports to applications for the volume is the amount of space remaining within the user's disk quota limit |
NOTE
Disk quotas can be applied only to Windows 2000 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 2000 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 2.11 and displayed in Figure 2.16.
Table 2.11 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 don't want to limit the amount of hard disk space for users. |
Limit Disk Space To | Configure the amount of disk space that users can have. |
Set Warning Level To | Configure the amount of disk space that users can fill before Windows 2000 logs an event indicating that a user is nearing his or her limit. |
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 2.16 The Quota tab of the Properties dialog box for a disk
You can enforce identical quota limits for all users as follows:
Windows 2000 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 by reading the status message to its right (see Figure 2.16).
Figure 2.17 The Quota Entries for Local Disk window
You can enforce different quota limits for one or more specific users, as follows:
You use the Quota Entries For window to monitor usage for all users who have copied, saved, or taken ownership of files and folders on the volume. Windows 2000 will scan the volume and monitor the amount of disk space that each user occupies. Use the Quota Entries For window to view the following:
The following are general guidelines for using disk quotas:
In this practice, you configure default quota management settings to limit the amount of data that 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. Finally, you turn off quota management for drive C.
NOTE
If you didn't install Windows 2000 Professional on drive C, substitute the NTFS partition on which you did install Windows 2000 Professional whenever drive C is referred to in this practice.
In this exercise, you configure the quota management settings for drive C to limit the data that users can store on the volume. You can then configure custom quota settings for a user account.
To configure default quota management settings
Windows 2000 displays the Local Disk (C:) Properties dialog box with the General tab active.
Notice that disk quotas are disabled by default.
What is the default disk space limit for new users?
Notice the default unit size is KB.
Windows 2000 displays the Disk Quota message box, warning you that the volume will be rescanned to update disk usage statistics if you enable quotas.
To configure quota management settings for a user
Windows 2000 displays the Quota Entries For Local Disk (C:) window.
Are any user accounts listed? Why or why not?
Answer
Windows 2000 displays the Select Users dialog box.
NOTE
If you didn't name your computer PRO1 or if your computer is part of a domain, select the appropriate computer or domain name.
The user name appears in the Name list at the bottom of the dialog box.
Windows 2000 displays the Add New Quota Entry dialog box.
What are the default settings for the user you just set a quota limit for?
Answer
To test quota management settings
Windows 2000 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 several files, however, Windows 2000 displays the Error Copying File Or Folder dialog box, indicating that there isn't enough room on the disk.
Why did you get this error message?
Answer
Notice that the Size On Disk value is slightly less than your quota limit of 20 MB.
In this exercise, you disable quota management settings for drive C.
Windows 2000 displays the Local Disk (C:) Properties dialog box with the General tab active.
Notice that all quota settings for drive C are no longer available.
Windows 2000 displays the Disk Quota message box, warning you that if you disable quotas, the volume will be rescanned if you enable them later.
In this lesson, you learned that you use disk quotas to allocate disk space usage. 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 and the amount that they have left against their quota. You also learned that Windows 2000 ignores compression when it calculates hard disk space usage and that you can apply disk quotas only to Windows 2000 NTFS volumes.
Windows 2000 disk quotas track and control disk usage on a per-user, per-volume basis. Windows 2000 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.