Enabling and disabling GPFS quota management

You can enable GPFS quota management on new or existing GPFS file systems, establish quota values, and disable quota management by following the steps in this topic.

To enable GPFS quota management on a new GPFS file system:
  1. Specify the -Q yes option on the mmcrfs command. This option automatically activates quota enforcement whenever the file system is mounted. If you want the scope of quota limit enforcement to be based on individual filesets (rather than the entire file system), also specify the --perfileset-quota option on the mmcrfs command.
  2. Mount the file system.
  3. Issue the mmedquota or mmsetquota command to explicitly set quota values for users, groups, or filesets. See Explicitly establishing and changing quotas.
To enable GPFS quota management on an existing GPFS file system:
  1. Run the mmchfs -Q yes command. This command automatically activates quota enforcement whenever the file system is mounted or activates all subsequent mounts following the new quota setting if the file system is not mounted. If you want the scope of quota limit enforcement to be based on individual filesets (rather than the entire file system), also specify the --perfileset-quota option on the mmchfs command.

    If an online mmchfs -Q yes/no command fails or is interrupted for any reason, mmcheckquota or mmchfs -Q yes/no must be rerun so that quota configuration for all nodes in the cluster will be brought into a consistent state.

    All subsequent mounts will follow the new quota setting.

    Note: The perfileset-quota cannot be enabled online in GPFS 4.1.
  2. Compile inode and disk block statistics using the mmcheckquota command. See Checking quotas. The values obtained can be used to establish realistic quota values when issuing the mmedquota or mmsetquota command.
  3. Issue the mmedquota or mmsetquota command to explicitly set quota values for users, groups, or filesets. See Explicitly establishing and changing quotas.
Once GPFS quota management has been enabled, you may establish quota values by:
  • Setting default quotas for all new users, groups of users, or filesets.
  • Explicitly establishing or changing quotas for users, groups of users, or filesets.
  • Using the gpfs_quotactl() subroutine.

To disable quota management, run the mmchfs -Q no command. All subsequent mounts will obey the new quota setting.

For complete usage information, see the mmcheckquota command, the mmchfs command, the mmcrfs command, and the mmedquota command. For additional information on quotas, see the IBM Spectrum Scale: Concepts, Planning, and Installation Guide.