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 10

OceanStor 18500 V3 and 18800 V3 Mission Critical Storage System V300R003

"Based on the CLI, 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. The document that you browse online matches the latest C version of the product. Click Download to download documents of other C versions."
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).
change smartqos_policy general

change smartqos_policy general

Function

The change smartqos_policy general command is used to modify SmartQoS policies.

Format

change smartqos_policy general smartqos_policy_id=? [ name=? ] [ io_type=? ] [ schedule_policy=? ] [ day_of_week=? ] [ schedule_start_time=? ] [ start_time=? ] [ duration=? ] [ max_bandwidth=? max_iops=? | min_bandwidth=? min_iops=? latency=? ] [ lun_id_list=? | file_system_id_list=? ]

Parameters

Parameter

Description

Value

smartqos_policy_id=? ID of a SmartQoS policy.

To obtain the value, run "show smartqos_policy".

name=? Name of an I/O class template.

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

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.
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.

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 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.

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

  • QoS policies can be modified online. You do not need to deactivate the QoS policies before modifying them, and new configurations take effect immediately after the modification.
  • 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.
  • In a QoS policy, configure either LUNs or file systems.

Example

To modify SmartQoS policy "0", where the type of the I/Os to control is "read" and add LUNs "0" and "1" to the SmartQoS policy.

admin:/>change smartqos_policy general smartqos_policy_id=0 io_type=read lun_id_list=0,1
CAUTION: You are about to modify storage objects in traffic control policy.
This operation may affect storage object performance.
Suggestion: Before performing this operation, ensure that the preceding risk is acceptable and the correct traffic control policy and storage objects are selected.
Do you wish to continue?(y/n)y
Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-04-04

Document ID: EDOC1000084078

Views: 274137

Downloads: 249

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