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

Advanced O&M Command Reference

OceanStor 2000, 5000, and 6000 V3 Series V300R006

This document is applicable to OceanStor 2200 V3, 2600 V3 Video Surveillance Edition, 2600 V3, 5300 V3, 5500 V3, 5600 V3, 5800 V3, and 6800 V3. 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).
clear mapping_db_object

clear mapping_db_object

Function

The clear mapping_db_object command is used to forcibly delete a mapping object and the DB information associated with the object.

Format

clear mapping_db_object type=? id=?

Parameters

Parameter

Description

Value

type=?

Object type.

The value can be "host", "host_group", "lun_group", "port_group" or "mapping_view", where:

  • "host": indicates a host.
  • "host_group": indicates a host group.
  • "lun_group": indicates a LUN group.
  • "port_group": indicates a port group.
  • "mapping_view": indicates a mapping view.

id=?

Object ID.

The value ranges from 0 to n minus one. n indicates the maximum number of objects (hosts, host groups, LUN groups, port groups, or mapping views).

Views

Developer view

Usage Guidelines

  • Running this command will delete DB information and may bring high risks. Contact technical support before running this command.
  • The command can delete the following objects: hosts, host groups, LUN groups, port groups, and mapping views.
  • Restart all controllers before re-configuring the mapping.
  • After using this command to delete hosts, delete the host groups to which the hosts you deleted belong to, otherwise host groups may fail to run properly and users may not be able to delete host groups in the user view and developer view.
  • When deleting host groups, if ports groups were added to the mapping view to which the host groups you want to delete were added, delete the port groups first, otherwise, faults will be reported.
  • After the LUN group is deleted, the output of the "show lun general" command indicates that the "Is Add To Lun Group" attribute of the LUNs that belonged to the LUN group that was deleted is "Yes". The attribute can be recovered after the LUN is added to another LUN group and removed.
  • After the mapping view is deleted, the output of the "show lun_group general" command indicates that the "Is Add To Mapping View" attribute of the LUN groups that belonged to the mapping view that was deleted is "Yes". The attribute can be recovered after the LUN group is added to another mapping view and removed.

Example

To delete host 1, run the following command.

developer:/>clear mapping_db_object type=host id=1 
DANGER: You are clearing the DB information about the specified mapping configuration forcibly. After system restart, the specified mapping configuration will be invalid. You can not run the business until reconfigure the specified mapping configuration. 
Suggestion: Before you perform this operation, please contact technical support engineers, and then implement following steps: 
1. Ensure that you have selected the correct object. 
2. Ensure that all the business running on this object has been stopped. 
3. After this operation , please reboot the system immediately. 
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.

System Response

None

Translation
Download
Updated: 2019-07-12

Document ID: EDOC1000138402

Views: 633860

Downloads: 705

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