mmdefquotaoff command

Deactivates default quota limit usage.

Synopsis

mmdefquotaoff [-u] [-g] [-j] [-v] [-d] {Device [Device...] | -a} 

or

mmdefquotaoff [-u] [-g] [-v] [-d] {Device:Fileset ... | -a}

Availability

Available on all IBM Spectrum Scale™ editions.

Description

The mmdefquotaoff command deactivates default quota limits for file systems and filesets. If default quota limits are deactivated, new users, groups, or filesets will then have a default quota limit of 0, indicating no limit.

If none of the following options are specified, the mmdefquotaoff command deactivates all default quotas:
  • -u
  • -j
  • -g

If the -a option is not used, Device must be the last parameter specified.

Parameters

Device
The device name of the file system to have default quota values deactivated.

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 deactivated.

Options

-a
Deactivates default quotas for all GPFS™ file systems in the cluster. When used in combination with the -g option, only group quotas are deactivated. When used in combination with the -u or -j options, only user or fileset quotas, respectively, are deactivated.
-d
Resets quota limits to zero for users, groups, or filesets.

When --perfileset-quota is not in effect for the file system, this option will reset quota limits to zero only for users, groups, or filesets that have default quotas established.

When --perfileset-quota is in effect for the file system, this option will reset quota limits to zero for users, groups, or filesets that have default quotas established only if both the file system and fileset-level default quotas are zero. If either file system or fileset-level default quotas exist, the default quotas will be switched to the level that is non-zero.

If this option is not chosen, existing quota entries remain in effect.

-g
Specifies that default quotas for groups are to be deactivated.
-j
Specifies that default quotas for filesets are to be deactivated.
-u
Specifies that default quotas for users are to be deactivated.
-v
Prints a message for each file system or fileset in which default quotas are deactivated.

Exit status

0
Successful completion.
nonzero
A failure has occurred.

Security

You must have root authority to run the mmdefquotaoff 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 file system in IBM Spectrum Scale: Administration and Programming Reference.

GPFS must be running on the node from which the mmdefquotaoff command is issued.

Examples

  1. To deactivate default user quotas on file system fs0, issue this command:
    mmdefquotaoff -u fs0
    To confirm the change, issue this command:
    mmlsquota -d -u fs0
    The system displays information similar to:
             Default Block Limits(KB)          |  Default File Limits
    Filesystem type          quota      limit  |     quota    limit Remarks
    fs0        USR         no default limits
  2. To deactivate default group quotas on all file systems, issue this command:
    mmdefquotaoff -g -a
    To confirm the change, issue this command:
    mmlsquota -d -g
    The system displays information similar to:
             Default Block Limits(KB)          |  Default File Limits
    Filesystem type          quota      limit  |     quota    limit Remarks
    fs0        GRP         no default limits                          
    
             Default Block Limits(KB)          |  Default File Limits
    Filesystem type          quota      limit  |     quota    limit Remarks
    fs1        GRP         no default limits       
  3. To deactivate both user and group default quotas for fileset fset1 on file system gpfs1, issue this command:
    mmdefquotaoff -d gpfs1:fset1
    To confirm the change, issue this command:
    mmlsquota -d gpfs1:fset1
    The system displays information similar to:
             Default Block Limits(KB)          |  Default File Limits
    Filesystem  Fileset  type   quota   limit  |     quota   limit  entryType
    gpfs1       fset1    USR        0       0  |         0       0  default off
    gpfs1       fset1    GRP        0       0  |         0       0  default off 

Location

/usr/lpp/mmfs/bin