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 2200 V3 and 2600 V3 Storage System V300R005 Command Reference 06

"Based on the CLI provided by the DeviceManager, this document describes how to use variouscommands classified by functions and how to set the CLI and manage the storage system throughthese 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 smartqos_policy

create smartqos_policy

Function

The create smartqos_policy command is used to create SmartQoS policies. By using the SmartQoS, the storage system can allocate its resources to different types of I/Os on demand.

Format

create smartqos_policy name=? schedule_policy=? [ day_of_week=? ] schedule_start_time=? start_time=? duration=? { smartqos_template_id=? | io_type=? } { max_bandwidth=? max_iops=? | min_bandwidth=? min_iops=? latency=? } [ lun_id_list=? | file_system_id_list=? ]

Parameters

Parameter

Description

Value

name=? Name of a smartqos policy.

The value contains 1 to 31 digits, letters, underscores _, hyphens -, and periods ..

schedule_policy=? The time policy for triggering the SmartQoS.

The value can be:

  • "once": The policy is executed once.
  • "daily": The policy is executed daily.
  • "weekly": The policy is executed weekly.
day_of_week=? The day on which a scheduled SmartQoS policy will be cycled weekly. This parameter must be assigned and it is valid only when schedule_policy=? is set to "weekly".

You can specify multiple days in a week and separate them with commas ,. The value can be "sun", "mon", "tue", "wed", "thu", "fri", or "sat", where:

  • "sun": indicates Sunday.
  • "mon": indicates Monday.
  • "tue": indicates Tuesday.
  • "wed": indicates Wednesday.
  • "thu": indicates Thursday.
  • "fri": indicates Friday.
  • "sat": indicates Saturday.
schedule_start_time=? The day from which a scheduled SmartQoS task will be started.

The value is in the format of year-month-day. The value ranges from today to 2069-12-31.

start_time=? The time from which a scheduled SmartQoS task will be started on a specific day.

The value is in the format of HH:MM. The value ranges from 00:00 to 23:59.

duration=? The duration for performing a scheduled SmartQoS task.

The value is in the format of HH:MM or H:M. The value ranges from 00:30 to 24:00, indicating 30 minutes to 24 hours.

smartqos_template_id=? ID of an I/O class template.

To obtain the value, run "show smartqos_template".

io_type=? Type of the I/Os that you want to control. Using this parameter specifies that the SmartQoS will exclusively control a specific type of I/Os.

The value can be:

  • "read": indicates read I/Os.
  • "write": indicates write I/Os.
  • "read_write": indicates read and write I/Os.
The default value is "read_write".
max_bandwidth=? The maximum bandwidth.

The value is an integer ranging from 1 to 999,999,999, expressed in MBps.

min_bandwidth=? The minimum bandwidth.

The value is an integer ranging from 1 to 999,999,999, expressed in MBps.

max_iops=? The maximum number of IOPS.

The value is an integer ranging from 1 to 999,999,999.

min_iops=? The minimum number of IOPS.

The value is an integer ranging from 1 to 999,999,999.

latency=? Latency for an I/O class.

The value is an integer ranging from 1 to 999,999,999, expressed in ms.

lun_id_list=? Logical unit numbers of LUNs that you want to add to a SmartQoS policy. Only the added LUNs will be controlled by the SmartQoS.

To obtain the value, run "show lun general".

You can specify multiple LUN IDs separated by commas, or ID range separated by hyphens(-), such as: 0,5-8.

A maximum of 64 objects are allowed.

file_system_id_list=? Logical unit numbers of file systems that you want to add to a SmartQoS policy. Only the added file systems will be controlled by the SmartQoS. OceanStor 2200 V3 storage system do not support this parameter.

To obtain the value, run "show file_system general".

You can specify multiple file system IDs separated by commas, or ID range separated by hyphens(-), such as: 0,5-8.

A maximum of 64 objects are allowed.

Level

Administrator

Usage Guidelines

  • After creating a SmartQoS policy, you must run "change smartqos_policy enabled" to enable the policy so that the entire command line can take effect.
  • By using the SmartQoS, the storage system can intelligently dispatch the system resources occupied by different types of I/Os. This enables prioritized I/Os to be correctly processed and balances system resource allocation when the storage resources are bottlenecked.
  • The SmartQoS is effective only for the LUNs or file systems defined by the "lun_id_list=?" or "file_system_id_list=?" parameter. That is, only those LUNs or file systems are available for I/O resource dispatching. Given different LUNs or file systems normally carry different services, specifying a range of LUNs or file systems actually determines the services carried by specific types of I/Os for those LUNs or file systems. In this way, the SmartQoS can dispatch system resources according to service types, helping the applications that impose demanding requirements on I/O bandwidth and latency to operate properly even when the resources are bottlenecked.
  • The "io_type=?" parameter defines an I/O type, which is critical to SmartQoS policies. For example, assigning the parameter "read" means that a SmartQoS policy is effective only for the read I/Os of specific LUNs or file system.In a SmartQoS policy, configure either LUNs or file systems.
  • You can specify both "max_bandwidth" and "max_iops" or only one of them. If you specified both "max_bandwidth" and "max_iops" or only one of them, none of "min_bandwidth", "min_iops", and "latency" can be specified.You can specify all "min_bandwidth", "min_iops", and "latency", only one of them, or two of them. If you specified all "min_bandwidth", "min_iops", and "latency", only one of them, or two of them, neither "max_bandwidth" nor "max_iops" can be specified. Specify at least one of the five operands.
  • Configure either the "smartqos_template_id" parameter or an index parameter ("max_bandwidth", "max_iops", "min_bandwidth", "min_iops", "latency").

Example

To create a SmartQoS policy, where the name of the policy is "newqos", read and write I/Os will be controlled, the policy will be started from 13:00 on December 23, 2013 with a duration of 90 minutes, the maximum bandwidth is 1024 Mbit/s, and will be cycled on each Monday.

admin:/>create smartqos_policy name=newqos schedule_policy=weekly day_of_week=mon schedule_start_time=2013-12-23 start_time=13:00 duration=1:30 max_bandwidth=1024 io_type=read_write 

Create SmartQoS policy successfully.

System Response

None

Translation
Download
Updated: 2019-07-22

Document ID: EDOC1000106139

Views: 314792

Downloads: 204

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