Get RAID Parameter Command
更新时间: 2026/08/06
在Gitcode上查看源码

Get RAID Parameter Command

Change History

openUBMC VersionRevision DateDescription
25.062025/06/26Initial draft: add command details

Basic Information

Function Description

Obtain the RAID configuration.

Privilege

Command Information

Request Information

ByteData Field
NetFn30h
CMD93h
1:3Manufacturer 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.
4Sub command, sub command=42h
5Raid Controller Id(1 based)
6Raid Id(1 based)
7Parameter selector. For details, see Reference.
8:9Read offset, starting from 0.
10:11Length: read length

Response Information

ByteData Field
1Completion Code
80h-Device not present
2:4Manufacturer 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.
5End 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:NIndicates the data. The returned data may be less than or equal to the read length.

Reference

Table 1 Parameters for configuring RAID

Parameter#DataDescription
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
Creates partitions.
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
Enables a partition to read.
Partition owner02hdata1-owner
00h BMC
01h X86
Sets the partition owner.
Raid -primiarySD Sel03hdata1-SD Card slotSets the active SD card.
Raid -read err threshold04hdata1:4-thresholdSets the read error threshold.
Raid -write err threshold05hdata1:4-thresholdSets the write error threshold.
sync mode06hdata1-mode
00h auto
01h manual
Specifies the synchronization mode (manual or automatic).
start raid rebuild07hdata1-direction
00h SD1->SD2
01h SD2->SD1
Set the synchronization direction.
rebuild status08hdata1
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 dir09hdata1
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 metadata0ahnaClears meta data.

Command Example

Query the RAID configuration.

Request:

bash
ipmicmd -k "0f 00 MM NN" smi 0

Response:

text
0f MM NN

Back to Index