[转帖]华为服务器 RAID控制卡 用户指南(Arm) 01

华为,服务器,raid,控制卡,用户,指南,arm · 浏览次数 : 0

小编点评

The text describes the following options to configure the RAID controller: 1. **Create a logical device:** This allows adding an additional device to the RAID configuration, but it will automatically delete the first logical device if it is the only one present on the array. 2. **Set RAID controller configuration parameters:** These settings apply to the whole RAID controller and can be modified even when the system is powered off. 3. **Enable consistency check and event notification:** This helps ensure data integrity in case of power failures by checking the controller's consistency periodically and notifying the system if there are any issues. 4. **Set disk write cache policy:** This allows configuring the performance of the disk write cache, which can be enabled or disabled. 5. **Get and set RAID configuration parameters:** This allows retrieving and modifying various parameters related to the RAID configuration. The user can choose to add a logical device, modify configuration parameters, enable consistency check and notifications, configure the write cache, or get and set parameters by running the appropriate commands.

正文

 

查询RAID控制卡的基本信息

命令功能

查询RAID控制卡的基本信息。

命令格式

arcconf list controller_id

参数说明

参数

参数说明

取值

controller_id

硬盘所在RAID控制卡的ID

使用指南

使用实例

# 查询ID为1的控制器属性。

[root@localhost ~]# arcconf list 1
Controllers found: 1
----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------
   Controller ID             : Status, Slot, Mode, Name, SerialNumber, WWN
----------------------------------------------------------------------
   Controller 1:             : Optimal, Slot 1, Mixed, MSCC Adaptec SmartRAID 3152-8i, 7A45F30016A, 50000D1E00189F30

----------------------------------------------------------------------
Array Information
----------------------------------------------------------------------
   Array ID                  : Status (Interface, TotalSize MB, FreeSpace MB)
----------------------------------------------------------------------
   Array 0                   : Ok (SATA SSD, 305152 MB, 0 MB)

----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
   Logical ID                : Status (RAID, Interface, Size MB) Name
----------------------------------------------------------------------
   Logical 0                 : Optimal (0, Data, 305190 MB) LogicalDrv 0

----------------------------------------------------------------------
maxCache information
----------------------------------------------------------------------

----------------------------------------------------------------------
Physical Device information
----------------------------------------------------------------------
   Physical ID               : State (Interface, BlockSize, SizeMB, Vendor, Model, Type) WWN, [Location]
----------------------------------------------------------------------
   Physical 0,0              : Online (SATA, 512 Bytes, 152627MB, ATA     , INTEL SSDSA2BW16, Solid State Drive) 30000D1E00189F30, [Enclosure Direct Attached, Slot 0(Connector 0:CN0)]
   Physical 0,1              : Online (SATA, 512 Bytes, 1526185MB, ATA     , SSDSC2BB016T7H  , Solid State Drive) 30000D1E00189F32, [Enclosure Direct Attached, Slot 1(Connector 0:CN0)]
   Physical 0,4              : Ready (SAS, 512 Bytes, 1716957MB, TOSHIBA , AL14SEB18EQ     , Hard Drive) 500003969812C842, [Enclosure Direct Attached, Slot 4(Connector 1:CN1)]
   Physical 0,5              : Ready (SAS, 512 Bytes, 858483MB, HGST    , HUC101890CSS200 , Hard Drive) 5000CCA0361C09C1, [Enclosure Direct Attached, Slot 5(Connector 1:CN1)]
   Physical 0,6              : Ready (SATA, 512 Bytes, 457862MB, ATA     , MTFDDAK480TDC-1A, Solid State Drive) 30000D1E00189F39, [Enclosure Direct Attached, Slot 6(Connector 1:CN1)]
   Physical 0,7              : Ready (SATA, 512 Bytes, 915715MB, ATA     , MTFDDAK960TDC-1A, Solid State Drive) 30000D1E00189F3B, [Enclosure Direct Attached, Slot 7(Connector 1:CN1)]
   Physical 2,2              : Ready (SES2, Not Applicable, Not Applicable, MSCC    , Virtual SGPIO, Enclosure Services Device) 50000D1E00189F30, [Not Applicable]


Command completed successfully.
 

查询物理硬盘、Array、LD、maxCache等相关信息

命令功能

查询RAID控制卡的基本信息。

命令格式

表11-36

命令格式

功能

arcconf getconfig controller_id AD

查询适配器信息

arcconf getconfig controller_id LD

查询所有LD的信息

arcconf getconfig controller_id LD LD_id

查询特定LD的信息

arcconf getconfig controller_id PD

查询所有物理硬盘的信息

arcconf getconfig controller_id PD physical_id

查询特定物理硬盘的信息

arcconf getconfig controller_id AR

查询所有Array的信息

arcconf getconfig controller_id AR AR_id

查询特定Array的信息

arcconf getconfig controller_id MC

查询maxCached的信息

参数说明

参数

参数说明

取值

controller_id

硬盘所在RAID控制卡的ID

LD_id

LD的ID

physical_id

硬盘的physical编号

slot_id

物理硬盘槽位编号

AR_id

Array的ID

使用指南

使用实例

# 查询所有Array的信息。

[root@localhost ~]# ./arcconf getconfig 1 ar
Controllers found: 1
----------------------------------------------------------------------
Array Information
----------------------------------------------------------------------
Array Number 0
   Name                                     : A
   Status                                   : Ok
   Interface                                : SATA SSD
   Total Size                               : 305152 MB
   Unused Size                              : 204800 MB
   Block Size                               : 512 Bytes
   Array Utilization                        : 32.77% Used, 67.23% Unused
   Type                                     : Data
   Transformation Status                    : Not Applicable
   Spare Rebuild Mode                       : Dedicated
   SSD I/O Bypass                           : Disabled
   --------------------------------------------------------
   Array Logical Device Information
   --------------------------------------------------------
   Logical 0                                : Optimal (1, Data, 49999 MB) LogicalDrv 0
   --------------------------------------------------------
   Array Physical Device Information
   --------------------------------------------------------
   Device 0                                 : Present (915715MB, SATA, SSD, Channel:0, Device:0)         18031A983BCA
   Device 1                                 : Present (152627MB, SATA, SSD, Channel:0, Device:1) CVPR1461036N160DGN

   --------------------------------------------------------
   Array Hotspare Information
   --------------------------------------------------------
   Device 3                                 : Dedicated Hot-Spare (457862MB, SATA, SSD, Channel:0, Device:3)             2029E247



Command completed successfully.
[root@localhost ~]#

# 查询所有LD的基本信息。

[root@localhost ~]# ./arcconf getconfig 1 ld
Controllers found: 1
----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
Logical Device number 0
   Logical Device name                      : LogicalDrv 0
   Disk Name                                : /dev/sdd
   Block Size of member drives              : 512 Bytes
   Array                                    : 0
   RAID level                               : 1
   Status of Logical Device                 : Optimal
   Size                                     : 49999 MB
   Stripe-unit size                         : 256 KB
   Full Stripe Size                         : 256 KB
   Interface Type                           : SATA SSD
   Device Type                              : Data
   Boot Type                                : None
   Heads                                    : 255
   Sectors Per Track                        : 32
   Cylinders                                : 12549
   Caching                                  : Enabled
   Mount Points                             : Not Applicable
   LD Acceleration Method                   : Controller Cache
   Volume Unique Identifier                 : 600508B1001C329D07A9BDA053FF081B
   --------------------------------------------------------
   Array Physical Device Information
   --------------------------------------------------------
   Device 0                                 : Present (915715MB, SATA, SSD, Channel:0, Device:0)         18031A983BCA
   Device 1                                 : Present (152627MB, SATA, SSD, Channel:0, Device:1) CVPR1461036N160DGN

   --------------------------------------------------------
   Array Hotspare Information
   --------------------------------------------------------
   Device 3                                 : Dedicated Hot-Spare (457862MB, SATA, SSD, Channel:0, Device:3)             2029E247



Command completed successfully.
[root@localhost ~]#
 

查询RAID控制卡的FW和驱动版本

命令功能

查询RAID控制卡的FW和驱动的版本信息。

命令格式

arcconf getversion

使用实例

# 查询RAID控制卡FW和驱动的版本信息。

[root@localhost ~]# ./arcconf getversion
Controllers found: 1
Controller #1
==============
Firmware                               : 1.43[0] (0)
Driver                                 : 0.9.14-100 (0)


Command completed successfully.
[root@localhost ~]#
 

升级RAID控制卡FW

命令功能

通过该命令可以升级RAID控制卡的Firmware。

命令格式

arcconf romupdate controller_id fwfile

参数说明

参数

参数说明

取值

controller_id

RAID控制卡的ID

-

fwfile

Firmware升级所需的.bin文件名

-

使用实例

# 升级RAID控制卡FW。

[root@linux 2.93]# arcconf romupdate 1 SmartFWx100.bin
Controllers found: 1


Are you sure you want to continue?
Press y, then ENTER to continue or press ENTER to abort: y

Updating controller 1 firmware...
Succeeded
You must restart the system for firmware updates to take effect.


Command completed successfully.
 

设置RAID控制卡工作模式

命令功能

设置RAID控制卡工作模式。

RAID控制卡工作模式默认为“Mixed”。

命令格式

arcconf setcontrollermode controller_id mode

参数说明

参数

参数说明

取值

controller_id

RAID控制卡的ID

mode

RAID控制卡工作模式

  • 2:设置为HBA模式。
  • 3:设置为RAID模式。
  • 5:设置为Mixed模式。
    说明:

    3152-8i的工作模式的介绍请参见支持多种工作模式

使用指南

使用实例

# 设置RAID控制卡工作模式为“Mixed”。

[root@localhost ~]# ./arcconf setcontrollermode 1 5
Controllers found: 1

Command completed successfully.

# 查询RAID控制卡工作模式。

[root@localhost ~]# arcconf getconfig 1
Controllers found: 1
----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------
   Controller Status                        : Optimal
   Controller Mode                          : Mixed
   Channel description                      : SCSI
   Controller Model                         : MSCC Adaptec SmartRAID 3152-8i
   Controller Serial Number                 : 7A45F30016A
   Controller World Wide Name               : 50000D1E00189F30
   Physical Slot                            : 1
   Temperature                              : 48 C/ 118 F (Normal)
   Host bus type                            : PCIe 3.0
   Host bus speed                           : 7880 MBps
   Host bus link width                      : 8 bit(s)/link(s)
   PCI Address (Bus:Device:Function)        : 0:3b:0:0
   Number of Ports                          : 2
   Internal Port Count                      : 2
   External Port Count                      : 0
   Defunct disk drive count                 : 0
   NCQ status                               : Enabled
   Queue Depth                              : Automatic
   Monitor and Performance Delay            : 60 minutes
   Elevator Sort                            : Enabled
   Degraded Mode Performance Optimization   : Disabled
   Latency                                  : Disabled
   Statistics data collection mode          : Disabled
   Post Prompt Timeout                      : 0 seconds
   Boot Controller                          : False
   Primary Boot Volume                      : None
   Secondary Boot Volume                    : ADDD8BE3B85736315B553DAF0D36B31E
   Driver Name                              : smartpqi
   Driver Supports SSD I/O Bypass           : Yes
   Manufacturing Part Number                : Not Applicable
   Manufacturing Spare Part Number          : Not Applicable
   Manufacturing Wellness Log               : Not Applicable
   NVRAM Checksum Status                    : Passed
   Sanitize Lock Setting                    : None

......

回显信息中的“Controller Mode”即为RAID控制卡的工作模式。

 

查询所有适用arcconf工具的RAID控制卡

命令功能

查询所有适用arcconf工具的RAID控制卡。

命令格式

arcconf list

使用实例

# 查询所有适用arcconf工具的RAID控制卡。

[root@localhost ~]# ./arcconf list
Controllers found: 1
----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------
   Controller ID             : Status, Slot, Mode, Name, SerialNumber, WWN
----------------------------------------------------------------------
   Controller 1:             : Optimal, Slot 1, Mixed, MSCC Adaptec SmartRAID 3152-8i, 7A45F30016A, 50000D1E00189F30

Command completed successfully.
[root@localhost ~]#
 

设置启动盘

命令功能

通过该命令可以将PD或LD设置成启动设备,其中,PD在RAID控制卡的工作模式为HBA或MIX时生效,LD在RAID控制卡的工作模式为MIX或RAID时生效。

命令格式

arcconf setboot controller_id logicaldrive LD_id type boot_type

arcconf setboot controller_id device physical_id type boot_type

参数说明

参数

参数说明

取值

controller_id

硬盘所在RAID控制卡的ID

LD_id

LD的ID

boot_type

启动项的类型

Primary :将LD或PD设置为第一启动设备。

Secondary :将LD或PD设置为第二启动设备。

physical_id

硬盘的physical ID

使用实例

# 设置LD0为第一启动设备。

[root@localhost ~]# arcconf setboot 1 logicaldrive 0 type primary
Controllers found: 1
Do you wish to change the boot type of the selected device.
Press y, then ENTER to continue or press ENTER to abort: y


Command completed successfully.
[root@localhost ~]#
 

设置热备模式

命令功能

设置热备盘的模式。

命令格式

arcconf setarrayparam controller_id array_id sparetype mode

参数说明

参数

参数说明

取值

controller_id

硬盘所在RAID控制卡的ID

array_id

array的ID

mode

热备盘的类型

  • 1:Dedicated
  • 2:Autoreplace
    说明:

    热备盘相关介绍请参见硬盘热备份

使用实例

# 设置Array的热备盘模式为:Dedicated。

[root@localhost ~]# arcconf setarrayparam 1 0 sparetype 1
Controllers found: 1

Command completed successfully.
[root@localhost ~]#
 

设置硬盘定位指示灯

命令功能

点亮、熄灭控制器的硬盘定位指示灯。

命令格式

表11-37

命令

功能

arcconf identify controller_id device physical_id time time

对特定的物理硬盘进行点灯,time为可选项表示点灯持续的时间,单位为秒。

arcconf identify controller_id device physical_id

对特定的物理硬盘持续点灯,按任意键会停止点灯。

arcconf identify controller_id all time time

对所有的物理硬盘进行点灯,time为可选项表示点灯持续的时间,单位为秒。

arcconf identify controller_id all stop

对所有的物理硬盘停止点灯

arcconf identify controller_id logicaldrive LD_id time time

对特定的LD进行点灯,time为可选项表示点灯持续的时间,单位为秒。

arcconf identify controller_id logicaldrive LD_id

对特定的LD停止点灯

arcconf identify controller_id array array_id

time time

对特定的Array进行点灯,time为可选项表示点灯持续的时间,单位为秒。

arcconf identify controller_id array array_id

对特定的Array停止点灯

arcconf identify controller_id maxcache

time time

对maxCache进行点灯,time为可选项表示点灯持续的时间,单位为秒。

arcconf identify controller_id maxcache

对maxCache停止点灯

 

参数说明

参数

参数说明

取值

controller_id

硬盘所在RAID控制卡的ID

LD_id

LD的ID

physical_id

硬盘的physical ID

time

硬盘指示灯点亮的时间。

为可选项表示点灯持续的时间,单位为秒。

array_id

array的ID

使用实例

# 对slot 0硬盘的停止指示灯。

[root@localhost ~]# ./arcconf identify 1 device 0 0
Controllers found: 1
Only devices managed by an enclosure processor may be identified
The specified device(s) is/are blinking.
Press any key to stop the blinking.

# 设置所有的盘进行点灯60秒。

[root@localhost ~]# ./arcconf identify 1 all time 60
Controllers found: 1
Only devices managed by an enclosure processor may be identified

Command completed successfully.

# 熄灭所有的硬盘指示灯。

[root@localhost ~]# ./arcconf identify 1 all stop
Controllers found: 1

Command completed successfully.

 

 

修改条带大小

命令功能

修改LD的条带大小。

命令格式

arcconf modify controller_id from LD_id to stripesize size LD_size LD_level physical_id physical_id......

为准确修改LD的条带大小,执行该命令前,请提前确认并正确输入LD的容量大小,级别以及成员盘的physical ID。

参数说明

参数

参数说明

取值

controller_id

硬盘所在RAID控制卡的ID

size

修改后的条带大小

16/32/64/128/256/512/1024,单位为KB

LD_size

LD的容量大小

单位为MB

LD_level

LD的RAID级别

physical_id

LD成员盘的physical ID

使用实例

# 将LD的条带大小设置为256KB。

[root@localhost ~]# arcconf modify 1 from 0 to stripesize 256 49999 1 0 0 0 1
Controllers found: 1
Reconfiguration of a logical device is a long process.  Are you sure you want to continue?
Press y, then ENTER to continue or press ENTER to abort: y

Reconfiguring logical device: LogicalDrv 0

Command completed successfully.
 

通过增加成员盘可用容量扩容RAID

命令功能

在Virtual Drives未占用成员硬盘全部容量时,可通过调整Virtual Drives的可用空间,扩大Virtual Drives容量。

命令格式

arcconf modify controller_id from LD_id to LD_size LD_level physical_id physical_id......

  • 为准确进行扩容,执行该命令前,请提前确认并正确输入RAID级别以及成员盘的physical ID。
  • 扩容时需要保证所增加的容量不大于当前LD所在Array剩余容量。

参数说明

参数

参数说明

取值

controller_id

硬盘所在RAID控制卡的ID

LD_id

LD的ID

LD_size

扩容后LD的容量大小

单位为MB

LD_level

LD的RAID级别

physical_id

LD成员盘的physical ID

使用实例

# 将LD的容量扩展为89999MB。

[root@localhost ~]# arcconf modify 1 from 0 to  89999 1 0 0 0 1
Controllers found: 1
Reconfiguration of a logical device is a long process.  Are you sure you want to continue?
Press y, then ENTER to continue or press ENTER to abort: y

Reconfiguring logical device: LogicalDrv 0

Command completed successfully.
 

通过增加新盘进行扩容

命令功能

在已存在的RAID中添加新硬盘,扩大RAID容量。

通过增加新盘进行扩容分两步进行,先给Array添加硬盘,再进行扩容。

  • RAID1/1ADM/10在加盘扩充中会导致RAID级别升高(依据加入的硬盘数量)。
  • 加盘扩容时,RAID0/RAID5/RAID6每次只能增加1个硬盘,RAID50/RAID60每次只能增加2个硬盘,RAID10ADM每次只能增加3个硬盘。

命令格式

arcconf modify controller_id array array_id expand physical_id physical_id......

arcconf modify controller_id from LD_id to LD_size LD_level physical_id physical_id......

参数说明

参数

参数说明

取值

controller_id

硬盘所在RAID控制卡的ID

array_id

Array的id

LD_size

扩容后的RAID容量

physical_id

成员盘的physical ID

使用实例

# 为Array添加硬盘。

[root@localhost ~]# arcconf modify 1 array 0 expand 0 2
Controllers found: 1
This will modify the array 0.

Are you sure you want to continue?
Press y, then ENTER to continue or press ENTER to abort: y

Modifying array: 0

Command completed successfully.

# 对LD进行扩容。

[root@localhost ~]# arcconf modify 1 from 0 to  109996 0 0 0 0 1 0 2
Controllers found: 1
Reconfiguration of a logical device is a long process.  Are you sure you want to continue?
Press y, then ENTER to continue or press ENTER to abort: y

Reconfiguring logical device: LogicalDrv 0

Command completed successfully.
[root@localhost ~]#
 

迁移RAID级别

命令功能

对RAID级别进行迁移。

  • 当RAID组中包含了2个或2个以上的VD时,不支持RAID级别迁移。
  • RAID控制卡不支持同时对两个RAID组进行重新配置(即“Reconfigure Virtual Drives”操作,包括进行加盘扩容或迁移RAID级别),请在当前进程完成后再对下一个RAID组进行操作。
  • 迁移只支持增加与RAID组成员盘同类型同规格的硬盘。
  • 为防止数据丢失,请在该操作之前备份当前RAID组的数据。
  • 只支持对“Optimal”状态的RAID组执行迁移RAID级别操作。
  • 迁移RAID级别时,迁移后的RAID容量应不小于迁移前RAID容量。例如RAID 0迁移至RAID 1时,需增加硬盘,否则无法迁移。

命令格式

arcconf modify controller_id from LD_id to LD_size LD_level physical_id physical_id......

参数说明

参数

参数说明

取值

controller_id

硬盘所在RAID控制卡的ID

LD_id

LD的ID

LD_size

LD迁移前的容量

LD_level

迁移后的LD级别

physical_id

LD成员盘的physical ID

使用实例

#从RAID 0迁移到RAID 5。

[root@localhost ~]# arcconf modify 1 from 0 to 305190 5 0 0 0 1 0 6 0 7
Controllers found: 1
Reconfiguration of a logical device is a long process.  Are you sure you want to continue?
Press y, then ENTER to continue or press ENTER to abort: y

Reconfiguring logical device: LogicalDrv 0

Command completed successfully.

# 查询迁移进程。

[root@localhost ~]# arcconf getconfig 1 ld
Controllers found: 1
^[[A----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
Logical Device number 0
   Logical Device name                      : LogicalDrv 0
   Disk Name                                : /dev/sda
   Block Size of member drives              : 512 Bytes
   Array                                    : 0
   RAID level                               : 5
   Status of Logical Device                 : Optimal(Background Parity Initialization : 51 %)
   Parity Initialization Status             : In Progress
   Size                                     : 305190 MB
   Stripe-unit size                         : 256 KB
   Full Stripe Size                         : 768 KB
   Interface Type                           : SATA SSD
   Device Type                              : Data
   Boot Type                                : None
   Heads                                    : 255
   Sectors Per Track                        : 32
   Cylinders                                : 65535
   Caching                                  : Enabled
   Mount Points                             : Not Applicable
   LD Acceleration Method                   : Controller Cache
   Volume Unique Identifier                 : 600508B1001C7B7C4BBF3ACB01F885BC
   --------------------------------------------------------
   Array Physical Device Information
   --------------------------------------------------------
   Device 0                                 : Present (152627MB, SATA, SSD, Channel:0, Device:0) CVPR1461036N160DGN
   Device 1                                 : Present (1526185MB, SATA, SSD, Channel:0, Device:1) PHDV624000FL1P6EGN
   Device 6                                 : Present (457862MB, SATA, SSD, Channel:0, Device:6)         17501B83246B
   Device 7                                 : Present (915715MB, SATA, SSD, Channel:0, Device:7)         18031A983BCA




Command completed successfully.
 

为LD设置热备盘

命令功能

为LD设置热备盘。

命令格式

arcconf setstate controller_id device physical_id hsp array array_id sparetype type

参数说明

参数

参数说明

取值

controller_id

硬盘所在RAID控制卡的ID

physical_id

硬盘的physical ID

array_id

Array的ID

type

热备盘的类型

1 : Dedicated

2 : Autoreplace

说明:

热备盘相关介绍请参见硬盘热备份

使用实例

# 为LD设置Autoreplace热备盘。

[root@localhost ~]# arcconf setstate 1 device 0 3 hsp array 0 sparetype 2
Controllers found: 1

Any existing hot-spare drives of a different sparetype will be removed.
The physical drive used for this operation is connected to Mixed Mode(Smart HBA) connector. Using it will not allow operating system to use the drive contents.

Are you sure you want to continue?
Press y, then ENTER to continue or press ENTER to abort: y


Command completed successfully.
[root@localhost ~]#
 

设置后台任务优先级

命令功能

设置后台任务优先级并使当前任务优先级生效。

后台任务包括后台初始化、RAID重构、迁移、扩容等。

命令格式

arcconf setpriority controller_id priority current

参数说明

参数

参数说明

取值

controller_id

RAID控制卡的ID

priority

后台任务优先级

  • high
  • medium
  • low

使用指南

使用实例

# 设置后台任务优先级为“high”并生效。

domino:~# ./arcconf setpriority 1 high current
Controllers found: 1 

Command completed successfully.
 

使能和关闭LD的cache功能

命令功能

使能和关闭LD的cache功能。

命令格式

arcconf setcache controller_id logicaldrive LD_id con

arcconf setcache controller_id logicaldrive LD_id coff

参数说明

参数

参数说明

取值

controller_id

硬盘所在RAID控制卡的ID

LD_id

LD的ID

使用实例

# 使能LD0的cache功能。

[root@localhost ~]# arcconf setcache 1 logicaldrive 0 con
Controllers found: 1
Cache mode is already set to Enabled.

Command aborted.
[root@localhost ~]#

# 关闭LD0的cache功能。

[root@localhost ~]# arcconf setcache 1 logicaldrive 0 coff
Controllers found: 1

Command completed successfully.
[root@localhost ~]#
 

设置后台一致性校验的并行个数

命令功能

设置后台一致性校验的并行个数。

命令格式

arcconf consistencycheck controller_id parallelcount parallelcount_number

参数说明

参数

参数说明

取值

controller_id

硬盘所在RAID控制卡的ID

parallelcount_number

后台一致性校验的并行个数

使用实例

# 设置后台一致性校验的并行个数为4。

[root@localhost ~]# arcconf consistencycheck 1 parallelcount 4
Controllers found: 1

Command completed successfully.
[root@localhost ~]#


 CONSISTENCYCHECK <Controller#> PARALLELCOUNT <Count>
 

创建和删除RAID

命令功能

创建、删除RAID。

命令格式

arcconf create controller_id logicaldrive option size level physical_id physical_id......

arcconf delete controller_id logicaldrive ld_id noprompt

参数说明

参数

参数说明

取值

controller_id

RAID控制卡ID

请参照查询RAID控制卡的基本信息获取RAID控制卡的controller_id。

controller_id从1开始排序,如果有多张RAID控制卡,将按照1,2,3...的方式进行排序。

option

要创建的LD的相关属性,具体请参见表11-38

size

LD的容量大小。

单位为MB,设置时只输入数字即可,如数值设为“1024”,则表示虚拟磁盘的容量为1024MB。

如果设置为“MAX”,表示使用硬盘的所有容量创建虚拟磁盘。

level

要创建的LD的级别。

支持的RAID级别请参照支持多种RAID级别

physical_id

LD成员盘的physical ID

请参照查询物理硬盘、Array、LD、maxCache等相关信息获取物理硬盘的ID。

ld_id

虚拟磁盘ID

请参照查询物理硬盘、Array、LD、maxCache等相关信息获取虚拟磁盘的ID。

表11-38 option

可设置属性

说明

取值

Stripesize

LD的条带大小

16/32/64/128/256/512/1024

Legs

LD的NPG,只在创建RAID 50和RAID 60时可设置。

Name

LD的名称。

Method

LD的初始化的方式。

  • BUILD
  • DEFAULT

Wcache

即IO Bypass,只在创建maxCache时可设置。

  • WT:write-through (Disabled)
  • WB:write-back (Enabled)

 

LDcache

即Controller Cache。

SSDOverProvisioningOptimization

SSD的特性。

 

  • enable
  • disable
说明:
  • 只有当RAID组由SSD组成时,才能设置该属性。
  • 该选项设置为“Enabled”后,会在数据写入SSD之前重新分配所有使用的块来优化SSD,可以加快初始化的速度。

DataLD

被加速的LD的ID。

使用指南

使用实例

# 创建RAID 50。

[root@localhost ~]# arcconf create 1 logicaldrive stripesize 256 legs 2 name vd1 method default  ldcache lon    MAX  50  0 0 0 1 0 2 0 3 0 4 0 5
Controllers found: 1
Space will be wasted as devices specified are of different sizes.

Do you want to add a logical device to the configuration?
Press y, then ENTER to continue or press ENTER to abort: y

Creating logical device: vd1

Command completed successfully.

# 删除ID为0的虚拟磁盘。

[root@localhost ~]# arcconf delete 1 logicaldrive 0 noprompt
Controllers found: 1

WARNING: Deleting this logical device will automatically delete array 0 because it is the only logical device present on that array.
All data in logical device 0 will be lost.
Deleting: logical device 0 ("Logical Drive 1")
arr
Command completed successfully.
 

创建MaxCache

命令功能

创建MaxCache。

命令格式

arcconf create controller_id maxcache wcache policy datald LD_id size level physical_id physical_id......

参数说明

参数

参数说明

取值

controller_id

硬盘所在RAID控制卡的ID

policy

maxCache的加速策略

wt:设置不为LD进行加速

wb:设置为LD进行加速

LD_id

被加速的LD的ID

size

maxCache 的容量

level

maxCache的级别

0/1/10/5

physical_id

硬盘的physical ID

使用实例

# 创建级别为RAID 1的MaxCache。

[root@localhost ~]# arcconf create 1 maxcache  wcache wb datald 0 17000 1 0 0  0 1
Controllers found: 1
Space will be wasted as devices specified are of different sizes.

After maxCache creation, the following operations are not allowed on the controller.
 MODIFY on logical device and Array
 SPLITMIRROR on array
 CACHERATIO on controller

Do you want to add a logical device to the configuration?
Press y, then ENTER to continue or press ENTER to abort: y

Creating maxCache

Command completed successfully.
[root@localhost ~]#
 

设置RAID控制卡的读写比例

命令功能

设置RAID控制卡的读写比例。

命令格式

arcconf setcache controller_id cacheratio read write

参数说明

参数

参数说明

取值

controller_id

硬盘所在RAID控制卡的ID

read

读cache的比例

0~100

write

写cache的比例

0~100

读cache的比例与写cache的比例总和应为100。

使用实例

# 设置读cache的比例与写cache的比例各为50%。

[root@localhost ~]# arcconf setcache 1 cacheratio 50 50
Controllers found: 1

Command completed successfully.
[root@localhost ~]#
 

无电容状态下使用cache

命令功能

该命令允许在没有电容的状态下使用控制器cache。

在没有电容的状态下使用控制器cache时,一旦掉电,会导致数据丢失,请谨慎使用该命令。

命令格式

arcconf setcache controller_id nobatterywritecache enable

参数说明

参数

参数说明

取值

controller_id

硬盘所在RAID控制卡的ID

使用实例

# 设置无电容状态下使用cache。

[root@localhost ~]# arcconf setcache 1 nobatterywritecache enable
Controllers found: 1
WARNING : Enabling write caching on a cache module without a fully charged battery or capacitor could cause data loss in the event of a power failure.

Are you sure you want to continue?
Press y, then ENTER to continue or press ENTER to abort: y


Command completed successfully.
[root@localhost ~]#

 

 

使能一致性校验的修复策略

命令功能

使能一致性校验的修复策略。

命令格式

arcconf consistencycheck controller_id inconsistencyrepairpolicy enable

参数说明

参数

参数说明

取值

controller_id

硬盘所在RAID控制卡的ID

使用实例

# 使能一致性校验的修复策略。

[root@localhost ~]# arcconf consistencycheck 1 inconsistencyrepairpolicy enable
Controllers found: 1

Command completed successfully.
[root@localhost ~]#
 

使能一致性校验生成调试信息并发出通知

命令功能

使能一致性校验生成调试信息并发出通知。

命令格式

arcconf consistencycheck controller_id eventnotify enable

参数说明

参数

参数说明

取值

controller_id

硬盘所在RAID控制卡的ID

使用实例

# 使能一致性校验生成调试信息并发出通知。

 

[root@localhost ~]# arcconf consistencycheck 1 eventnotify enable
Controllers found: 1

Command completed successfully.
[root@localhost ~]#


 CONSISTENCYCHECK <Controller#> EVENTNOTIFY <Enable | Disable>
 

关闭一致性校验

命令功能

关闭一致性校验功能。

命令格式

arcconf consistencycheck controller_id off

参数说明

参数

参数说明

取值

controller_id

硬盘所在RAID控制卡的ID

使用实例

# 关闭一致性校验功能。

[root@localhost ~]# arcconf consistencycheck 1 off
Controllers found: 1

Command completed successfully.



CONSISTENCYCHECK <Controller#> <On [Delay]|Off> [noprompt] [nologs]
 

查询和设置硬盘写Cache策略

命令功能

查询、设置硬盘写Cache策略。

命令格式

arcconf getconfig controller_iad

arcconf setcache controller_id drivewritecachepolicy drivetype cachepolicy drivetype cachepolicy...

参数说明

参数

参数说明

取值

controller_id

硬盘所在RAID控制卡的ID

-

drivetype

要设置写Cache策略的硬盘类型

  • Configured:设置RAID/Mixed模式下RAID组成员盘的写Cache策略。
  • Unconfigured:设置RAID/Mixed模式下非RAID组成员盘的写Cache策略。
  • HBA:设置HBA模式下硬盘的写Cache策略。

cachepolicy

硬盘写Cache策略

  • 0:Default(将硬盘的写Cache保持为默认状态)
  • 1:Enabled(打开硬盘的写Cache功能)
  • 2:Disabled(关闭硬盘的写Cache功能)

使用实例

# 设置Configured状态的硬盘Cache写策略为Enabled,设置Unconfigured状态的硬盘Cache写策略为Disabled。

[root@localhost ~]# ./arcconf setcache 1 drivewritecachepolicy Configured 1 Unconfigured 2
Controllers found: 1
Enabling controller drive write cache can increase write performance but risks losing the data in the cache on sudden loss.

Command completed successfully.

# 查询当前的硬盘写Cache策略

[root@localhost ~]# ./arcconf getconfig 1 ad
Controllers found: 1
----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------
   Controller Statue             : Optimal
   Controller Mode               :Mixed
   Channle description           :SCSI
  
...
----------------------------------------------------------------------
Physical Drive Write Cache Policy Information 
----------------------------------------------------------------------
Configured Drives                :Enabled
Unconfigured Drives              :Disabled
HBA Drives                       :Default
----------------------------------------------------------------------
...
 

收集FW日志

命令功能

收集RAID控制卡的Firmware日志。

命令格式

arcconf SAVESUPPORTARCHIVE

使用实例

# 收集RAID控制卡的Firmware日志。

[root@linux /]# arcconf SAVESUPPORTARCHIVE
Controllers found: 1

 Usage: SAVESUPPORTARCHIVE [Path] [Firmware|GUI|Arcconf|Storlib|Basecode|Redfish]
 Example: SAVESUPPORTARCHIVE C:\Adaptec\maxView Firmware
 Example: SAVESUPPORTARCHIVE /var/log/maxView Storlib
 Example: SAVESUPPORTARCHIVE
 Example: SAVESUPPORTARCHIVE .
 ===================================================================================

 Saves  all the logs
    Path          : directory other than default
    Firmware      : saves Firmware logs
    GUI           : saves GUI logs
    Arcconf       : saves Arcconf logs
    StorLib       : saves StorLib logs
    Basecode      : saves Basecode logs
    Redfish       : saves Redfish logs

The path is not specified, Using the default.
The logs are saved in relevant folders in /var/log/Support

Command completed successfully.

与[转帖]华为服务器 RAID控制卡 用户指南(Arm) 01相似的内容: