Setting Default Quotas for a File System

Default quotas limit storage consumption for all users and all groups for any file system, without the need to set individual quotas for users or groups. Individual quotas override user and group defaults, but not the file system limit.

File system quotas and default quotas can be soft quotas or a hard quotas. For more information, see Quota Types.

Note

Setting default quotas doesn't automatically enable those quotas. You still need to enable quotas for the file system.
    1. Open the navigation menu  and select Storage. Under File Storage, select File Systems.
    2. In the List scope section, under Compartment, select a compartment.
    3. Select the name of the file system for which you want to set or change default quotas.
    4. On the file system details page, under File System quota rule or Default quota rule, select Add or Edit next to the quota type that you want to set.
    5. In the quota panel, enter the Quota limit in GB and select Add or Save changes.
    6. To remove an existing default quota, select Delete next to the quota type that you want to delete, and confirm when prompted.
  • Use the oci fs file-system create-quota-rule command and required parameters to set default quotas. The --principal-id option isn't used for default quotas. For example:

    oci fs file-system create-quota-rule --file-system-id <file_system_OCID> --principal-type <DEFAULT_USER/DEFAULT_GROUP> --is-hard-quota <boolean> --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 without principalId to create a default 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.