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

返回总览

命令功能

设置物理驱动器配置

命令格式

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

命令类型

ipmcset

参数说明

NameTypeRequiredDefaultConstraintDescription
pdidinteger-Type: Range; 0, 255options: -v <Physical Drive ID> The physical drive which will be set. It is mandatory.
statestring-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
hotsparestring-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
ldstring---
locatestring-Type: Enum; Enum: nil, start, stop-locate <start│stop> Set physical drive location state. start = Start locating physical drive stop = Stop locating physical drive
cryptoerasestring-Type: Enum; Enum: nil, cryptoerase-cryptoerase Cryptographically erase physical drive.
bootstring-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

使用示例

ipmcset -t storage -d pdconfig -v 1 -state ug
ipmcset -t storage -d pdconfig -v 1 -locate start

输出样例

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.

配置来源

interface_config/cli/ipmcset/storage.json