mmquotaon command
Activates quota limit checking.
Synopsis
mmquotaon [-u] [-g] [-j] [-v] {Device [Device...] | -a}
Availability
Available on all IBM Spectrum Scale editions.
Description
The mmquotaon command enables quota limit checking by GPFS.
If none of: -u, -j or -g is specified, the mmquotaon command activates quota limit checking for users, groups, and filesets.
If the -a option is not used, Device must be the last parameter specified.
After quota limit checking has been activated by issuing the mmquotaon command, issue the mmcheckquota command to count inode and space usage.
Parameters
- Device [Device...]
- The device name of the file system to have quota limit checking
activated.
If more than one file system is listed, the names must be delimited by a space. File system names need not be fully-qualified. fs0 is just as acceptable as /dev/fs0.
Options
- -a
- Activates quota limit checking for all of the GPFS file systems in the cluster. When used in combination with the -g option, only group quota limit checking is activated. When used in combination with the -u or -j option, only user or fileset quota limit checking, respectively, is activated.
- -g
- Specifies that only group quota limit checking is to be activated.
- -j
- Specifies that only fileset quota checking is to be activated.
- -u
- Specifies that only user quota limit checking is to be activated.
- -v
- Prints a message for each file system in which quota limit checking is activated.
Exit status
- 0
- Successful completion.
- nonzero
- A failure has occurred.
Security
You must have root authority to run the mmquotaon command.
The node on which the command is issued must be able to execute remote shell commands on any other node in the cluster without the use of a password and without producing any extraneous messages. For more information, see Requirements for administering a GPFS file system.
GPFS must be running on the node from which the mmquotaon command is issued.
Examples
- To activate user quotas on file system fs0,
issue this command:
To confirm the change, issue this command:mmquotaon -u fs0
The system displays information similar to:mmlsfs fs0 -Q
flag value description ---- -------------- ---------------- -Q user Quotas enforced
- To activate group quota limit checking on all file systems, issue
this command:
To confirm the change, individually for each file system, issue this command:mmquotaon -g -a
The system displays information similar to:mmlsfs fs1 -Q
flag value description ---- -------------- ---------------- -Q group Quotas enforced
- To activate user, group, and fileset quota limit checking on
file system fs2, issue this command:
To confirm the change, issue this command:mmquotaon fs2
The system displays information similar to:mmlsfs fs2 -Q
flag value description ---- -------------- --------------- -Q user;group;fileset Quotas enforced
See also
Location
/usr/lpp/mmfs/bin