代码仓
中
Set RAID Parameter Command
更新时间: 2025/06/26
在AtomGit上查看源码

34h-设置RAID参数(Set-RAID-Parameter-Command) ​

修订记录 ​

openUBMC版本号修订日期修订内容
25.062025/06/26初稿,新增命令详情

基本信息 ​

功能说明 ​

设置RAID参数。

权限 ​

命令信息 ​

请求信息 ​

字节顺序域取值说明
NetFn30h
CMD93h
1:3Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。
4Sub command,子命令=34h
5Raid Controller Id(1 based)
6Raid Id(1 based)
7Parameter selector,见 表1 。
8[7:1]:reserved
[0]:级联标志
0=是最后一帧数据
1=后面还有数据
9:10Offset,写入的数据偏移,从0开始
当数据较长需要多次写入时,一定要从头到尾按顺序写入,不能乱序。
11:12Length,写入长度
11:NConfiguration parameter data

响应信息 ​

字节顺序域取值说明
1Completion Code
80h=parameter not supported.
81h=attempt to set the 'set in progress' value (in parameter #0) when not inthe 'set complete' state. (This completion code provides a way torecognize that another party has already 'claimed' the parameters.)
82h=attempt to write read-only parameter
2:4Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。

命令样例 ​

设置SD Owner为x86 ​

请求:

ipmicmd -k "0f 00 30 93 db 07 00 34 01 01 02 00 00 00 01 00 01" smi 0

响应:

0f 31 00 93 00 db 07 00

示例响应假定命令执行成功(完成码 00)。将控制器1、RAID 1的分区所有者设为x86;偏移0、两字节长度0001h,后接所有者01h。

附表1 RAID 参数 ​

参数#数据说明
Raid -create Partition00hdata1-Partition/LUN Number
data2:5-first Partition size(MBYTE, LSB)
data6:9-second Partition size
data10:13-third Partition size
......
dataN:N+3-nth Partition size
创建分区接口
Partition Access state(x86)01hdata1-Partition Selector(Set Selector)
data2-enable state
[7]-read enable state 0b-disable 1b-enable
[6]-write enable state 0b-disable 1b-enable
[5:0]-reservd
设置分区读使能接口
Partition owner02hdata1-owner
00h BMC
01h X86
设置分区owner
Raid -primiarySD Sel03hdata1-SD Card slot设置主SD
Raid -read err threshold04hdata1:4-threshold读错误阈值设置
Raid -write err threshold05hdata1:4-threshold写错误阈值设置
sync mode06hdata1-mode
00h auto
01h manual
同步模式,手动还是自动
start raid rebuild07hdata1-direction
00h SD1->SD2
01h SD2->SD1
设置同步方向
rebuild status08hdata1
0:The storage volume is in sync(已经同步)
1:partition is out of sync(等待同步)
2:partition sync is in progres(正在同步)
3:partition sync was attempted and failed(同步失败)
查询同步状态
rebuild dir09hdata1
00h SD1->SD2
01h SD2->SD1
02h 不满足同步条件
data2~data5 data1为02时,每个bit表示一个条件满足情况。
查询期望同步方向
clear metadata0ahna
清理元数据

返回到索引 ​