mmdefedquota - Sets default quota limits to a file system.
Synopsis
mmdefedquota {-u | -g} Device
Description
Use the mmdefedquota command to set or change default quota limits for new users and groups of a file system. Default quota limits for a file system may be set or changed only if the file system was created with the -Q yes option on the mmcrfs command and default quotas have been activated by issuing the mmdefquotaon command.
mmdefedquota displays the current values for these limits, if any, and prompts you to enter new values using your default editor:
Displayed in KB, but may be specified using k, K, m, or M. If no suffix is provided, the number is assumed to be in bytes.
Displayed in KB, but may be specified using k, K, m, or M. If no suffix is provided, the number is assumed to be in bytes.
The mmdefedquota command waits for the edit window to be closed before checking and applying new values. If an invalid entry is made, you must reissue the command and enter the correct values.
Parameters
File system names need not be fully qualified. fs0 is just as acceptable as /dev/fs0.
Options
Exit status
Security
You must have root authority to run the mmdefedquota command.
You must specify either the -u or the -g option.
GPFS must be running on the node from which the mmdefedquota command is issued.
In an SP environment, verify the authentication method set for SP security services:
For further information, see the latest IBM Parallel System Support Programs for AIX: Administration Guide, IBM Parallel System Support Programs for AIX: Command and Technical Reference, and RS/6000: Planning Volume 2, Control Workstation and Software Environment manuals at www.rs6000.ibm.com/resource/aix_resource/sp_books/pssp. Search for information on sysctl.
Examples
To set default quotas for a new user of the file system fs0, enter:
mmdefedquota -u fs0
The system displays information in your default editor similar to:
*** Edit default quota limits for users: NOTE: block limits will be rounded up to the next multiple of the block size. fs0: blocks in use: 0K, limits (soft = 2500 , hard = 10M) inodes in use: 0, limits (soft = 100, hard = 1000)
To confirm the change, enter:
mmlsquota -d -u
The system displays information similar to:
Block Limits | File Limits Filesystem type KB quota limit in_doubt grace | files quota limit in_doubt grace fs0 USR 0K 2500 10M 0 none | 0 100 1000 0 none fs1 USR no default limits fs2 USR no default limits
See also
Location
/usr/lpp/mmfs/bin