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

Advanced O&M Command Reference

OceanStor 18000 and 18000F V5 Series V500R007

This document is applicable to OceanStor 18500 V5, 18800 V5, 18500F V5, and 18800F V5. Based on the CLI, this document describes how to use various commands classified by functionsand how to set the CLI and manage the storage system through these commands.

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 quota_tree

create quota quota_tree

Function

The create quota quota_tree command is used to create a file system quota on a specified quota tree.

Format

create quota quota_tree quota_tree_id=? quota_type=? [ user_name=? ] [ group_name=? ] [ user_group_type=? ] { space_hard_quota=? | space_soft_quota=? | file_hard_quota=? | file_soft_quota=? } *

Parameters

Parameter

Description

Value

quota_tree_id=? Quota tree ID in the format of FSID@QuotaTreeID. The "FSID" value is from 0 and 65535 and the "QuotaTreeID" value is from 0 to 4096.

To obtain the value, run the "show quota_tree general" command.

quota_type=? Quota type.

The value can be "directory", "user", or "group".

user_name=? User name.

The value contains 1 to 63 characters. To obtain the local user name, run the "show resource_user general" command. For an AD domain user, the format is "domain\\username".

group_name=? User group name.

The value contains 1 to 63 characters. To obtain the local group name, run the "show resource_group general" command.

user_group_type=? User type or user group type.

The value can be "local" or "domain".

  • "local": local user or user group.
  • "domain": domain user or user group.
space_hard_quota=? Space hard quota.

The value must be greater than the space soft quota, and smaller than or equal to 16,384 TB.

space_soft_quota=? Space soft quota.

The value must be smaller than the hard space quota. If the hard space quota is not specified, the value must be smaller than or equal to 16,384 TB.

file_hard_quota=? File quantity hard quota, expressed in thousand (K).

The value must be greater than the file quantity soft quota, and smaller than or equal to 2,000,000K.

file_soft_quota=? File quantity soft quota, expressed in thousand (K).

The value must be smaller than the file quantity hard quota. If the file quantity hard quota is not specified, the value must be smaller than or equal to 2,000,000K.

Views

Guest, vstore user view, Upgrade view

Usage Guidelines

  • If "quota_type" is "directory", the directory quota of the quota tree will be created, without "user_name" or "group_name" inputting.
  • The parameter "user_name" is dependent on "quota_type". If "quota_type" is "user", then the value of "user_name" and "user_group_type" must be entered, without "group_name" inputting.
  • The parameter "group_name" is dependent on "quota_type". If "quota_type" is "group", then the value of "group_name" and "user_group_type" must be entered, without "user_name" inputting.
  • Quotas of AD domain user groups are not supported.
  • Creating a directory quota for the Root Quota Tree is equivalent to creating a default directory quota for the file system.

Example

  • Create a directory quota on quota tree "0@1", and set the quota type to "directory" and space hard quota to "1GB".

    admin:/>create quota quota_tree quota_tree_id=0@1 quota_type=directory space_hard_quota=1GB
    Command executed successfully.
  • Create a quota for local resource user "engineerA" on quota tree "0@1", and set the quota type to "user" and space hard quota to "1GB".

    admin:/>create quota quota_tree quota_tree_id=0@1 quota_type=user user_name=engineerA user_group_type=local space_hard_quota=1GB
    Command executed successfully.

System Response

None

Translation
Download
Updated: 2020-01-17

Document ID: EDOC1000181602

Views: 762313

Downloads: 66

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next