查询和设置硬盘erase擦除

命令功能

  • 相较于sanitize,erase擦除模式支持的物理盘类型更多,但总体速度慢于sanitize模式。
  • 支持Security feature set的SATA SSD无法停止erase。

命令格式

命令

说明

hiraidadm ccontroller_id:eenclosure_id:sslot_id show erase

查询硬盘erase擦除进度。

hiraidadm ccontroller_id:eenclosure_id:sslot_id start erase mode=erase_mode [pa=11100000 pb=11110000]

启动硬盘erase擦除。

hiraidadm ccontroller_id:eenclosure_id:sslot_id stop erase

停止硬盘erase擦除。

参数说明

参数

参数说明

取值

controller_id

控制卡的ID。

查询控制卡ID请参见查询控制卡列表

enclosure_id

硬盘所在框位的ID。

查询硬盘所在框位ID请参见查询控制卡硬盘列表

slot_id

硬盘所在槽位的ID。

查询硬盘所在槽位ID请参见查询控制卡硬盘列表

erase_mode

设置擦除模式。

  • simple:单次擦除
  • normal:擦除3次
  • thorough:擦除9次

pa

擦除模式A覆盖数据。

默认值:11100000

pb

擦除模式B覆盖数据。

默认值:11110000

使用指南

使用实例

查询硬盘erase擦除进度。
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
[root@localhost ~]# hiraidadm c0:e0:s2 show erase
========================================== Hiraidadm   Information ===========================================
    Name: hiraidadm
    Version: 1.2.0.2
    Build Time: Nov 15 2022 22:07:55
==============================================================================================================
==============================================================================================================
    Status Code = 0
    Status = Success
    Description = None
==============================================================================================================
Erase Progress         | 0%
Estimated Time         | 0 min
启动硬盘erase擦除。
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
[root@localhost ~]# hiraidadm c0:e0:s2 start erase mode=simple pa=11100000 pb=11110000
========================================== Hiraidadm   Information ===========================================
    Name: hiraidadm
    Version: 1.2.0.2
    Build Time: Nov 15 2022 22:07:55
==============================================================================================================
==============================================================================================================
    Status Code = 0
    Status = Success
    Description = None
==============================================================================================================
停止硬盘erase擦除。
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
[root@localhost ~]# hiraidadm c0:e0:s2 stop erase
========================================== Hiraidadm   Information ===========================================
    Name: hiraidadm
    Version: 1.2.0.2
    Build Time: Nov 15 2022 22:07:55
==============================================================================================================
==============================================================================================================
    Status Code = 0
    Status = Success
    Description = None
==============================================================================================================