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
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
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)
|
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
# touch quotas
# chmod 600 quotas
Example 7-1 Configuring File Systems for UFS Quotas
The following /etc/vfstab example shows that the /export/home directory from the system pluto is mounted as an NFS file system on the local system. You can tell that quotas are enabled by the rq entry under the mount options column.
# device device mount FS fsck mount mount # to mount to fsck point type pass at boot options # pluto:/export/home - /export/home nfs - yes rq
The following example line from the /etc/vfstab file shows that the local /work directory is mounted with quotas enabled, signified by the rq entry under the mount options column.
#device device mount FS fsck mount mount #to mount to fsck point type pass at boot options #/dev/dsk/c0t4d0s0 /dev/rdsk/c0t4d0s0 /work ufs 3 yes rq
See Also
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 is the user for whom you want to set up quotas.
# quota -v username
Displays the user's quota information on all mounted file systems where quotas exist.
Specifies the user name to view quota limits.
Example 7-2 Setting Up UFS Quotas for a User
The following example shows the contents of the temporary file opened by edquota on a system where /files is the only mounted file system that contains a quotas file in the root directory.
fs /files blocks (soft = 0, hard = 0) inodes (soft = 0, hard = 0)
The following example shows the same line in the temporary file after quotas have been set up.
fs /files blocks (soft = 50, hard = 60) inodes (soft = 90, hard = 100)
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
# edquota -p prototype-user username ...
Is the user name of the account for which you have set up quotas.
Specifies one or more user names of additional accounts. More than one user name is specified by separating each user name with a space.
Example 7-3 Setting Up Prototype UFS Quotas for Multiple Users
The following example shows how to apply the quotas established for user bob to users mary and john.
# edquota -p bob mary john
The quotacheck command is run automatically when a system is rebooted. You generally do not have to run the quotacheck command on an empty file system with quotas. However, if you are setting up quotas on a file system with existing files, you need to run the quotacheck command to synchronize the quota database with the files or inodes that already exist in the file system.
Also, keep in mind that running the quotacheck command on large file systems can be time-consuming.
Note - To ensure accurate disk data, the file systems being checked should be quiescent when you manually run the quotacheck command.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
# quotacheck [-va] filesystem
(Optional) Identifies the disk quotas for each user on a particular file system.
Checks all file systems with an rq entry in the /etc/vfstab file.
Specifies the file system to check.
See the quotacheck(1M) man page for more information.
Example 7-4 Checking UFS Quota Consistency
The following example shows how to check quotas for the /export/home file system on the /dev/rdsk/c0t0d0s7 slice. The /export/home file system is the only file system with an rq entry in the /etc/vfstab file.
# quotacheck -va *** Checking quotas for /dev/rdsk/c0t0d0s7 (/export/home)
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
# quotaon [-v] -a filesystem ...
Displays a message for each file system after quotas are turned on.
Turns on quotas for all file systems with an rq entry in the /etc/vfstab file.
Turns on 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-5 Turning On UFS Quotas
The following example shows how to turn quotas on for the file systems on the /dev/dsk/c0t4d0s7 and /dev/dsk/c0t3d0s7 slices.
# quotaon -v /dev/dsk/c0t4d0s7 /dev/dsk/c0t3d0s7 /dev/dsk/c0t4d0s7: quotas turned on /dev/dsk/c0t3d0s7: quotas turned on