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 2800 V3 V300R006

This document is applicable to OceanStor 2800 V3. 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. 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).
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=? ]







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


Grain ID.

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


0peration type.

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

  • "insert": inserts a mapping entry.
  • "delete": deletes a mapping entry.


Extent ID.

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


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: 2019-07-12

Document ID: EDOC1000138381

Views: 759607

Downloads: 38

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