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>]>

参数说明

NameLocationTypeRequiredDefaultConstraintDescription
pdidReqBodyinteger-[{"Type": "Range", "Formula": [0, 255]}]options: -v <Physical Drive ID> The physical drive which will be set. It is mandatory.
stateReqBodystring-[{"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
hotspareReqBodystring-[{"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
ldReqBodystring---
locateReqBodystring-[{"Type": "Enum", "Formula": ["nil", "start", "stop"]}]-locate <start|stop> Set physical drive location state. start = Start locating physical drive stop = Stop locating physical drive
cryptoeraseReqBodystring-[{"Type": "Enum", "Formula": ["nil", "cryptoerase"]}]-cryptoerase Cryptographically erase physical drive.
bootReqBodystring-[{"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

响应/输出说明

NameLocationTypeRequiredDefaultConstraintDescription
pdidIsValidRspBody----
SystemLockDownStatusRspBody----
stateRspBody----
hotspareRspBody----
locateRspBody----
cryptoeraseRspBody----
bootRspBody----

后端处理流

StepTypePath/URIInterfaceField/MethodSourceDestination
1Method/bmc/kepler/MdbServicebmc.kepler.MdbGetPath-{"Path": "Path"}
2Property/bmc/kepler/Systems/1bmc.kepler.Systems.SystemLockDown--{"SystemLockDownStatus": "SystemLockDownStatus"}
3Method${ProcessingFlow[1]/Destination/Path}bmc.kepler.Systems.Storage.DriveSetFirmwareStatus--
4Method${ProcessingFlow[1]/Destination/Path}bmc.kepler.Systems.Storage.DriveSetHotspareType--
5Method${ProcessingFlow[1]/Destination/Path}bmc.kepler.Systems.Storage.DriveSetLocationIndicatorState--
6Method${ProcessingFlow[1]/Destination/Path}bmc.kepler.Systems.Storage.DriveCryptoErase--
7Method${ProcessingFlow[1]/Destination/Path}bmc.kepler.Systems.Storage.DriveSetBootPriority--

使用示例

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>]>

输出样例

ScenarioOutputSource
其他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

来源信息

ItemValue
命令类型ipmcset
targetstorage
dataitempdconfig
URI/cli/v1/storage/pdconfig
Interface TypePatch
配置来源interface_config/cli/ipmcset/storage.json
请求版本26.06_2026.06.30
源码提交5606349e
生成时间2026-07-16T01:48:37