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).
create mapping_view

create mapping_view

Function

The create mapping_view command is used to create a mapping view.

Format

create mapping_view name=? [ mapping_view_id=? ] [ lun_group_id=? ] [ host_group_id=? ] [ port_group_id=? ]

Parameters

Parameter

Description

Value

name=? Mapping view name.

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

mapping_view_id=? Mapping view ID.

The value ranges from 1 to n minus one. n indicates the maximum number of mapping view.

If you do not specify this parameter, the storage system automatically assigns a value.

lun_group_id=? LUN group ID. If you specify this parameter, the storage system adds the LUN group corresponding to the ID to a mapping view.

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

host_group_id=? Host group ID. If you specify this parameter, the storage system adds the host group corresponding to the ID to a mapping view.

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

port_group_id=? Port group ID. If you specify this parameter, the system adds the port group corresponding to the ID to a mapping view. This parameter is available only when you specify parameter host_group_id=?.

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

Level

Administrator

Usage Guidelines

A host group can be added to a maximum of 64 mapping views,a LUN group can be added to a maximum of 64 mapping views and a port group can be added to a maximum of 64 mapping views.

Example

Create a mapping view whose name is "mapping_Test" and ID is "1" and add LUN group "1", host group "0", and port group "0" to the mapping view.

 
admin:/>create mapping_view name=mapping_Test mapping_view_id=1 lun_group_id=1 host_group_id=0 port_group_id=0
DANGER: You are about to map all LUNs in the LUN group to all hosts in the host group.If the host group contains multiple hosts but mutual access exclusion is not properly configured, multiple service hosts may write data to the same LUN, causing data damage or inconsistency.
Suggestion: Before you perform this operation, ensure that mutual access exclusion has been correctly configured on service hosts.
Have you read danger alert message carefully?(y/n)y
 
Are you sure you really want to perform the operation?(y/n)y
Create mapping view successfully.
Add host group 0 to mapping view successfully.
Add LUN group 1 to mapping view successfully.
Add port group 0 to mapping view successfully.
 

System Response

None

Translation
Download
Updated: 2019-07-22

Document ID: EDOC1000084078

Views: 276952

Downloads: 250

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