查询和设置虚拟磁盘擦除

命令功能

命令格式

命令

说明

hiraidadm ccontroller_id:vdvd_id show sanitize

查询虚拟磁盘擦除进度。

hiraidadm ccontroller_id:vdvd_id start sanitize mode=sanitize_mode

设置并开始擦除虚拟磁盘。

hiraidadm ccontroller_id:vdvd_id stop sanitize

停止擦除虚拟磁盘。

参数说明

参数

参数说明

取值

controller_id

控制卡的ID。

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

vd_id

虚拟磁盘的ID。

查询虚拟磁盘的ID请参见查询控制卡虚拟磁盘列表

sanitize_mode

设置擦除模式。

  • simple:仅对虚拟磁盘进行一轮擦除动作。
  • normal:对虚拟磁盘进行三轮擦除动作。
  • thorough:对虚拟磁盘进行九轮擦除动作。

使用指南

回显中主要字段的含义如表1所示。
表1 回显说明

命令格式

字段

含义

举例

hiraidadm ccontroller_id:vdvd_id show sanitize

ID

序号。

lun_0_autocase

Name

逻辑盘名称。

0

Capacity

容量大小。

10.000GB

Task Status

擦除状态。

Running

VD Status

逻辑盘当前状态。

sanitizing

Rate

擦除速度。

low

Sanitize mode

LUN的擦除模式。

simple

Progress

擦除进度。

94%

Estimated Time

预计剩余时间。

1(min)

使用实例

查询指定虚拟磁盘的擦除进度。
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[root@localhost ~]# hiraidadm c0:vd1 show sanitize
========================================== Hiraidadm   Information ===========================================
    Name: hiraidadm
    Version: 1.2.0.2
    Build Time: Nov 15 2022 22:07:55
==============================================================================================================
==============================================================================================================
    Status Code = 0
    Status = Success
    Description = None
==============================================================================================================
                  Virtual Drive Sanitize Information
--------------------------------------------------------------------------------------------------------------
ID                       | 0
Name                     | vd_name
Capacity                 | 292.969GB
Task Status              | Running
VD Status                | sanitizing
Rate                     | low
Sanitize Mode            | simple
Progress                 | 0%
Estimated Time           | 112 min
--------------------------------------------------------------------------------------------------------------

启动擦除指定虚拟磁盘。

[root@localhost ~]# hiraidadm c0:vd1 start sanitize mode=simple
=========================================== Hiraidadm Information ============================================
    Name: hiraidadm
    Version: 1.2.0.2
    Build Time: Nov 15 2022 22:07:55
==============================================================================================================
==============================================================================================================
    Status Code = 0
    Status = Success
    Description = None
==============================================================================================================

停止擦除指定虚拟磁盘。

[root@localhost ~]# hiraidadm c0:vd1 stop sanitize
=========================================== Hiraidadm Information ============================================
    Name: hiraidadm
    Version: 1.2.0.2
    Build Time: Nov 15 2022 22:07:55
==============================================================================================================
==============================================================================================================
    Status Code = 0
    Status = Success
    Description = None
==============================================================================================================