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

Back to Overview

Command Function

Create a logical drive

Command Format

ipmcset -t storage -d createld -v <RAID Controller ID> -rl <r0|r1|r5|r6|r10|r50|r60> -pd <PD ID separated by commas> [-cachecade] [-sc <Span Count>] [-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>]

Command type

ipmcset

Parameters

NameTypeRequiredDefaultConstraintDescription
controlid-Yes-Type: Range; 0, 255-v <RAID Controller ID> The RAID controller on which logical drive will be created. It is mandatory.
raidlevel-Yes---rl <r0│r1│r5│r6│r10│r50│r60> Logical drive RAID level. It is mandatory. When '-cachecade' is specified, RAID level 0/1 is valid. r0 = RAID0 r1 = RAID1 r5 = RAID5 r6 = RAID6 r10 = RAID10 r50 = RAID50 r60 = RAID60
pdid-Yes-Regex-pd <PD ID separated by commas> Physical drives ID participated in this logical drive, seperated by commas. It is mandatory.
cachecade-No-Type: Enum; Enum: 0, 1-cachecade Logical drive is used for secondary cache. It is optional. It must be supported by RAID controller first.
spannum-No---sc <Span Count> Logical drive span count. 8 is maximum. It will be 1 on RAID0/1/5/6 and 2 on RAID10/50/60 by default.
ldname-No-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-No-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-No-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-No-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-No-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-No-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-No-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-No-Type: Enum; Enum: enabled, disabled, default, 255-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-No-Type: Enum; Enum: no, quick, full, rpi, opo, 255-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
AccelerationMethod-No-Type: Enum; Enum: no, cache, iobypass, 255-acc <no│cache│iobypass> Logical drive acceleration method. It is optional and not involved when '-cachecade' is specified.
AssociateLdintegerNo-Type: Range; 0, 65535-associatedld <LD ID> General Logical Drive ID associated with cachecade. It is mandatory when '-cachecade' is specified
CacheLineSize-No-Type: Enum; Enum: 64K, 256K-cls <64K│256K> Cache Line Size. It is optional and not involved when '-cachecade' is not specified. If this option is not specified, the default of cache line size is 64K.

Regex正则表达式

  • pdid
^[0-9]+([,][0-9]+)*$
  • ldsize
^[0-9]+([.][0-9]+)?[m,g,t,M,G,T]{1}$

Output Examples

The operation may take a few seconds, Please wait...
Create logical drive successfully.

Config source

interface_config/cli/ipmcset/storage.json