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

OceanStor 2200 V3 and 2600 V3 Storage System V300R005 Command Reference

"Based on the CLI provided by the DeviceManager, this document describes how to use variouscommands classified by functions and how to set the CLI and manage the storage system throughthese 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).
add mirror_lun local_mirror_copy

add mirror_lun local_mirror_copy

Function

The add mirror_lun local_mirror_copy command is used to add a local mirror copy to a mirror LUN.

Format

add mirror_lun local_mirror_copy pool_id=? name=? mirror_lun_id=? [ is_init_sync=? ]

Parameters

Parameter

Description

Value

pool_id=? ID of the storage pool where the mirror copy is saved.

Run the "show storage_pool general" command to obtain the value.

name=? Name of a mirror copy.

The value consists of one to 31 ASCII characters, including digits, underlines (_), en dashes (-), and periods (.).

mirror_lun_id=? ID of a mirror LUN.

Run the "show mirror_lun general" command to obtain the value.

is_init_sync=? To enable initial synchronization or not.

The value can be:

  • "yes": Initial synchronization will be performed.
  • "no": Initial synchronization will not be performed.
The default value is "yes".

Level

Administrator

Usage Guidelines

  • Run the add mirror_lun local_mirror_copy pool_id=? name=? mirror_lun_id=? command to create a mirror copy of a mirror LUN.
  • Run the add mirror_lun local_mirror_copy pool_id=? name=? mirror_lun_id=? is_init_sync=? command to create a mirror copy of a mirror LUN and indicate whether to enable initial synchronization or not.

Example

  • Adds a local mirror copy to the mirror LUN.

    admin:/>add mirror_lun local_mirror_copy pool_id=0 name=mc0 mirror_lun_id=0
    Create LUN 2 successfully.
    Add Mirror copy 2 to Mirror LUN 0 successfully.
  • Adds a local mirror copy to the mirror LUN and enables initial synchronization.

    admin:/>add mirror_lun local_mirror_copy pool_id=0 name=mc0 mirror_lun_id=0 is_init_sync=yes
    Create LUN 2 successfully.
    Add Mirror copy 2 to Mirror LUN 0 successfully.
  • To add a local mirror copy to the mirror LUN without enabling the initial synchronization, run the following command:

    admin:/>add mirror_lun local_mirror_copy pool_id=1 name=da mirror_lun_id=32 is_init_sync=no
    DANGER: You are about to add the mirror copy to the mirror LUN without performing initial synchronization. The operation cannot guarantee the data consistency of the mirror copies.
    Suggestion: Before performing this operation, ensure that the mirror LUN is newly created and has never been read or written. If already consistent, an initial synchronization is not required.
    Have you read danger alert message carefully?(y/n)y
    Are you sure you really want to perform the operation?(y/n)y
    Create LUN 42 successfully.
    Add Mirror copy 42 to Mirror LUN 32 successfully.

System Response

None

Translation
Download
Updated: 2019-04-22

Document ID: EDOC1000106139

Views: 241380

Downloads: 169

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