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>]参数说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
controlid | ReqBody | - | 是 | - | [{"Type": "Range", "Formula": [0, 255]}] | -v <RAID Controller ID> The RAID controller on which logical drive will be created. It is mandatory. |
arrayid | ReqBody | - | 是 | - | [{"Type": "Range", "Formula": [0, 255]}] | -array <Disk array ID> The array that logical drive will be added. It is mandatory. |
ldname | ReqBody | - | 否 | - | [{"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 '-'. |
ldsize | ReqBody | - | 否 | - | [{"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. |
stripesize | ReqBody | - | 否 | - | [{"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'. |
rpvalue | ReqBody | - | 否 | - | [{"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 |
wpvalue | ReqBody | - | 否 | - | [{"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 |
iopvalue | ReqBody | - | 否 | - | [{"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 |
apvalue | ReqBody | - | 否 | - | [{"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 |
dcpvalue | ReqBody | - | 否 | - | [{"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 |
initmode | ReqBody | - | 否 | - | [{"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 |
blockid | ReqBody | - | 否 | - | [{"Type": "Range", "Formula": [-1, 32]}] | -block <block index> Continuous space to which a logical drive is to be added. It is optional. |
AccelerationMethod | ReqBody | - | 否 | - | - | - |
VolumeRaidType | ReqBody | number | 否 | - | - | - |
cachecade | ReqBody | number | 否 | - | - | - |
响应/输出说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
ControlidExist | RspBody | - | 否 | - | - | - |
后端处理流
| Step | Type | Path/URI | Interface | Field/Method | Source | Destination |
|---|---|---|---|---|---|---|
| 1 | Method | /bmc/kepler/MdbService | bmc.kepler.Mdb | GetPath | - | {"Path": "Path"} |
| 2 | Task | ${ProcessingFlow[1]/Destination/Path} | bmc.kepler.Systems.Storage.Controller.VolumeManage | CreateVolumeInExisingtArray | - | - |
使用示例
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>]输出样例
| Scenario | Output | Source |
|---|---|---|
| 失败 | 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 |
来源信息
| Item | Value |
|---|---|
| 命令类型 | ipmcset |
| target | storage |
| dataitem | addld |
| URI | /cli/v1/storage/addld |
| Interface Type | Patch |
| 配置来源 | interface_config/cli/ipmcset/storage.json |
| 请求版本 | 26.06_2026.06.30 |
| 源码提交 | 5606349e |
| 生成时间 | 2026-07-16T01:48:37 |