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

ipmcset -t storage -d addld

返回总览 | 返回命令索引

命令功能

在已有磁盘阵列上添加逻辑驱动器

命令格式

text
ipmcset -t storage -d addld -v <RAID Controller ID> -array <Disk array ID> [<raidlevel>] [-name <LD name>] [-size <LD size>{m|g|t}] [-ss <64K|128K|256K|512K|1M>] [-rp <ra|nra>] [-wp <wt|wbwithbbu|wb>] [-iop <cio|dio>] [-ap <rw|ro|blocked>] [-dcp <enabled|disabled|default>] [-init <no|quick|full>] [-block <block index>]

参数说明

NameLocationTypeRequiredDefaultConstraintDescription
controlidReqBody--[{"Type": "Range", "Formula": [0, 255]}]-v <RAID Controller ID> The RAID controller on which logical drive will be created. It is mandatory.
arrayidReqBody--[{"Type": "Range", "Formula": [0, 255]}]-array <Disk array ID> The array that logical drive will be added. It is mandatory.
ldnameReqBody--[{"Type": "Length", "Formula": [null, 15]}]-name <LD name> Logical drive name. 15 ASCII characters is maximum. It is optional. The value can't be same as the options if it starts with '-'.
ldsizeReqBody--[{"Type": "Regex", "Formula": "^[0-9]+([.][0-9]+)?[m,g,t,M,G,T]{1}$"}]-size <LD size>{m|g|t} The size of logical drive and the uint can be 'm'(megabytes) , 'g'(gigabytes) , 't'(terabytes). It is optional. If this option is not specified, the size of logical drive depends on the usable size of each array.
stripesizeReqBody--[{"Type": "Enum", "Formula": ["16K", "32K", "64K", "128K", "256K", "512K", "1M", 255]}]-ss <64K|128K|256K|512K|1M> Logical drive strip size. The recommended range is 64K ~ 1M. It is optional. The default of strip size is '256K'.
rpvalueReqBody--[{"Type": "Enum", "Formula": ["ra", "nra", 255]}]-rp <ra|nra> Logical drive read policy. It is optional. The default of read policy is 'Read Ahead'. ra = Read ahead nra = No Read ahead
wpvalueReqBody--[{"Type": "Enum", "Formula": ["wt", "wbwithbbu", "wb", 255]}]-wp <wt|wbwithbbu|wb> Logical drive write policy. It is optional. the default of write policy is 'Write Back with BBU'. wt = Write through wbwithbbu = Write back with BBU wb = Write back
iopvalueReqBody--[{"Type": "Enum", "Formula": ["cio", "dio", 255]}]-iop <cio|dio> Logical drive IO policy. It is optional. The default of IO policy is 'Direct IO'. cio = Cached IO dio = Direct IO
apvalueReqBody--[{"Type": "Enum", "Formula": ["rw", "ro", "blocked", 255]}]-ap <rw|ro|blocked> Logical drive access policy. It is optional. The default of access policy is 'Read Write'. rw = Read write ro = Read only blocked = Blocked
dcpvalueReqBody--[{"Type": "Enum", "Formula": ["enabled", "disabled", "default"]}]-dcp <enabled|disabled|default> Logical drive disk cache policy. It is optional. The default of disk cache policy is 'Enabled'. enabled = Enable disk cache disabled = Disable disk cache default = Unchanged and determined by disk type
initmodeReqBody--[{"Type": "Enum", "Formula": ["no", "quick", "full", "rpi", "opo"]}]-init <no|quick|full> Logical drive init type. It is optional. The default of init type is 'None'. no = Don't initialize the logical drive quick = Quickly initialize the logical drive full = Fully initialize the logical drive
blockidReqBody--[{"Type": "Range", "Formula": [-1, 32]}]-block <block index> Continuous space to which a logical drive is to be added. It is optional.
AccelerationMethodReqBody----
VolumeRaidTypeReqBodynumber---
cachecadeReqBodynumber---

响应/输出说明

NameLocationTypeRequiredDefaultConstraintDescription
ControlidExistRspBody----

后端处理流

StepTypePath/URIInterfaceField/MethodSourceDestination
1Method/bmc/kepler/MdbServicebmc.kepler.MdbGetPath-{"Path": "Path"}
2Task${ProcessingFlow[1]/Destination/Path}bmc.kepler.Systems.Storage.Controller.VolumeManageCreateVolumeInExisingtArray--

使用示例

text
ipmcset -t storage -d addld -v <RAID Controller ID> -array <Disk array ID> [<raidlevel>] [-name <LD name>] [-size <LD size>{m|g|t}] [-ss <64K|128K|256K|512K|1M>] [-rp <ra|nra>] [-wp <wt|wbwithbbu|wb>] [-iop <cio|dio>] [-ap <rw|ro|blocked>] [-dcp <enabled|disabled|default>] [-init <no|quick|full>] [-block <block index>]

输出样例

ScenarioOutputSource
失败Invalid RAID controller ID.interface_config/cli/echoes/ipmcset/storage_addld
处理中The operation may take a few seconds, Please wait...interface_config/cli/echoes/ipmcset/storage_addld
失败Add logical drive failed.interface_config/cli/echoes/ipmcset/storage_addld
成功Add logical drive successfully.interface_config/cli/echoes/ipmcset/storage_addld

来源信息

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