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

Command Reference for Block

OceanStor Dorado V3 Series V300R002

This document is applicable to OceanStor Dorado3000 V3, Dorado5000 V3, Dorado6000 V3 and Dorado18000 V3. Based on the CLI provided by the DeviceManager, this document describes how to use various commands classified by functions and 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 smartqos_policy

create smartqos_policy

Function

The create smartqos_policy command is used to create SmartQoS policies. By using 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=? [ io_type=? ] [ ctrl_type=? ] { max_bandwidth=? max_iops=? } [ lun_id_list=? ] [ lun_group_id_list=? ]

Parameters

Parameter

Description

Value

name=?

Name of a SmartQoS policy.

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

schedule_policy=?

Time policy for triggering 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=?

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=?

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=?

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=?

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.

io_type=?

Type of the SmartQoS policy that you want to control.

The value can be:

  • "read_write": indicates read and write I/Os.

ctrl_type=?

Type of the SmartQoS policy that you want to control.

The value can be:

  • "normal": normal.
  • "hierarchical": hierarchical.

The default value is "normal".

max_bandwidth=?

Maximum bandwidth.

The value is an integer ranging from 1 to 999,999,999, expressed in MB/s.

max_iops=?

Maximum number of IOPS.

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

lun_id_list=?

IDs of LUNs that you want to add to a SmartQoS policy. Only the added LUNs will be controlled by 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 512 IDs are allowed.

lun_group_id_list

LUN groups that you want to add to a SmartQoS policy. Only the added LUN groups will be controlled by SmartQoS.

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

A maximum of one ID is 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 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.
  • SmartQoS is effective for the LUNs defined by the "lun_id_list=?" parameter. That is, only those LUNs are available for I/O resource dispatching. Given different LUNs normally carry different services, specifying a range of LUNs actually determines the services carried by specific types of I/Os for those LUNs. In this way, 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 "ctrl_type=?" parameter defines an SmartQoS type. For example, assigning parameter "normal" means that the SmartQoS policy can be added to a hierarchical policy and assigning parameter "hierarchical" means that the SmartQoS policy can be added to a normal policy.
  • You can specify both "max_bandwidth" and "max_iops" or only one of them. Specify at least one of the two operands.
  • If the "lun_group_id_list" field is set, SmartQoS takes effect on the LUNs in the specified LUN group.

Example

Create a SmartQoS policy, where the name is "newqos", the type is "normal", the policy will be executed every Monday starting from 13:00 on December 23, 2013 with a duration of 90 minutes, and the maximum bandwidth is 1024 MB/s.

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 ctrl_type=normal 
Create SmartQoS policy successfully.

System Response

None

Translation
Download
Updated: 2019-07-16

Document ID: EDOC1100049140

Views: 116603

Downloads: 134

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