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

This document is applicable to OceanStor 2800 V3. 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. 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_takeover general

create lun_takeover general

Function

The create lun_takeover general command is used to create takeover LUNs.

Format

create lun_takeover general type=? [ remote_lun_wwn_list=? name=? storage_pool_id=? write_policy=? [ prefetch_policy=? ] [ prefetch_multiple=? ] [ prefetch_value=? ] [ io_priority=? ] [ owner_controller=? ] [ lun_id=? ] [ dif_switch=? ] [ support_thinlun=? ] | edevlun_id=? | remote_device_id=? lun_id=? ]

Parameters

Parameter

Description

Value

name=?

Name of a LUN that you want to create.

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

lun_id=?

LUN ID. This parameter is mutually exclusive with edevlun_id=?. If the parameter edevlun_id=? is specified, this parameter is unavailable.

The value is an integer ranging from 0 to 65535.

The storage system automatically allocates an ID for a newly created LUN if this parameter will not be used.

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

write_policy=?

Cache write policy.

The value must be "write_through", where:

"write_through": indicates write through. The system considers that a data write is successful only after data is written to hard disks. Hard disks are accessed in each data write.

prefetch_policy=?

Cache prefetch policy.

The value can be "none", "constant", "variable", or "intelligent", where:

  • "none": indicates non-prefetch.
  • "constant": indicates constant prefetch.
  • "variable": indicates variable prefetch.
  • "intelligent": indicates intelligent prefetch.

The default value is "intelligent".

prefetch_multiple=?

Cache prefetch multiple. This parameter is required when prefetch_policy=? is set to "variable".

The value ranges from 0 to 1024.

prefetch_value=?

Cache prefetch size. This parameter is required when prefetch_policy=? is set to "constant".

The value ranges from 0 to 1024, expressed in KB.

io_priority=?

I/O priority of a LUN.

The value can be "Low", "Middle", or "High", where:

  • "Low": indicates the low priority.
  • "Middle": indicates the medium priority.
  • "High": indicates the high priority.

The default value is "Low".

owner_controller=?

LUN owning controller.

The value is in the format of "XA","XB","XC" or "XD", where the "X" is an integer ranging from 0 to 3.

dif_switch=?

Whether or not to enable the DIF function.

The value can be:

  • "Yes": The DIF function will be enabled.
  • "No": The DIF function will not be enabled.

remote_lun_wwn_list=?

WWN of a remote LUN.

  • The WWN of the remote LUN consists of 1 to 32 characters, including digits ranging from 0 to 9, lowercase letters ranging from a to f, and uppercase letters ranging from A to F. For example, 6e4a8b6100b0a1cc0003c8c600000001. Two characters can be separated by colons (:). For example, 6e:4a:8b:61:00:b0:a1:cc:00:03:c8:c6:00:00:00:01.
  • You can enter 1 to 10 WWNs of remote LUNs separated by commas (,).
  • You can run the "show remote_lun general" command to obtain the WWN of the remote LUN.

storage_pool_id=?

ID of the storage pool to which a LUN belongs.

To obtain the value, run the "show storage_pool general" command.

type=?

Type of the takeover logical unit number (LUN).

The value can be:

  • "BASIC": basic takeover LUN.
  • "EXTEND": expansion takeover LUN.
  • "INHERIT": inherited takeover LUN.
  • "THIRD-PARTY": third-party takeover LUN.

edevlun_id=?

ID of the eDevLUN.

To obtain the value, run the "show lun general usage_type=External" command.

remote_device_id=?

ID of a remote device.

To obtain the value, run "show remote_device general array_type=heterogeneity".

support_thinlun=?

Whether to support thin LUNs.

The value can be "yes" or "no", where:

  • "yes": Thin LUNs are supported.
  • "no": Thin LUNs are not supported. If you select this value, a thick LUN is created by default.

The default value is "yes".

Level

Administrator

Usage Guidelines

None

Example

Create a takeover LUN and set its parameters as follows:

  • Type of the specific takeover LUN: BASIC
  • ID of the eDevLUN: 0
admin:/>create lun_takeover general type=BASIC edevlun_id=0 
Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-07-12

Document ID: EDOC1000138382

Views: 320422

Downloads: 38

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