Set RAID Parameter Command
更新时间: 2026/08/06
在Gitcode上查看源码Set RAID Parameter Command
Change History
| openUBMC Version | Revision Date | Description |
|---|---|---|
| 25.06 | 2025/06/26 | Initial draft: add command details |
Basic Information
Function Description
This command is used to set RAID parameters.
Privilege
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | 30h |
| CMD | 93h |
| 1:3 | Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h. |
| 4 | Sub command, sub command=34h |
| 5 | Raid Controller Id(1 based) |
| 6 | Raid Id(1 based) |
| 7 | Parameter selector. For details, see Table 1. |
| 8 | [7:1]: reserved [0]: cascading flag 0: last data 1: middle data |
| 9:10 | Offset of the written data, starting from 0. Write data in sequence when they are written as multiple frames. |
| 11:12 | Length: write length |
| 11:N | Configuration parameter data |
Response Information
| Byte | Data Field |
|---|---|
| 1 | Completion 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:4 | Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h. |
Reference Information
Table 1 RAID parameters
| Parameter | # | Data | Description |
|---|---|---|---|
| Raid -create Partition | 00h | data1-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 | Creates partitions. |
| Partition Access state(x86) | 01h | data1-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 | Enables a partition to read. |
| Partition owner | 02h | data1-owner 00h BMC 01h X86 | Sets the partition owner. |
| Raid -primiarySD Sel | 03h | data1-SD Card slot | Sets the active SD card. |
| Raid -read err threshold | 04h | data1:4-threshold | Sets the read error threshold. |
| Raid -write err threshold | 05h | data1:4-threshold | Sets the write error threshold. |
| sync mode | 06h | data1-mode 00h auto 01h manual | Specifies the synchronization mode (manual or automatic). |
| start raid rebuild | 07h | data1-direction 00h SD1->SD2 01h SD2->SD1 | Set the synchronization direction. |
| rebuild status | 08h | data1 0: The storage volume is in sync (synchronized) 1: partition is out of sync (waiting for synchronization) 2: partition sync is in progres (being synchronized) 3: partition sync was attempted and failed (synchronization failure) | This item checks synchronization status. |
| rebuild dir | 09h | data1 00h SD1->SD2 01h SD2->SD1 02h: Synchronization conditions are not met. When data2 to data5 are 02, each bit indicates whether a condition is met. | To query the expected synchronization direction |
| clear metadata | 0ah | na | Clears meta data. |
Command Example
Set the SD owner to x86.
Request:
bash
ipmicmd -k "0f 00 MM NN" smi 0Response:
text
0f MM NN