ipmcset -t storage -d pdconfig
更新时间: 2026/07/16
在Gitcode上查看源码ipmcset -t storage -d pdconfig
命令功能
设置物理驱动器配置
命令格式
text
ipmcset -t storage -d pdconfig -v <Physical Drive ID> <[-state <online|offline|ug|jbod>] [-hotspare <none|global|dedicated|autoreplace> [-ld <Logical Drive ID>]] [-locate <start|stop>] [-cryptoerase] [-boot <none|primary|secondary|all>]>参数说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
pdid | ReqBody | integer | 是 | - | [{"Type": "Range", "Formula": [0, 255]}] | options: -v <Physical Drive ID> The physical drive which will be set. It is mandatory. |
state | ReqBody | string | 否 | - | [{"Type": "Enum", "Formula": ["nil", "online", "offline", "ug", "jbod"]}] | -state <online|offline|ug|jbod> Set physical drive firmware state. online = Set physical drive state to ONLINE. The drive must be participated in logical drive offline = Set physical drive state to OFFLINE. The drive must be participated in logical drive ug = Set physical drive state to UNCONFIGURED GOOD jbod = Set physical drive state to JBOD (Drive is exposed and controlled by host). You should enable JBOD of RAID controller first |
hotspare | ReqBody | string | 否 | - | [{"Type": "Enum", "Formula": ["nil", "none", "global", "dedicated", "autoreplace"]}] | -hotspare <none|global|dedicated|autoreplace> Set physical drive hotspare state. none = Cancel physical drive hot spare global = Set physical drive as global hot spare device dedicated -ld <Logical Drive ID> = Set physical drive as dedicated hot spare device and the option '-ld' specify the logical drive ID for which physical drive dedicated hot spare, separated by commas. autoreplace -ld <Logical Drive ID> = Set physical drive as autoreplace hot spare device and the option '-ld' specify the logical drive ID for which physical drive autoreplace hot spare |
ld | ReqBody | string | 否 | - | - | - |
locate | ReqBody | string | 否 | - | [{"Type": "Enum", "Formula": ["nil", "start", "stop"]}] | -locate <start|stop> Set physical drive location state. start = Start locating physical drive stop = Stop locating physical drive |
cryptoerase | ReqBody | string | 否 | - | [{"Type": "Enum", "Formula": ["nil", "cryptoerase"]}] | -cryptoerase Cryptographically erase physical drive. |
boot | ReqBody | string | 否 | - | [{"Type": "Enum", "Formula": ["nil", "none", "primary", "secondary", "all"]}] | -boot Set physical drive as boot device. none = Disable physical drive as boot device primary = Set physical drive as first boot device secondary = Set physical drive as second boot device all = Set physical drive as first and second boot device |
响应/输出说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
pdidIsValid | RspBody | - | 否 | - | - | - |
SystemLockDownStatus | RspBody | - | 否 | - | - | - |
state | RspBody | - | 否 | - | - | - |
hotspare | RspBody | - | 否 | - | - | - |
locate | RspBody | - | 否 | - | - | - |
cryptoerase | RspBody | - | 否 | - | - | - |
boot | RspBody | - | 否 | - | - | - |
后端处理流
| Step | Type | Path/URI | Interface | Field/Method | Source | Destination |
|---|---|---|---|---|---|---|
| 1 | Method | /bmc/kepler/MdbService | bmc.kepler.Mdb | GetPath | - | {"Path": "Path"} |
| 2 | Property | /bmc/kepler/Systems/1 | bmc.kepler.Systems.SystemLockDown | - | - | {"SystemLockDownStatus": "SystemLockDownStatus"} |
| 3 | Method | ${ProcessingFlow[1]/Destination/Path} | bmc.kepler.Systems.Storage.Drive | SetFirmwareStatus | - | - |
| 4 | Method | ${ProcessingFlow[1]/Destination/Path} | bmc.kepler.Systems.Storage.Drive | SetHotspareType | - | - |
| 5 | Method | ${ProcessingFlow[1]/Destination/Path} | bmc.kepler.Systems.Storage.Drive | SetLocationIndicatorState | - | - |
| 6 | Method | ${ProcessingFlow[1]/Destination/Path} | bmc.kepler.Systems.Storage.Drive | CryptoErase | - | - |
| 7 | Method | ${ProcessingFlow[1]/Destination/Path} | bmc.kepler.Systems.Storage.Drive | SetBootPriority | - | - |
使用示例
text
ipmcset -t storage -d pdconfig -v <Physical Drive ID> <[-state <online|offline|ug|jbod>] [-hotspare <none|global|dedicated|autoreplace> [-ld <Logical Drive ID>]] [-locate <start|stop>] [-cryptoerase] [-boot <none|primary|secondary|all>]>输出样例
| Scenario | Output | Source |
|---|---|---|
| 其他 | The operation may take a few seconds, Please wait... | interface_config/cli/echoes/ipmcset/storage_pdconfig |
| 成功 | Set physical drive state successfully. | interface_config/cli/echoes/ipmcset/storage_pdconfig |
| 成功 | Set physical drive hot spare state successfully. | interface_config/cli/echoes/ipmcset/storage_pdconfig |
| 成功 | Set physical drive location state successfully. | interface_config/cli/echoes/ipmcset/storage_pdconfig |
| 成功 | Cryptographically erase physical drive successfully. | interface_config/cli/echoes/ipmcset/storage_pdconfig |
| 成功 | Set physical drive as boot device successfully. | interface_config/cli/echoes/ipmcset/storage_pdconfig |
来源信息
| Item | Value |
|---|---|
| 命令类型 | ipmcset |
| target | storage |
| dataitem | pdconfig |
| URI | /cli/v1/storage/pdconfig |
| Interface Type | Patch |
| 配置来源 | interface_config/cli/ipmcset/storage.json |
| 请求版本 | 26.06_2026.06.30 |
| 源码提交 | 5606349e |
| 生成时间 | 2026-07-16T01:48:37 |