ipmcset -t storage -d pdconfig
更新时间: 2026/07/28
在Gitcode上查看源码Command Function
Set physical drive configurations
Command Format
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>]>
Command type
ipmcset
Parameters
| Name | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|
pdid | integer | Yes | - | Type: Range; 0, 255 | options: -v <Physical Drive ID> The physical drive which will be set. It is mandatory. |
state | string | No | - | Type: Enum; Enum: 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 | string | No | - | Type: Enum; Enum: 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 | string | No | - | - | - |
locate | string | No | - | Type: Enum; Enum: nil, start, stop | -locate <start│stop> Set physical drive location state. start = Start locating physical drive stop = Stop locating physical drive |
cryptoerase | string | No | - | Type: Enum; Enum: nil, cryptoerase | -cryptoerase Cryptographically erase physical drive. |
boot | string | No | - | Type: Enum; Enum: 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 |
Example
ipmcset -t storage -d pdconfig -v 1 -state ugipmcset -t storage -d pdconfig -v 1 -locate startOutput Examples
Set physical drive state successfully.
Set physical drive hot spare state successfully.
Set physical drive location state successfully.
Cryptographically erase physical drive successfully.
Set physical drive as boot device successfully.