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 level policy

create level policy

Function

The create level policy command is used to create a file pool policy.

Format

create level policy < policy_name > < is_accelerate > [ tier_id=? ] [ policy_description=? ] [ file_path=? ] [ file_name=? ] [policy_type=?] [ rules=? ] [ domain_type=? ] [ user_name=? ] [ group_name=? ] [ nodePoolId=? ]

Parameters

Parameter

Description

Value

policy_name Name of a file pool policy

The value contains 1 to 127 letters, digits, hyphens (-), underscores (_), and periods (.) and must start with a letter and end with a letter or a digit.

is_accelerate Whether SSD disk acceleration is enabled
  • True: Disk acceleration is enabled.
  • False: Disk acceleration is disabled.
policy_type type of the policy.
  • AnyTier:Save to Any Tier.
  • SpecifiedTier:Save to Specified Tier.
  • SpecifiedNodePool:Save to Specified Node Pool.
  • Delete:delete file.
tier_id Tier ID. "tierID" or "nodepoolID" must be used.

The value is "255" or an integer between 0 and 31. When the value is "255", any tier can be used for this policy.

policy_description Description of a file pool policy.

The value contains 1 to 255 characters.

file_path File path.

The value contains 1 to 4000 characters.

file_name File name.

The value contains 1 to 255 characters.

rules File pool policy.

The value is a character string in the JavaScript object notation (JSON) format, for example, {0:10,1:20,...}. NOTE The following describes these digits:

  • 0: create time less or equal (0-1000000)
  • 1: create time greater (0-1000000)
  • 2: create time unit
  • 3: modify time less (0-1000000)
  • 4: modify time greater (0-1000000)
  • 5: modify time unit
  • 6: access time less or equal (0-1000000)
  • 7: access time greater (0-1000000)
  • 8: access time unit
  • 9: file size less less or equal (0-2147483647)
  • 10: file size greater (0-2147483647)
  • 11: size unit
  • 12: I/O Popularity less or qual (0-2147483647)
  • 13: I/O Popularity greater (0-2147483647)
  • 14: I/O Popularity type
  • 15: I/O Popularity unit
  • 16: I/O Popularity period-1:within 1 day 2:within 2 days 3:within 3 days 4:within 4 days 5:within 5 days 6:within 6 days 7:within 7 days
  • 17: I/O Count less or equal (0-2147483647)
  • 18: I/O Count greater (0-2147483647)
  • 19: I/O Count type
  • 20: I/O Count unit
  • 21: I/O Count period-1:within 1 day 2:within 2 days 3:within 3 days 4:within 4 days 5:within 5 days 6:within 6 days 7:within 7 days
size unit
  • 0: KB
  • 1: MB
  • 2: GB
time unit
  • 0: hour
  • 1: day
access, io temp type
  • 0: rw
  • 1: r
  • 2: w
io temp unit
  • 0: byte/day
access temp unit
  • 0: times.
user_name User name.

The value contains 1 to 127 letters, digits, hyphens (-), underscores (_), and periods (.) and must start with a letter and end with a letter or a digit.

group_name User group name.

The value contains 1 to 256 characters and cannot contain the following characters: "/\[]:;|=,+*?<>@ or space. The value cannot end with a period (.).

nodepoolid Node pool ID.

The value is an integer ranging from 1 to 32. "tierID" or "nodepoolID" must be used.

domain_type Domain type.
  • AD: domain user who uses the active directory (AD) protocol for authentication
  • LDAP: domain user who uses Lightweight Directory Access Protocol (LDAP) for authentication
  • LOCAL: local user
  • NIS: domain user who uses the network information service (NIS) protocol for authentication.

Level

Resource administrator

Usage Guidelines

None

Example

Create a file pool policy.

admin:/>create level policy test false file_name=test tier_id=1
Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-05-07

Document ID: EDOC1100067955

Views: 25350

Downloads: 7

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