Creating an Individual Quota for a File System

Administrators can create individual quotas for users and groups. Individual quotas override user and group defaults, but not the file system limit. Individual quotas are tied to a specific UNIX principal and designated by UID or GID.

A quota can be a soft quota or a hard quota. For more information, see Quota Types.

Note

Creating quotas doesn't automatically enable those quotas. You still need to enable quotas for the file system.
    1. On the File Systems list page, select the file system that you want to work with. If you need help finding the list page or the file system, see Listing File Systems.
    2. On the details page, select User and group quota rules amd then select Add quota rule.
    3. To add a default quota, select Add default user hard quota rule or Add default user soft quota rule.
    4. In the panel, provide the following information:

      • Quota name: Name of the quota.
      • Select whether the quota is a Hard quota or a Soft quota.
      • Select whether this is an Individual group quota rule or an Individual group quota rule.
      • Principal ID: The UID or GID to which the quota applies.
      • Quota limit in GB: The size of the quota, in gigabytes.
    5. Select Add.
  • Use the oci fs file-system create-quota-rule command and required parameters to create a quota:

    oci fs file-system create-quota-rule --file-system-id <file_system_OCID> --is-hard-quota <boolean> --principal-id <principal_id> --principal-type <principal_type> --quota-limit-in-gigabytes <quota_limit_in_gigabytes>
                            

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the CreateQuotaRule operation to create a quota.

    For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.