ipmcset -t storage -d pdconfig
更新时间: 2026/07/28
在Gitcode上查看源码

Back to Overview

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

NameTypeRequiredDefaultConstraintDescription
pdidintegerYes-Type: Range; 0, 255options: -v <Physical Drive ID> The physical drive which will be set. It is mandatory.
statestringNo-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
hotsparestringNo-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
ldstringNo---
locatestringNo-Type: Enum; Enum: nil, start, stop-locate <start│stop> Set physical drive location state. start = Start locating physical drive stop = Stop locating physical drive
cryptoerasestringNo-Type: Enum; Enum: nil, cryptoerase-cryptoerase Cryptographically erase physical drive.
bootstringNo-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 ug
ipmcset -t storage -d pdconfig -v 1 -locate start

Output 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.

Config source

interface_config/cli/ipmcset/storage.json