ipmcset -t storage -d ldconfig
更新时间: 2026/07/28
在Gitcode上查看源码命令功能
设置逻辑驱动器配置
命令格式
ipmcset -t storage -d ldconfig -v <RAID Controller ID> <Logical Drive ID> <[-name <LD name>] [-rp <ra|nra>] [-wp <wt|wbwithbbu|wb>] [-iop <cio|dio>] [-ap <rw|ro|blocked>] [-dcp <enabled|disabled|default>] [-bgi <enabled|disabled>] [-boot <primary>] [-sscd <enabled|disabled>]>
命令类型
ipmcset
参数说明
| Name | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|
controllerid | - | 是 | - | Type: Range; 0, 255 | -v <RAID Controller ID> <Logical Drive ID> The logical drive of which RAID controller will be set. It is mandatory. |
volumeid | - | 是 | - | Type: Range; 0, 255 | -v <RAID Controller ID> <Logical Drive ID> The logical drive of which RAID controller will be set. It is mandatory. |
name | - | 否 | - | Type: Length; Min: None; Max: 15 | -name <LD name> Set logical drive name. 15 ASCII characters is maximum. The value can't be same as the options if it starts with '-'. |
rpvalue | - | 否 | - | Type: Enum; Enum: NA, ra, nra | -rp <ra│nra> Set logical drive read policy. This option is not supported when logical drive is cachecade. ra = Read ahead nra = No Read ahead |
wpvalue | - | 否 | - | Type: Enum; Enum: NA, wt, wbwithbbu, wb | -wp <wt│wbwithbbu│wb> Set logical drive write policy. The 'Write back' is not supported when logical drive is cachecade. wt = Write through wbwithbbu = Write back with BBU wb = Write back |
iopvalue | - | 否 | - | Type: Enum; Enum: NA, cio, dio | -iop <cio│dio> Set logical drive IO policy. This option is not supported when logical drive is cachecade. cio = Cached IO dio = Direct IO |
apvalue | - | 否 | - | Type: Enum; Enum: NA, rw, ro, blocked | -ap <rw│ro│blocked> Set logical drive access policy. This option is not supported when logical drive is cachecade. rw = Read write ro = Read only blocked = Blocked |
dcpvalue | - | 否 | - | Type: Enum; Enum: NA, enabled, disabled, default | -dcp <enabled│disabled│default> Set logical drive disk cache policy. This option is not supported when logical drive is cachecade. enabled = Enable disk cache disabled = Disable disk cache default = Unchanged and determined by disk type |
bgi | - | 否 | - | Type: Enum; Enum: NA, enabled, disabled | -bgi <enabled│disabled> Set logical drive BGI state. This option is not supported when logical drive is cachecade. enabled = Enable logical drive BGI disabled = Disable logical drive BGI |
boot | - | 否 | - | Type: Enum; Enum: NA, none, primary, secondary, all | -boot Set logical drive as boot device. This option is not supported when logical drive is cachecade. primary = Set logical drive as first boot device |
sscd | - | 否 | - | Type: Enum; Enum: NA, enabled, disabled | -sscd <enabled│disabled> Set logical drive SSCD caching state. There must be one or more cachecade logical drive in the same RAID controller. enabled = Enable logical drive SSCD caching disabled = Disable logical drive SSCD caching |
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: NA, 16K, 32K, 64K, 128K, 256K, 512K, 1M | -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'. |
accelerationmethod | - | 否 | - | Type: Enum; Enum: NA, iobypass, cache, no | - |
Regex正则表达式
ldsize
^(NA)|([0-9]+([.][0-9]+)?[m,g,t,M,G,T]{1})$输出样例
Set logical drive name successfully.
Set logical drive read policy successfully.
Set logical drive write policy successfully.
Set logical drive IO policy successfully.
Set logical drive access policy successfully.
Set logical drive disk cache policy successfully.
Set logical drive BGI state successfully
Set logical drive as boot device successfully.
Set logical drive SSCD caching state successfully.
Set logical drive capacity successfully.
Set logical drive strip size successfully.
Set logical drive acceleration method successfully.