Creating a Mapping View
This operation enables you to create a mapping view. You can manage the mapping relationship between host groups and LUN groups by adding them to mapping views.
Context
Mapping View vm_mapview_0 and vm_mapview_1 have been created on the storage system, and vm_mapview_0 contains vm_lun_group_0 and vm_host_group_0; and vm_mapview_1 contains vm_lun_group_1 and vm_host_group_1.
Do not delete the preset mapping view information about the storage system. Otherwise, the VM service fails.
Procedure
- Log in to DeviceManager.
- Choose
Provisioning >
Mapping View.
- Click Create.
The Create Mapping View dialog box is displayed.
- Set basic properties for the mapping view.
- Specify Name.
- Optional: Specify Description.
- Add a host group to the mapping view.
- In Host Group, click
.
The Select Host Group dialog box is displayed.
If the service requires a new host group, click Create to create one.
- From the host group list, select the host group you want to add to the mapping view.
- Click OK.
- In Host Group, click
- Add a LUN group to the mapping view.
- In LUN Group, click
.
The Select LUN Group dialog box is displayed.
- If the service requires a new LUN group, click Create to create one.
- By default, Show only the LUN groups that do not belong to any mapping view at the bottom left corner of the dialog box is selected to facilitate LUN group locating.
- Optional: Select Set the host LUN ID. In Start ID, select an ID.
- A host LUN ID is an ID allocated by the storage system to a LUN mapped to a host.
- Starting from the selected ID, the system will automatically assign a unique host LUN ID to each LUN in the selected LUN group.
- If you do not select Set the host LUN ID and there is no other mapped LUN in the host, the system will automatically assign a unique host LUN ID (starting from 0) to each LUN in the selected LUN group by default.
- From the LUN group list, select the LUN group you want to add to the mapping view.
- Click OK.
- In LUN Group, click
- Optional: Add a port group to the mapping view.
This operation is required if the mapping view type is LUN masking.
- Select Port Group.
If a port group is added to the mapping view, LUNs in a specified LUN group use the ports in the port group to communicate with the corresponding hosts in the host group. If no port group is added to a mapping view, available ports are randomly used.
- Click
.
The Select Port Group dialog box is displayed.
If the service requires a new port group, click Create to create one.
- From the port group list, select the port group you want to add to the mapping view.
- Click OK.
- Select Port Group.
- Confirm the creation of the mapping view.
- Click OK.
The security alert dialog box is displayed.
If multiple hosts are added to a mapping view, it is possible that multiple hosts write data to the same LUN, which may lead to data corruption or inconsistency. You are advised to install cluster management software on application servers.
- Confirm the information in the dialog box and select I have read and understand the consequences associated with performing this operation.
- Click OK.
The Execution Result dialog box is displayed, indicating that the operation succeeded.
- Click Close.
- Click OK.