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

"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).
change lun

change lun

Function

The change lun command is used to modify the settings of a logical unit number (LUN) including the name, capacity, and type.

Format

change lun lun_id=? { name=? | relocation_policy=? | write_policy=? | owner_controller=? | prefetch_policy=? [ prefetch_multiple=? ] [ prefetch_value=? ] | io_priority=? | read_cache_policy=? | write_cache_policy=? | dif_switch=? | thresholds_switch=? | thresholds_percent=? } *

change lun lun_id=? { name=? | relocation_policy=? | write_policy=? | owner_controller=? | prefetch_policy=? [ prefetch_multiple=? ] [ prefetch_value=? ] | io_priority=? | read_cache_policy=? | write_cache_policy=? | dif_switch=? | thresholds_switch=? | thresholds_percent=? | mirror_policy=? | zero_data_enabled=? | work_controller=? } *

change lun lun_id=? { compression_enabled=? | compression_method=? | dedup_enabled=? | intelligent_dedup_enabled=? | bytecomparison_enabled=? | dedup_metadata_sample_ratio=? } *

change lun { lun_id=? | lun_id_list=? } capacity=?

change lun lun_id_list=? { relocation_policy=? | write_policy=? | owner_controller=? | prefetch_policy=? [ prefetch_multiple=? ] [ prefetch_value=? ] | io_priority=? | read_cache_policy=? | write_cache_policy=? | dif_switch=? | thresholds_switch=? | thresholds_percent=? } *

change lun lun_id_list=? { relocation_policy=? | write_policy=? | owner_controller=? | prefetch_policy=? [ prefetch_multiple=? ] [ prefetch_value=? ] | io_priority=? | read_cache_policy=? | write_cache_policy=? | dif_switch=? | thresholds_switch=? | thresholds_percent=? | mirror_policy=? | zero_data_enabled=? | work_controller=? } *

Parameters

Parameter

Description

Value

lun_id=? ID of a LUN whose settings you want to modify.

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

name=? Updated name of a LUN.

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

relocation_policy=? SmartTier policy.

The value can be "none", "automatic", "lowest_available", or "highest_available", where:

  • "none": Data migration is not performed.
  • "automatic": The system automatically determines the data migration direction.
  • "lowest_available": Data is migrated to a lower-speed storage tier. For example, data is migrated from the performance tier to the capacity tier.
  • "highest-available": Data is migrated to a high-speed tier. For example, data is migrated from the capacity tier to the performance tier.
The default value is "automatic".
write_policy=? Cache write policy.

The value can be "write_through" or "write_back", where:

  • "write_through": write-through. The system considers that a data write is successful only after data is written to hard disks. Hard disks are accessed in each data write.
  • "write_back": write-back. After data is written to the cache of the local controller, the system considers that a data write is successful. In addition, the data will be written to the cache of the peer controller as a mirror. When certain conditions are met, the caches write data to disks.
The default value is "write_back".
owner_controller=? Owning controller of a LUN.

The value is in the format of "XA", "XB", "XC", or "XD", where the "X" is an integer ranging from 0 to 3.

prefetch_policy=? Cache prefetch policy.

The value can be "none", "constant", "variable", or "intelligent", where:

  • "none": non-prefetch.
  • "constant": constant prefetch.
  • "variable": variable prefetch.
  • "intelligent": intelligent prefetch.
The default value is "intelligent".
prefetch_multiple=? Cache prefetch multiple. This parameter is required when "prefetch_policy=?" is set to "variable".

The value ranges from 0 to 1024.

prefetch_value=? Cache prefetch size. This parameter is required when "prefetch_policy=?" is set to "constant".

The value ranges from 0 to 1024, expressed in KB.

capacity=? Updated capacity of a LUN.

The value is in the format of capacity+unit, where the unit can be KB, MB, GB, TB, Blocks, or all.

  • The value ranges from 512 KB to 256 TB. 2:One Blocks equals 512 Bytes. 3:When the unit is GB or TB, a decimal number can be used. 4:"all" is used to expand the capacity of an eDevLUN.
io_priority=? I/O priority of a LUN.

The value can be "Low", "Middle", or "High", where:

  • "Low": low priority.
  • "Middle": medium priority.
  • "High": high priority.
read_cache_policy=? Cache read policy of a LUN.

The value can be "Resident", "Default", or "Recycle". The default value is "Default".

write_cache_policy=? Cache write policy of a LUN.

The value can be "Resident", "Default", or "Recycle". The default value is "Default".

dif_switch=? Whether to enable the DIF function.

"yes" or "no", where:

  • "yes": The DIF function will be enabled.
  • "no": The DIF function will not be enabled.
compression_enabled=? Whether the compression function is enabled. NOTE: OceanStor 2200 V3 storage system do not support this parameter.

The value can be "yes" or "no", where 1:"yes": The deduplication function will be enabled. 2:"no": The deduplication function will not be enabled. The default value is "no".

compression_method=? Sets the LUN compression algorithm. NOTE: OceanStor 2200 V3 storage system do not support this parameter.

The value can be "fast" or "deep", where:

  • "fast": Speed is the priority.
  • "deep": The compression rate is the priority.
The default value is "fast".
dedup_enabled=? Whether the deduplication function is enabled. NOTE: OceanStor 2200 V3 storage system do not support this parameter.

The value can be "yes" or "no", where:

  • "yes": The deduplication function will be enabled.
  • "no": The deduplication function will not be enabled. The default value is "no".
intelligent_dedup_enabled=? Whether the intelligent deduplication function is enabled. NOTE: OceanStor 2200 V3 storage system do not support this parameter.

The value can be "yes" or "no", where :

  • "yes": The intelligent deduplication function will be enabled.
  • "no": The intelligent deduplication function will not be enabled. The default value is "yes".
bytecomparison_enabled=? Whether the byte-by-byte comparison function is enabled. NOTE: OceanStor 2200 V3 storage system do not support this parameter.

The value can be "yes" or "no", where:

  • "yes": The byte-by-byte comparison function will be enabled.
  • "no": The byte-by-byte comparison function will not be enabled. The default value is "no".
dedup_metadata_sample_ratio=? Deduplication metadata sampling ratio. NOTE: OceanStor 2200 V3 storage system do not support this parameter.

The value can be "1", "2", "4", "8", "16", or "32". A larger sample ratio means a smaller impact on performance. However, the ratio of space saved by deduplication may be affected.

thresholds_switch=? Threshold alarm function of a thin LUN.

The value can be "off" or "on", where:

  • "off": The alarm function will not be enabled.
  • "on": The alarm function will be enabled.
The default value is "off".
thresholds_percent=? Alarm threshold of a thin LUN.

The value ranges from 50 to 99, expressed in %. The default value is 90.

lun_id_list=? ID list of LUNs whose settings you want to modify.

To obtain the value, run "show lun general". Multiple IDs are separated by commas (,), and a LUN ID range is represented by a hyphen(-).

mirror_policy=? Mirror policy of a LUN. This parameter is valid only in developer mode. For details about how to go to the developer mode, see the Restricted Command Reference.

The value can be "Enable" or "Disable", where:

  • "Enable": The cache mirror function will be enabled.
  • "Disable": The cache mirror function will not be enabled.
zero_data_enabled=? Zero data check switch. This parameter is valid only in developer mode. For details about how to go to the developer mode, see the Restricted Command Reference.

The value can be "yes" or "no", where:

  • "yes": The zero data check switch will be turned on
  • "no": The zero data check switch will be turned off.
work_controller=? Working controller of a LUN. This parameter is valid only in developer mode. For details about how to go to the developer mode, see the Restricted Command Reference.

The value is in the format of "XA", "XB", "XC" or "XD", where the "X" is an integer ranging from 0 to 3.

Level

Administrator

Usage Guidelines

  • Before running this command, ensure that the selected LUN is exactly the one whose settings you want to modify. 2:Before running this command, clean up the cache of the application server that has mappings to the selected LUN.

Example

Change the capacity of LUN "1" to "300MB".

admin:/>change lun lun_id=1 capacity=300MB
CAUTION: You are about to expand LUN. This operation will expand the capacity of the LUN.
Suggestion: Rescan for the LUN on the server after the capacity expansion.
Do you wish to continue?(y/n)y
Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-04-22

Document ID: EDOC1000106139

Views: 236619

Downloads: 168

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