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

Command Reference

OceanStor 18000 V3 Series V300R006

This document is applicable to OceanStor 18500 V3 and 18800 V3. Based on the CLI provided by DeviceManager, 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).
create lun_copy local

create lun_copy local

Function

The create lun_copy local command is used to create local logical unit number (LUN) copies. You can create local LUN copies for the local storage system by running this command.

Format

create lun_copy local name=? source_lun_id=? target_lun_id=? [ copy_speed=? ]

Parameters

Parameter

Description

Value

name=?

Name of a LUN copy.

The value contains 1 to 31 characters including digits, letters, underscores (_), hyphens (-), and periods (.).

source_lun_id=?

ID of a source LUN.

To obtain the value, run "show lun general".

target_lun_id=?

ID of a target LUN.

To obtain the value, run "show lun general".

copy_speed=?

Rate of a LUN copy task.

The value can be:

  • "Low": indicates the low copy speed.
  • "Middle": indicates the medium copy speed.
  • "High": indicates the high copy speed.
  • "Highest": indicates the highest copy speed.

The default value is "Middle".

Level

Administrator

Usage Guidelines

  • The data of a source LUN overwrites that of a target LUN upon the start of a LUN copy task.
  • Before running this command, ensure that the selected source and target LUNs are exactly the ones you want to use for a LUN copy task, and that no host is accessing the target LUN.
  • Each pair of source and target LUNs must be on the same local storage system.
  • The capacity of a target LUN must be no less than that of a source LUN for a single LUN copy task.
  • Different LUN copies cannot share the same target LUN.

Example

To create a LUN copy, where the name of the LUN copy is "test", the source LUN is LUN "0", the target LUN is LUN "1", and the rate of the LUN copy task is "high", run the following command:

admin:/>create lun_copy local name=test source_lun_id=0 target_lun_id=1 copy_speed=High 
WARNING: You are about to build a LUN copy relationship between source LUN and target LUN. After this operation, the data on the target LUN will be overwritten by the data on the source LUN. 
Suggestion:Before performing this operation, ensure that the selected source and target LUNs are correct, and the target LUN is not being read or written by hosts. 
Have you read warning 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: EDOC1000138390

Views: 237098

Downloads: 150

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