所选语种没有对应资源,请选择:

本站点使用Cookies,继续浏览表示您同意我们使用Cookies。Cookies和隐私政策>

提示

尊敬的用户,您的IE浏览器版本过低,为获取更好的浏览体验,请升级您的IE浏览器。

升级

OceanStor Dorado V3系列 V300R002 高级运维命令参考(块业务)

本产品文档适用于OceanStor Dorado3000 V3, Dorado5000 V3, Dorado6000 V3和Dorado18000 V3。本文档针对CLI命令行,介绍如何使用CLI设置和管理存储系统,以及按功能分类详细介 绍各命令的使用方法。
评分并提供意见反馈 :
华为采用机器翻译与人工审校相结合的方式将此文档翻译成不同语言,希望能帮助您更容易理解此文档的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 华为对于翻译的准确性不承担任何责任,并建议您参考英文文档(已提供链接)。
change disk erase

change disk erase

命令功能

change disk erase命令用于支持硬盘数据擦除功能,只能擦除非成员盘或硬盘域中的故障成员盘。

命令格式

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=? ] *

参数说明

参数

参数说明

取值

disk_id_list=?

执行数据擦除的硬盘ID列表。

取值为硬盘ID范围或硬盘ID列表:

  • 硬盘ID范围:起始硬盘ID-结束硬盘ID,以“-”连接,如DAE000.1-5。
  • 硬盘ID列表:多个硬盘ID间以“,”分隔,如DAE000.1,DAE000.2,DAE000.3。

可以通过“show disk general”命令获取。

action=?

硬盘执行数据擦除的方式。

取值为overwrite、block_erase和cryptographic_erase。非加密盘默认值为block_erase,加密盘默认值为cryptographic_erase。

type=?

擦除硬盘数据的类型,仅在研发视图下可选。

取值为data_all和data_usr。默认值为data_usr。

standards=?

硬盘数据擦除overwrite遵循的标准。

取值为dod(e)、dod(ece)、vsitr和custom。默认值为dod(e)。

pattern_list=?

硬盘数据擦除方式为overwrite且标准采用用户自定义时,用户输入的自定义数据列表。

取值为r或者0x开头的1个字节的十六进制数,用逗号相隔,最多输入3字节。

count=?

硬盘数据擦除方式为overwrite且标准采用用户自定义时,用户输入的pattern_list值写入硬盘的次数。

取值为[1,15]的整数。默认值为1。

verify=?

是否校验擦除数据。

取值为:

  • yes:校验擦除数据。
  • no:不校验擦除数据。

默认为“no”。

capacity_ratio=?

校验擦除数据占全盘容量的百分比。

参数取值为1~100的百分比。

视图

用户视图,研发视图

使用指南

无。

使用实例

  • 以block erase方式擦除硬盘ID列表为DAE000.1,DAE000.2,DAE000.3的用户数据。
    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.
  • 以overwrite方式擦除ID列表为DAE000.1-3的全盘数据。
    developer:/>change disk erase disk_id_list=DAE000.1-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.
  • 以overwrite方式擦除ID列表为DAE000.1-3的全盘数据并且对擦除数据进行校验。
    developer:/>change disk erase disk_id_list=DAE000.1-3 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.

输出说明

无。

翻译
下载文档
更新时间:2019-07-17

文档编号:EDOC1100049100

浏览量:51538

下载量:66

平均得分:
本文档适用于这些产品
相关文档
相关版本
Share
上一页 下一页