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

OceanStor 2800 V3 V300R006

This document is applicable to OceanStor 2800 V3. 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. 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 mapping_view

change mapping_view

Function

The change mapping_view command is used to modify the settings of a mapping view including the view name and the function switch for in-band commands. Also, it can be used to change the host LUN IDs of the LUNs in mapping views.

Format

change mapping_view { mapping_view_id=? | mapping_view_name=? } { name=? | command_device=? | vstore_id=? | force_change_vstore=? | mode=? } *

change mapping_view { mapping_view_id=? | mapping_view_name=? } { name=? | host_lun_id_list=? | vstore_id=? | force_change_vstore=? | mode=? } *

Parameters

Parameter

Description

Value

mapping_view_id=?

Mapping view ID.

To obtain the value, run the "show mapping_view general" command.

mapping_view_name=?

Mapping view name.

To obtain the value, run the "show mapping_view general" command.

name=?

New mapping view name.

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

command_device=?

Whether to enable the in-band command function.

The value can be:

  • "enable": to enable in-band commands.
  • "disable": to disable in-band commands.

host_lun_id_list=?

Modify the Host LUN ID of the LUN. The value range of the Host LUN ID varies based on specific products. For 5600 V3, 5600F V3, the value ranges from 0 to 1023. For 5800 V3, 5800F V3, the value ranges from 0 to 2047. For 6800 V3, 6800F V3, 18500 V3, 18500F V3, 18800 V3, 18800F V3, the value ranges from 0 to 4095.

The value can be one or more mappings between LUN IDs and host LUN IDs. The format is "LUN ID:Host LUN ID". If there are multiple mappings, separate them with commas (,). Run the "show host lun" and "show host snapshot" commands to query the host LUN IDs that have been assigned. A LUN ID ranges from 0 to 65535, and a host LUN ID ranges from 0 to 4095. A maximum of 64 mappings are supported.

Level

Administrator

Usage Guidelines

  • To change the name of a mapping view, run the "change mapping_view mapping_view_id=? name=?" command.
  • To enable or disable host in-band commands, run the "change mapping_view mapping_view_id=? command_device=?" command.
  • To change the name of a mapping view and the state of the host in-band command switch at the same time, run the "change mapping_view mapping_view_id=? name=? command_device=?" command.
  • To change the host LUN ID of a LUN, run the "change mapping_view mapping_view_id=? host_lun_id_list=?" command.

Example

  • Change the name of the mapping view whose ID is "10" to "newmap10".
    admin:/>change mapping_view mapping_view_id=10 name=newmap10 
    Command executed successfully.
  • Change the host LUN IDs of LUN "1" and LUN "2" in mapping view "1" to "5" and "6" respectively.
    admin:/>change mapping_view mapping_view_id=1 host_lun_id_list=1:5,2:6 
    DANGER: You are about to change the host LUN ID of the LUN in mapping. This operation may interrupt host services or cause data inconsistency if services are running on the host. This operation causes the LUN unable to be detected by the host if the new host LUN ID is beyond the host LUN ID range supported by the host. 
    Suggestion: Before performing this operation: 
    1. Ensure that you have selected the correct LUN, stopped host services running on the LUN, and uninstalled physical disks and virtual disks generated by the multipathing. After this operation, scan disks on the host again. 
    2. Ensure that the new host LUN ID is within the host LUN ID range supported by the host. 
    Have you read danger alert message carefully?(y/n)y 
    Are you sure you really want to perform the operation?(y/n)y 
    Command executed successfully.
  • Rename mapping view "mappingview1" to "newmap10".
    admin:/>change mapping_view mapping_view_name=mappingview1 name=newmap10 
    Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-07-12

Document ID: EDOC1000138382

Views: 312559

Downloads: 38

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