查询和配置控制卡故障修复策略

命令功能

查询和设置控制卡故障修复策略。

命令格式

命令

说明

hiraidadm ccontroller_id set repair policy=repair_policy

配置控制卡的修复策略。

hiraidadm ccontroller_id show repair_policy

查询控制卡的修复策略。

参数说明

参数

参数说明

取值

controller_id

控制卡的ID。

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

repair_policy

控制卡的修复策略。

  • Confirm:FW根据策略,选择不上报盘,上报错误。
  • Default:后台修复错误,修复系统后正常运行,提供日志记录和查询接口。

使用指南

设置控制卡的修复策略时,输入命令后提示“Do you confirm the execution [Warning] after setting "policy=default", the system will repair according to the default policy, and the problem of data loss may occur after repairing. Please input [y|Y] for yes, others for cancel”时。
  • 输入“y”或“Y”并按“Enter”确认操作。
  • 输入其他取消操作。

使用实例

设置控制卡的修复策略。
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
[root@localhost ~]# hiraidadm c0 set repair policy=default
========================================== Hiraidadm   Information ===========================================
    Name: hiraidadm
    Version: 1.2.0.2
    Build Time: Nov 15 2022 22:07:55
==============================================================================================================
Do you confirm the execution  [Warning] after setting "policy=default", the system will repair according
 to the default policy, and the problem of data loss may occur after repairing
Please input [y|Y] for yes, others for cancel
---------------------------------------------
y
==============================================================================================================
    Status Code = 0
    Status = Success
    Description = None
==============================================================================================================
查询控制卡修复策略。
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
[root@localhost ~]# hiraidadm c0 show repair_policy
========================================== Hiraidadm   Information ===========================================
    Name: hiraidadm
    Version: 1.2.0.2
    Build Time: Nov 15 2022 22:07:55
==============================================================================================================
==============================================================================================================
    Status Code = 0
    Status = Success
    Description = None
==============================================================================================================
The current repair policy is default.