No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

OceanStor 9000 V5 7.0 Command Reference 03

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
create quota

create quota

Function

The create quota command is used to create a quota.

Format

create quota <is_default> <resource_type> <quota_type> [advise_threshold] [soft_threshold] [soft_threshold_extend_time] [hard_threshold] <path> <user_or_group_name> <user_type> <domain_type>

Parameters

Parameter

Description

Value

is_default Is a default quota.

The value is "normal" or "template", where:

  • "normal": normal quota.
  • "template": default quota.
resource_type Quota data type.

The value is "CAPACITY" or "FILECOUNT", where:

  • "CAPACITY": capacity quota.
  • "FILECOUNT": file count quota.
quota_type Quota type.

The value is "calculation_quota" or "mandatory_quota", where:

  • "calculation_quota": calculation quota. Only storage space usage is monitored, and space usage is not limited.
  • "mandatory_quota": mandatory quota. Storage space usage is monitored and space usage is limited.
advise_threshold Recommended threshold.

The value is an integer between "0" and "4,294,967,294". The unit of a capacity quota threshold is GB. The unit of a file quantity quota threshold is thousand.When the storage space usage reaches the threshold, the storage system will not limit data writing and only report warnings.Notes:1. The three thresholds are optional. You can specify the threshold values only for mandatory quotas. If you do not want to use a threshold value, set the corresponding parameter to 0.2. If the values of the three thresholds are not 0, it is recommended that you configure the values of the three thresholds in ascending order.

soft_threshold Soft threshold.

The value is an integer between "0" and "4,294,967,294". The unit of a capacity quota threshold is GB. The unit of a file quantity quota threshold is thousand.When the storage space usage reaches the threshold, the storage system will process writes in the grace period. After the grace period times out, the storage system immediately limits data writes and reports warnings. When configuring the soft threshold, you must specify the grace period.Note:1. The three thresholds are optional. You can specify the threshold values only for mandatory quotas. If you do not want to use a threshold value, set the corresponding parameter to 0.2:If the values of the three thresholds are not 0, it is recommended that you configure the values of the three thresholds in ascending order.

soft_threshold_extend_time Soft threshold grace time.

The value is an integer between "0" and "4,294,967,294", expressed in day.

If the soft threshold is configured and its value is not 0, the grace period of the soft threshold must be specified.

hard_threshold Hard threshold.

The value is an integer between "0" and "4,294,967,294". The unit of a capacity quota threshold is GB. The unit of a file quantity quota threshold is thousand.If when the storage space usage reaches the threshold, the storage system immediately limits data writes and reports warnings.Note:1. The three thresholds are optional. You can specify the threshold values only for mandatory quotas. If you do not want to use a threshold value, set the corresponding parameter to 0.2:If the values of the three thresholds are not 0, it is recommended that you configure the values of the three thresholds in ascending order.

path Quota directory path.

The value is 1 to 4000 characters in length and must start with a slash (/).

user_or_group_name User name or user group name.

The value contains 1 to 127 characters and cannot contain the following characters: "/[]:;|=,+*?<>@ or space.

user_type User type.

The value is "USER" or "USERGROUP", where:

  • "USER": user.
  • "USERGROUP": user group.
If "is_default" is set to "normal", and "user_or_group_name" is not "everyone", you should configure "user_type".
domain_type User domain type.

The value is "AD", "LDAP", "LOCAL", or "NIS", where:

  • "AD": domain users authenticated through Active Directory protocol.
  • "LDAP": domain users authenticated through Lightweight Directory Access Protocol.
  • "LOCAL": local users.
  • "NIS": domain users authenticated through Network Information Service protocol.
If "is_default" is set to "template", and "user_or_group_name" is not "everyone", you should configure "domain_type".

Level

Resource administrator

Usage Guidelines

  • You can create quotas only for an empty directory.
  • A maximum of 8192 normal quotas can be created.
  • A maximum of 2048 default quotas can be created.

Example

  • Create a normal quota.

    admin:/>create quota normal CAPACITY mandatory_quota 300 400 4294967294 500 /home admin USER LOCAL
    Command executed successfully.
  • Create a default quota.

    admin:/>create quota template CAPACITY mandatory_quota 300 400 4294967294 500 /home
    Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-05-07

Document ID: EDOC1100067955

Views: 24676

Downloads: 7

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next