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

change lun_grain


The change lun_grain command is used to insert or delete the grain mapping entry of a thin LUN.


change lun_grain lun_id=? grain_id=? action=? [ extent_id=? extent_offset=? ]





lun_id=? LUN ID.

To obtain the value, run the "show lun general" command in guest view.

grain_id=? Grain ID.

The grain ID needs to be obtained from technical support engineers based on the repair result.

action=? 0peration type.

The value can be "insert" or "delete", where:

  • "insert": inserts a mapping entry.
  • "delete": deletes a mapping entry.
extent_id=? Extent ID.

The extent ID needs to be obtained from technical support engineers based on the repair result.

extent_offset=? Extent offset.

The extent offset needs to be obtained from technical support engineers based on the repair result.


Developer view

Usage Guidelines

If "action=?" is set to "insert", specify the parameters of "extent_id" and "extent_offset".


Insert grain 0 into LUN 0.

developer:/>change lun_grain lun_id=0 grain_id=0 action=insert extent_id=123456 extent_offset=0
DANGER: You are about to change the metadata on a LUN. This operation will cause the LUN to go offline. When you are changing the metadata, do not make the LUN go online.
Suggestion: Before you run this command, ensure that:
1. host I/Os have been stopped.
2. this is the working controller of the LUN.
3. you entered the correct LUN ID.
Have you read danger alert message carefully?(y/n)y 
Are you sure you really want to perform the operation?(y/n)y
Command execute successfully!

System Response


Updated: 2020-01-17

Document ID: EDOC1000181602

Views: 757041

Downloads: 66

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next