IBM Books

IBM General Parallel File System for AIX: Administration and Programming Reference

Establishing and changing quotas

Use the mmedquota command to explicitly establish or change file system quota limits for users or groups of users. When setting quota limits for a file system, replication within the file system should be considered. GPFS quota management takes replication into account when reporting on and determining if quota limits have been exceeded for both block and file usage. In a file system that has either type of replication set to a value of two, the values reported on by both the mmlsquota command and the mmrepquota command and the values used to determine if quota limits have been exceeded will be double the value reported by the ls command.

The mmedquota command opens a session using your default editor, and prompts you for soft and hard limits for inodes and blocks. For example, to set user quotas for user jesmith, enter:

mmedquota -u jesmith

A prompt in your default editor appears:

*** Edit quota limits for USR jesmith:
NOTE: block limits will be rounded up to the next multiple block size.
gpfs0: blocks in use (in KB): 24576, limits (soft = 0, hard = 0)
inodes in use: 3, limits (soft = 0, hard = 0)
Note:
A zero quota limit indicates no quota limits have been established.

Current (in use) inode and block usage is for display only; it cannot be changed. When establishing a new quota, zeros appear as limits. Replace the zeros, or old values if you are changing existing limits with values based on the user's needs and the resources available. When you close the editor, GPFS checks the values and applies them. If a value which is not valid is specified, GPFS generates an error message. If this occurs, reenter the mmedquota command.

For example, to set group quotas for all users in a group named blueteam to the prototypical values established for prototeam, issue:

mmedquota -g -p prototeam blueteam

When using the -p option, only a group prototype can be specified for group quotas, and only a user prototype can be specified for user quotas.

When using the -d option default quota values are reestablished for the specified user or group (see Default quotas).

See the mmedquota Command for complete usage information.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]