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

Advanced O&M Command Reference

OceanStor 18000 V3 Series V300R006

This document is applicable to OceanStor 18500 V3 and 18800 V3. Based on the CLI, 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_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=? ] [ ignore_reservation=? ] | edevlun_id=? | remote_device_id=? lun_id=? ]

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".

ignore_reservation=?

Whether to ignore the SCSI reservation check.

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

  • "yes": ignores the SCSI reservation information.
  • "no": checks the SCSI reservation information.

The default value is "no".

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".

Views

Developer view

Usage Guidelines

None

Example

Create a takeover LUN, ignore the SCSI reservation check, and set its parameters as follows:

  • Type of the specific takeover LUN: THIRD-PARTY
  • WWN of the remote LUN: 60:06:01:60:28:f0:36:00:05:52:31:bb:b5:60:e9:11
developer:/>create lun_takeover general type=THIRD-PARTY remote_lun_wwn_list=60:06:01:60:28:f0:36:00:05:52:31:bb:b5:60:e9:11 name=edv1 storage_pool_id=0 write_policy=write_through ignore_reservation=yes 
DANGER:You are about to create the remote LUN as an eDevLUN and ignore the SCSI reservation check. 
If SCSI reservation information exists on the remote LUN, services may fail to be delivered to the created eDevLUN. 
Suggestion: Before performing this operation, ensure that no SCSI reservation information exists on the remote LUN. 
Have you read danger alert 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: EDOC1000138389

Views: 496741

Downloads: 85

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