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 and 18000F V5 Series V500R007

This document is applicable to OceanStor 18500 V5, 18800 V5, 18500F V5, and 18800F V5. Based on the CLI, this document describes how to use various commands classified by functionsand 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).
change disk erase

change disk erase

Function

The change disk erase command is used to erase data on disks. Data can be erased from only non-member disks.

Format

change disk erase disk_id_list=? [ action=? | standards=? | pattern_list=? | count=? | verify=? | capacity_ratio=? ] *

change disk erase disk_id_list=? [ action=? | type=? | standards=? | pattern_list=? | count=? | verify=? | capacity_ratio=? ] *

Parameters

Parameter

Description

Value

disk_id_list=? ID list of the disks that will start erasing data.

The value can be a disk ID range or a disk ID list, where:

  • "Disk ID range": The format is start disk ID-end disk ID, for example, "DAE000.1-5".
  • "Disk ID list": Multiple disk IDs are separated with commas (,), for example, "DAE000.1,DAE000.2,DAE000.3".
To obtain the value, run "show disk general".
action=? Mode of erasing data on disks.

The value can be "overwrite", "block_erase", or "cryptographic_erase". The default value is "block_erase" for non-encrypting disks and "cryptographic_erase" for self-encrypting disks.

type=? Type of data to be erased on disks. This parameter is displayed and configured only in the developer view.

The value can be "data_all" or "data_usr". The default value is "data_usr".

standards=? Overwrite standard for data erasure.

The value can be "dod(e)", "dod(ece)", "vsitr", or "custom". The default value is "dod(e)".

pattern_list=? Customized data list entered by users when overwrite is applied in data erasure and the standard is "custom".

The value can be "r" or a hexadecimal number starting with "0x", both occupying 1 byte. A maximum of 3 bytes can be entered and are separated by commas (,).

count=? Times that the "pattern_list" value entered by users is written to disks when overwrite is applied in data erasure and the standard is "custom".

The value is an integer ranging from 1 to 15. The default value is 1.

verify=? Whether to verify erased data.

The value can be:

  • "yes": verifies erased data.
  • "no": does not verify erased data.
The default value is "no".
capacity_ratio=? Percentage of erased data to be verified to the total capacity of a disk.

The value is from 1 to 100.

Views

Guest, Developer view

Usage Guidelines

None

Example

  • Erase user data on disks whose disk_id_list is DAE000.1, DAE000.2, and DAE000.3 in block erase mode.

    admin:/>change disk erase disk_id_list=DAE000.1,DAE000.2,DAE000.3
    DANGER: You are about to erase data on disks in a specified list. This operation will erase data on disks in the list. The erased data cannot be restored and the disks may fail to be reconnected with the system. To obtain the final data erasure result, export data erasure records or view data erasure operation logs.
    Suggestion: Before running the command, confirm that you need to erase the data on disks in the list and check whether the disks are still in use.
    Have you read the danger alert message carefully?(y/n)y
    Enter "I have read and understand the consequences associated with performing this operation." to confirm running this command:
    I have read and understand the consequences associated with performing this operation.
    Command executed successfully.
  • Erase data on disks whose disk_id_list is DAE000.1-3 in overwrite mode.

    developer:/>change disk erase disk_id_list=DAE000.1-3 action=overwrite standards=dod(e)
    DANGER: You are about to erase data on disks in a specified list. This operation will erase data on disks in the list. The erased data cannot be restored and the disks may fail to be reconnected with the system. To obtain the final data erasure result, export data erasure records or view data erasure operation logs.
    Suggestion: Before running the command, confirm that you need to erase the data on disks in the list and check whether the disks are still in use.
    Have you read the danger alert message carefully?(y/n)y
    Enter "I have read and understand the consequences associated with performing this operation." to confirm running this command:
    I have read and understand the consequences associated with performing this operation.
    Command executed successfully.
  • Erase data on disks whose disk_id_list is DAE000.1-3 in overwrite mode and verify the erased data.

    developer:/>change disk erase disk_id_list=DAE000.1-3 action=overwrite standards=dod(e) verify=yes capacity_ratio=20
    DANGER: You are about to erase data on disks in a specified list and verify erased data. This operation will permanently erase data on disks in the list and cannot be undone. The disks may fail to be reconnected to the system. Besides, it takes a long time to verify erased data. To obtain the final data erasure result, export data erasure records or view data erasure operation logs.
    Suggestion: Before running this command, confirm that you need to erase data on disks in the list and the data is no longer required. Estimate the time required for verifying erased data, and then determine whether to select the verification function or select a proper proportion of data to be verified. For SSDs, about 200 MB to 350 MB data can be verified per second.
    Have you read the danger alert message carefully?(y/n)y
    Enter "I have read and understand the consequences associated with performing this operation." to confirm running this command:
    I have read and understand the consequences associated with performing this operation.
    Command executed successfully.

System Response

None

Translation
Download
Updated: 2020-01-17

Document ID: EDOC1000181602

Views: 765789

Downloads: 66

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next