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 for Block

OceanStor Dorado V3 Series V300R002

This document is applicable to OceanStor Dorado3000 V3, Dorado5000 V3, Dorado6000 V3 and Dorado18000 V3. Based on the CLI provided by the 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.
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).
delete lun

delete lun

Function

The delete lun command is used to delete logical unit numbers (LUNs).

Format

delete lun lun_id_list=? [ force=? ]

Parameters

Parameter

Description

Value

lun_id_list=?

ID list of LUNs that you want to delete.

To obtain the value, run "show lun general". Multiple IDs are separated by commas (,), or ID range separated by hyphens(-), such as: 0,5-8.

force=?

To forcibly delete a LUN or not.

The value can be "yes" or "no", and the default value is "no". This parameter is only used to forcibly delete an eDevLUN, but is not recommended to be used to forcibly delete LUNs of other types.

Level

Administrator

Usage Guidelines

  • Running this command will delete the information about the LUN from the storage system and the data on the LUN.
  • Before running this command, ensure that the selected LUN is exactly the one you want to delete and no service is running on the LUN.
  • A LUN cannot be deleted when any one of the following conditions is met:
    • The LUN has been added to a mapping view.
    • The LUN has been used for remote replication.
    • The LUN has been used for snapshot.

Example

  • To delete LUNs "5" and "6", run the following command:
    admin:/>delete lun lun_id_list=5,6 
    WARNING: You are about to delete LUN. This operation will delete the data on the LUN. 
    Suggestion: Before performing this operation, ensure that the data on the LUN has been backed up or is no longer necessary. 
    Have you read warning message carefully?(y/n)y 
    Are you sure you really want to perform the operation?(y/n)y 
    Delete LUN 5 successfully. 
    Delete LUN 6 successfully. 
     
  • To delete LUN "3", run the following command:
    admin:/>delete lun lun_id_list=3 force=yes 
    DANGER: You are about to forcibly delete the LUN. If some data of the LUN is temporarily stored on the high-speed cache, this operation may cause user data loss. 
    Suggestion: 
    1. Before forcibly deleting the LUN, ensure that the data of the LUN on the high-speed cache has been written to disks or external disk arrays. 
    2. If the data of the LUN on the high-speed cache cannot be written to disks or external disk arrays due to disk or disk array faults, recover those faults and write data to disks or external disk arrays. Then run the command without the forcible deletion option to delete the LUN. 
    Have you read danger alert message carefully?(y/n)y 
    Are you sure you really want to perform the operation?(y/n)y 
    Delete LUN 3 successfully.

System Response

None

Translation
Download
Updated: 2019-07-16

Document ID: EDOC1100049140

Views: 114987

Downloads: 134

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