Explicitly establishing and changing quotas

Use the mmedquota command to explicitly establish or change file system quota limits for users, groups of users, or filesets.

When setting quota limits for a file system, replication within the file system should be considered. See Listing quotas.

If ignoreReplicationForQuota is enabled, the quota commands ignore data replication factor.

The mmedquota command opens a session using your default editor, and prompts you for soft and hard limits for blocks and inodes. For example, to set user quotas for user jesmith, enter:
mmedquota -u jesmith
The system displays information in your default editor similar to:
*** Edit quota limits for USR jesmith:
NOTE: block limits will be rounded up to the next multiple block size.
      block units may be: K, M, G, T or P, inode units may be: K, M or G.
gpfs0: blocks in use: 24576K, limits (soft = 0K, hard = 0K)
        inodes in use: 0, limits (soft = 0K, hard = 0K)
Note: A quota limit of zero indicates that no quota limits are established.

The current (in use) block and inode usage is for display only, and 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 an invalid value is specified, GPFS generates an error message. If this occurs, reenter the mmedquota command. If the scope of quota limit enforcement is the entire file system, mmedquota lists all instances of the same user (for example, jesmith) on different GPFS file systems. If the quota enforcement is on a per-fileset basis, mmedquota lists all instances of the same user on different filesets on different GPFS file systems.

You might find it helpful to maintain a quota prototype, a set of limits that you can apply by name to any user, group, or fileset without entering the individual values manually. This makes it easy to set the same limits for all. The mmedquota command includes the -p option for naming a prototypical user, group, or fileset on which limits are to be based. The -p flag can be used only to propagate quotas from filesets within the same file system.

For example, to set group quotas for all users in a group that is named blueteam to the prototypical values established for prototeam, issue:
mmedquota -g -p prototeam blueteam

You can also reestablish default quotas for a specified user, group of users, or fileset when you use the -d option on the mmedquota command.

Note: You can use the mmsetquota command as an alternative to the mmedquota command.

For complete usage information, see mmedquota command and mmsetquota command.