Skip Navigation Links | |
Exit Print View | |
System Administration Guide: Advanced Administration Oracle Solaris 10 8/11 Information Library |
1. Managing Terminals and Modems (Overview)
2. Setting Up Terminals and Modems (Tasks)
3. Managing Serial Ports With the Service Access Facility (Tasks)
4. Managing System Resources (Overview)
5. Displaying and Changing System Information (Tasks)
7. Managing UFS Quotas (Tasks)
Setting Soft Limits and Hard Limits for UFS Quotas
The Difference Between Disk Block and File Limits
Setting Up UFS Quotas (Task Map)
How to Configure File Systems for UFS Quotas
How to Set Up UFS Quotas for a User
How to Set Up UFS Quotas for Multiple Users
How to Check UFS Quota Consistency
Maintaining UFS Quotas (Task Map)
How to Check for Exceeded UFS Quotas
How to Check UFS Quotas on a File System
Changing and Removing UFS Quotas
How to Change the Soft Limit Default
How to Change UFS Quotas for a User
How to Disable UFS Quotas for a User
8. Scheduling System Tasks (Tasks)
9. Managing System Accounting (Tasks)
10. System Accounting (Reference)
11. Managing System Performance (Overview)
12. Managing System Processes (Tasks)
13. Monitoring System Performance (Tasks)
14. Troubleshooting Software Problems (Overview)
16. Managing Core Files (Tasks)
17. Managing System Crash Information (Tasks)
18. Troubleshooting Miscellaneous Software Problems (Tasks)
19. Troubleshooting File Access Problems (Tasks)
20. Resolving UFS File System Inconsistencies (Tasks)
Setting up quotas involves these general steps:
Ensuring that quotas are enforced each time the system is rebooted by adding a quota option to the /etc/vfstab file entries. Also, creating a quotas file in the top-level directory of the file system.
After you create a quota for one use, copying the quota as a prototype to set up other user quotas.
Before you turn quotas on, checking the consistency of the proposed quotas with the current disk usage to make sure that there are no conflicts.
Turning on the quotas on for one or more file systems.
For specific information about these procedures, see Setting Up UFS Quotas (Task Map).
The following table describes the commands that you use to set up disk quotas.
Table 7-1 Commands for Setting Up UFS Quotas
|
Before you set up UFS quotas, you need to determine how much disk space and how many inodes to allocate to each user. If you want to ensure that the total file system space is never exceeded, you can divide the total size of the file system between the number of users. For example, if three users share a 100-Mbyte slice and have equal disk space needs, you could allocate 33 Mbytes to each user.
In environments where not all users are likely to push their limits, you might want to set individual quotas so that they add up to more than the total size of the file system. For example, if three users share a 100-Mbyte slice, you could allocate 40 Mbytes to each user.
When you have established a quota for one user by using the edquota command, you can use this quota as a prototype to set the same quota for other users on the same file system.
Before you turn on the quotas, do the following:
First, configure the UFS file systems for the quotas.
Establish quotas for each user, and run the quotacheck command to check for consistency between current disk usage and quota files.
Run the quotacheck command periodically if systems are rebooted infrequently.
The quotas you set up with the edquota command are not enforced until you turn them on by using the quotaon command. If you have properly configured the quota files, the quotas are turned on automatically each time a system is rebooted and the file system is mounted.