ipmcset -t storage -d addld
更新时间: 2026/07/28
在Gitcode上查看源码命令功能
在已有磁盘阵列上添加逻辑驱动器
命令格式
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>]
命令类型
ipmcset
参数说明
| Name | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|
controlid | - | 是 | - | Type: Range; 0, 255 | -v <RAID Controller ID> The RAID controller on which logical drive will be created. It is mandatory. |
arrayid | - | 是 | - | Type: Range; 0, 255 | -array <Disk array ID> The array that logical drive will be added. It is mandatory. |
ldname | - | 否 | - | Type: Length; Min: None; Max: 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 | - | 否 | - | Regex | -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 | - | 否 | - | Type: Enum; Enum: 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 | - | 否 | - | Type: Enum; Enum: 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 | - | 否 | - | Type: Enum; Enum: 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 | - | 否 | - | Type: Enum; Enum: 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 | - | 否 | - | Type: Enum; Enum: 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 | - | 否 | - | Type: Enum; Enum: 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 | - | 否 | - | Type: Enum; Enum: 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 | - | 否 | - | Type: Range; -1, 32 | -block <block index> Continuous space to which a logical drive is to be added. It is optional. |
AccelerationMethod | - | 否 | - | - | - |
VolumeRaidType | number | 否 | - | - | - |
cachecade | number | 否 | - | - | - |
Regex正则表达式
ldsize
^[0-9]+([.][0-9]+)?[m,g,t,M,G,T]{1}$输出样例
The operation may take a few seconds, Please wait...
Add logical drive successfully.