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
Guidelines for Setting Up UFS Quotas
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
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)
You can change quotas to adjust the amount of disk space or the number of inodes that users can consume. You can also remove quotas, for individual users or from entire file systems, as needed.
The following table describes the commands that you use to change quotas or to remove quotas.
Table 7-3 Commands for Changing and Removing UFS Quotas
|
By default, users can exceed the soft time limits for their UFS quotas for one week. So, after a week of repeated violations of the soft time limits of either disk space quotas or inode quotas, the system prevents users from using any more inodes or disk blocks.
You can change the length of time that users can exceed their disk space quotas or inode quotas by using the edquota command.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
# edquota -t
where the -t option specifies the editing of the soft time limits for each file system.
Note - This procedure does not affect current quota violators.
Example 7-8 Changing the Soft Limit Default
The following example shows the contents of the temporary file opened by the edquota command on a system where /export/home is the only mounted file system with quotas. The default value, 0, means that the default time limit of one week is used.
fs /export/home blocks time limit = 0 (default), files time limit = 0 (default)
The following example shows the same temporary file after the time limit for exceeding the blocks quota has been changed to 2 weeks. Also, the time limit for exceeding the number of files has been changed to 16 days.
fs /export/home blocks time limit = 2 weeks, files time limit = 16 days
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
# edquota username
where username specifies the user name whose quota you want to change.
![]() | Caution - You can specify multiple users as arguments to the edquota command. However, the user that this information belongs to, is not displayed. To avoid confusion, specify only one user name. |
# quota -v username
Displays user UFS quota information on all mounted file systems with quotas enabled.
Specifies the user name whose quota you want to check.
Example 7-9 Changing UFS Quotas for a User
The following example shows the contents of the temporary file opened by the edquota command. This temporary file is opened on a system where /files is the only mounted file system containing a quotas file in the file system's root directory.
fs /files blocks (soft = 0, hard = 0) inodes (soft = 0, hard = 0)
The following output shows the same temporary file after quotas have been changed.
fs /files blocks (soft = 0, hard = 500) inodes (soft = 0, hard = 100)
Example 7-10 Verifying That Hard UFS Quotas Have Been Changed
The following example shows how to verify that the hard quotas for user smith have been changed to 500 1-Kbyte blocks, and 100 inodes.
# quota -v smith Disk quotas for smith (uid 12): Filesystem usage quota limit timeleft files quota limit timeleft /files 1 0 500 1 0 100
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
# edquota username
Where username specifies the user name whose quota you want to disable.
![]() | Caution - You can specify multiple users as arguments to the edquota command. However, the user that this information belongs to, is not displayed. To avoid confusion, specify only one user name. |
Note - Ensure that you change the values to zero. Do not delete the line from the text file.
# quota -v username
Displays user UFS quota information on all mounted file systems with quotas enabled.
Specifies the user name (UID) whose UFS quota you want to check.
Example 7-11 Disabling UFS Quotas for a User
The following example shows the contents of the temporary file opened by the edquota command on a system where /files is the only mounted file system that contains a quotas file in the file system's root directory.
fs /files blocks (soft = 50, hard = 60) inodes (soft = 90, hard = 100)
The following example shows the same temporary file after UFS quotas have been disabled.
fs /files blocks (soft = 0, hard = 0) inodes (soft = 0, hard = 0)
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
# quotaoff [-v] -a filesystem ...
Displays a message from each file system when UFS quotas are turned off.
Turns off UFS quotas for all file systems.
Turns off UFS quotas for one or more file systems that you specify. More than one file system is specified by separating each file system name with a space.
Example 7-12 Turning Off Quotas
The following example shows how to turn off the quotas for the /export/home file system.
# quotaoff -v /export/home /export/home: quotas turned off