mmdefquotaon command
Activates default quota limit usage.
Synopsis
mmdefquotaon [-u] [-g] [-j] [-v] [-d] {Device [Device... ] | -a}
or
mmdefquotaon [-u] [-g] [-v] [-d] {Device:Fileset ... | -a}
Availability
Available on all IBM Spectrum Scale™ editions.
Description
The mmdefquotaon command activates default quota limits for file systems and filesets. If default quota limits are not applied, new users, groups, or filesets will have a quota limit of 0, indicating no limit.
To use default quotas, the -Q yes option must be in effect for the file system. To use default quotas at the fileset level, the --perfileset-quota option must also be in effect. The -Q yes and --perfileset-quota options are specified when creating a file system with the mmcrfs command or changing file system attributes with the mmchfs command. Use the mmlsfs command to display the current settings of these quota options.
- -u
- -j
- -g
If the -a option is not used, Device must be the last parameter specified.
Default quotas are established for new users, groups of users or filesets by issuing the mmdefedquota command. Under the -d option, all users without an explicitly set quota limit will have a default quota limit assigned.
Parameters
- Device
- The device name of the file system to have default quota values
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.
- Fileset
- The name of a fileset in the file system to have default quota values activated.
Options
- -a
- Activates default quotas for all GPFS™ file systems in the cluster. When used in combination with the -g option, only group quotas are activated. When used in combination with the -u or -j options, only user or fileset quotas, respectively, are activated.
- -d
- Assigns default quota limits to existing users, groups, or filesets
when the mmdefedquota command is issued.
When --perfileset-quota is not in effect for the file system, this option will only affect existing users, groups, or filesets with no established quota limits.
When --perfileset-quota is in effect for the file system, this option will affect existing users, groups, or filesets with no established quota limits, and it will also change existing users or groups that refer to default quotas at the file system level into users or groups that refer to fileset-level default quota. For more information about default quota priorities, see Default quotas.
If this option is not chosen, existing quota entries remain in effect and are not governed by the default quota rules.
- -g
- Specifies that default quotas for groups are to be activated.
- -j
- Specifies that default quotas for filesets are to be activated.
- -u
- Specifies that default quotas for users are to be activated.
- -v
- Prints a message for each file system or fileset in which default quotas are activated.
Exit status
- 0
- Successful completion.
- nonzero
- A failure has occurred.
Security
You must have root authority to run the mmdefquotaon command.
The node on which you enter the command must be able to execute remote shell commands on any other administration node in the cluster. It must be able to do so 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 mmdefquotaon command is issued.
Examples
- To activate default user quotas on file system fs0,
issue this command:
To confirm the change, issue this command:mmdefquotaon -u fs0
The system displays information similar to:mmlsfs fs0 -Q
flag value description ---- -------------- ---------------------------------------- -Q user Quotas enforced user Default quotas enabled
- To activate default group quotas on all file systems in the cluster,
issue this command:
To confirm the change, individually for each file system, issue this command:mmdefquotaon -g -a
The system displays information similar to:mmlsfs fs1 -Q
flag value description ---- -------------- ----------------------------- -Q group Quotas enforced group Default quotas enabled
- To activate user, group, and fileset default quotas on file system fs2,
issue this command:
To confirm the change, issue this command:mmdefquotaon fs2
The system displays information similar to:mmlsfs fs2 -Q
flag value description ---- -------------- -------------------------- -Q user;group;fileset Quotas enforced user;group;fileset Default quotas enabled
- To activate user default quota for fileset fset1 on
file system gpfs1, issue this command:
To confirm the change, issue this command:mmdefquotaon -d -u gpfs1:fset1
The system displays information similar to:mmlsquota -d gpfs1:fset1
In this example, notice the entryType for user quota displays default on. To also activate group default quota for fset1 on file system gpfs1, issue this command:Default Block Limits(KB) | Default File Limits Filesystem Fileset type quota limit | quota limit entryType gpfs1 fset1 USR 0 31457280 | 0 0 default on gpfs1 fset1 GRP 0 0 | 0 0 default off
To confirm the change, issue this command:mmdefquotaon -d -g gpfs1:fset1
The system displays information similar to :mmlsquota -d gpfs1:fset1
In this example, notice that the entryType for group quota also displays default on now.Default Block Limits(KB) | Default File Limits Filesystem Fileset type quota limit | quota limit entryType gpfs1 fset1 USR 0 31457280 | 0 0 default on gpfs1 fset1 GRP 0 0 | 0 0 default on