Get RAID Parameter Command
更新时间: 2026/08/06
在Gitcode上查看源码Get RAID Parameter Command
Change History
| openUBMC Version | Revision Date | Description |
|---|---|---|
| 25.06 | 2025/06/26 | Initial draft: add command details |
Basic Information
Function Description
Obtain the RAID configuration.
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=42h |
| 5 | Raid Controller Id(1 based) |
| 6 | Raid Id(1 based) |
| 7 | Parameter selector. For details, see Reference. |
| 8:9 | Read offset, starting from 0. |
| 10:11 | Length: read length |
Response Information
| Byte | Data Field |
|---|---|
| 1 | Completion Code 80h-Device not present |
| 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. |
| 5 | End of list, indicating whether the data reading is complete. Long data may need to be read multiple times. This field is used to check whether data is completely read. [7:1]: reserved [0]: End of list 0=last data 1=middle data[reserved] |
| 6:N | Indicates the data. The returned data may be less than or equal to the read length. |
Reference
Table 1 Parameters for configuring RAID
| 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 (Synchronizing) 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: The synchronization condition is 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
Query the RAID configuration.
Request:
bash
ipmicmd -k "0f 00 MM NN" smi 0Response:
text
0f MM NN