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


To have a better experience, please upgrade your IE browser.

Advanced O&M Command Reference
OceanStor 18000 and 18000F V5 Series V500R007

This document is applicable to OceanStor 18500 V5, 18800 V5, 18500F V5, and 18800F V5. Based on the CLI, this document describes how to use various commands classified by functionsand how to set the CLI and manage the storage system through these 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).
clear mapping_db_object

clear mapping_db_object


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


clear mapping_db_object type=? id=?





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


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.


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


Updated: 2020-03-19

Document ID: EDOC1000181602

Views: 853500

Downloads: 66

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next