Skip Navigation Links | |
Exit Print View | |
Sun QFS File System 5.3 Configuration and Administration Guide Sun QFS and Sun Storage Archive Manager 5.3 Information Library |
2. About the Master Configuration File
4. Configuring the File System
5. Configuring a Shared File System
6. Administering File System Quotas
Types of Quotas, Quota Files, and Quota Records
Guidelines for Setting Up Quotas
How to Configure a New File System to Use Quotas
How to Configure an Existing File System to Use Quotas
How to Assign Admin Set IDs to Directories and Files
How to Enable or Change Limits for Users, Groups, or Admin Sets Using an Existing Quota File
How to Change the Grace Period
Changing the Grace Period Expiration
Inhibiting Additional File System Resource Allocations
How to Inhibit Additional File System Resource Allocations
How to Remove the Quotas for a File System
7. Advanced File System Topics
9. Configuring WORM-FS File Systems
11. Using QFS File Systems with SANergy (SAN-QFS)
After you have enabled disk and inode quotas, you can check these quotas. The samquota command is an administrator command that generates a quota report on an individual user, group, or admin set. The squota command is a user command that enables users to check their own individual quotas. You must become superuser to use the samquota command.
The file argument specifies a file system for the specified user, group, or admin set. The file argument can also be the name of any file in the file system. Typically, file is the name of the root directory of the file system.
To display user quotas in effect for mounted file system, using the following command:
# samquota -U user-ID [ file ]
For userID, specify the numeric user ID or user name of the account whose quotas are being examined.
For file, specify a file system for the specified user, group, or admin set. The file argument can also be the name of any file in the file system. Typically, file is the name of the root directory of the file system.
The following example retrieves user hm1259 quota statistics in the sam6 file system on the server and displays output indicating that this user is not exceeding the quota.
# samquota -U hm1259 /sam6 Online Limits Total Limits Type ID In Use Soft Hard In Use Soft Hard /sam6 Files user 130959 13 100 200 13 100 200 Blocks user 130959 152 200 3000 272 1000 3000 Grace period 0s 0s
The following example retrieves user memil quota statistics in all mounted Sun QFS file systems and displays output indicating that this user is exceeding the quota.
The output format for the command is the same for user, groups and admin sets. Note the plus sign (+) in the Blocks row of the output. If the soft quota limit is also being exceeded, a plus sign is also displayed in the Files row.
# samquota -U memil Online Limits Total Limits Type ID In Use Soft Hard In Use Soft Hard /sam6 Files user 130967 4 500 750 4 500 750 Blocks user 130967 41016+ 40000 50000 41016 50000 50000 Grace period 1w 0s ---> Warning: online soft limits to be enforced in 6d23h36m45s /sam7 Files user 130967 4 500 750 4 500 750 Blocks user 130967 4106 40000 50000 4106 50000 50000 Grace period 1w 0s
If a hard limit has been exceeded, or if the soft limit has been exceeded and the grace period has expired, the In Use field is marked with an asterisk character (*). If a quota record's limits are inconsistent (for example, if a soft limit is larger than a hard limit), an exclamation point is used to mark the field, and all allocation operations are prevented.
To display group quotas, use the following command:
# samquota -G group-ID [ file ]
For group-ID, specify the numeric group ID or the group name for the group of users whose quotas are being examined.
For example, the following command retrieves user quota statistics for the group turtles in the qfs3 file system:
# samquota -G turtles /qfs3
To display group quotas, use the following command:
# samquota -G group-ID [ file ]
For group-ID, specify the numeric group ID or the group name for the group of users whose quotas are being examined. For file, specify a file system for the specified group. The file argument can also be the name of any file in the file system. Typically, file is the name of the root directory of the file system.
For example, the following command retrieves user quota statistics for the group turtles in the qfs3 file system:
# samquota -G turtles /qfs3
Display admin set quotas, using the following command:
# samquota -A adminsetID [ file ]
For adminsetID, specify the numeric admin set ID of the administrator set whose quotas are being examined.
For example, the following command retrieves user quota statistics for the admin set 457 in all mounted file systems:
# samquota -A 457