8204 8222 8060等卡命令行配置步骤

一、工具的下载与安装

  • 登录Microsemi网站下载ARCCONF工具,其中:
    • VMware操作系统请点击此处https://storage.microsemi.com/en-us/speed/raid/storage_manager/msm_vmware_B25335_zip.php)获取ARCCONF工具。
    • Linux操作系统请点击此处https://storage.microsemi.com/en-us/speed/raid/storage_manager/msm_linux_x64_B25335_tgz.php)获取ARCCONF工具。
    • Windows操作系统请点击此处https://storage.microsemi.com/en-us/speed/raid/storage_manager/msm_windows_x64_B25335_zip.php)获取ARCCONF工具。
  • 点击。
  • 按照提示信息下载ARCCONF工具。
  • 解压后得到适用于不同操作系统的工具包。


    VMware系统的ARCCONF工具在cim目录下。

安装工具

不同操作系统下,ARCCONF工具的安装方法不同,此处仅以Windows、Linux和VMware为例进行说明,其他操作系统下的安装方法请在Microsemi网站搜寻ARCCONF工具使用指南。

  • 二、Windows系统下安装ARCCONF工具。
    • 将适用Windows的工具包上传到服务器操作系统任意目录(如C:\tmp)。
    • 在Windows的运行框内输入cmd并按回车,打开命令行工具。
    • 在命令行中输入cd 工具包所在的目录,如cd C:\tmp。

      Windows下的ARCCONF工具不需安装,此时可执行RAID控制卡命令。

  • Linux系统下安装ARCCONF工具。
    • 使用文件传输工具(例如Winscp)将适用Linux的工具包上传到服务器操作系统任意目录,以/tmp为例。
    • 在Linux命令行执行rpm -ivh /tmp/Arcconf-xxx.rpm命令安装ARCCONF工具。


      ARCCONF工具的安装路径为/usr/Arcconf,需进入该目录后执行RAID控制卡相关命令。

      安装完毕后,即可执行RAID控制卡命令。

  • VMware系统下安装ARCCONF工具。
    • 使用文件传输工具(例如Putty)将适用VMware的工具包上传到服务器操作系统任意目录,以/tmp为例。
    • 在VMware命令行执行esxcli software vib install -v=/tmp/vmware-esx-provider-arcconf.vib –no-sig-check命令安装ARCCONF工具,其中/tmp/vmware-esx-provider-arcconf.vib需为ARCCONF工具文件的完整路径。安装完毕后,即可执行RAID控制卡命令。


      ARCCONF的安装路径为/opt/pmc,需进入该目录后执行RAID控制卡相关命令。

 

二、查询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控制卡的基本信息。

命令格式

命令格式

功能

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控制卡工作模式

命令功能

设置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 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 ~]#

七、设置硬盘定位指示灯

命令功能

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

命令格式

表15-62

命令

功能

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设置热备盘

命令功能

为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.

九、创建和删除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的相关属性,具体请参见表15-63

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。

表15-63 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.

十、设置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 ~]#

Command completed successfully.

[root@localhost ~]#

十一、设置硬盘和LD状态

命令功能

设置硬盘、LD、MaxCache的状态。

命令格式

命令格式

功能

arcconf setstate controller_id device physical_id state

设置硬盘状态。

arcconf setstate controller_id logicaldrive LD_id optimal

设置LD状态为optimal。

arcconf setstate controller_id maxcache LD_id optimal

设置MaxCache状态为optimal。

参数说明

参数

参数说明

取值

controller_id

硬盘所在RAID控制卡的ID

physical_id

硬盘的physical ID

state

设置硬盘状态。

  • hsp:将硬盘设置为热备盘,具体可参见为LD设置热备盘
  • rdy:移除硬盘热备状态,或将硬盘状态从fail设置为ready。
  • ddd:强制将硬盘状态设置为离线(故障)。
  • eed:启用擦除的硬盘。

array_id

Array的ID

type

设置热备的类型。

  • 1:dedicated spare(局部热备盘)
  • 2:auto replace spare(全局热备盘)

LD_id

LD的ID

使用指南

更换LD成员盘时,建议将LD状态设置为optimal后再进行更换,以免误插拔导致Array失效。

使用实例

# 将硬盘设置为离线。

[root@localhost ~]# arcconf setstate 1 device 0 11 ddd
				

Controllers found: 1

Changing state from Ready to Failed may delete any data partitions present on the drive.

 

Are you sure you want to continue?

Press y, then ENTER to continue or press ENTER to abort: y
				

 

 

Command completed successfully.

# 将LD状态设置为optimal。

[root@localhost ~]# arcconf setstate 1 logicaldrive 0 optimal
				

Controllers found: 1

Attention: Using advanced options to force a logical device online is a dangerous operation and

requires substantial knowledge of the RAID level and the nature of the logical device failure.

Even if this operation can force the logical device online,

all data on this logical device may be lost if one or more disks contain outdated data.

 

All available disk segments that constitute this logical device will be forced online;

the data they contain will be used as valid data.

If you are not sure, abort and contact your service representative.

 

Are you sure you want to continue?

Press y, then ENTER to continue or press ENTER to abort: y
				

 

 

Command completed successfully.

# 将MaxCache的状态设置为optimal。

[root@localhost ~]# arcconf setstate 1 maxcache 1 optimal
				

Controllers found: 1

Attention: Using advanced options to force a maxCache logical device online is a dangerous operation and

requires substantial knowledge of the RAID level and the nature of the maxCache logical device failure.

Even if this operation can force the maxCache logical device online,

all data on this maxCache logical device may be lost if one or more disks contain outdated data.

 

All available disk segments that constitute this maxCache logical device will be forced online;

the data they contain will be used as valid data.

If you are not sure, abort and contact your service representative.

 

Are you sure you want to continue?

Press y, then ENTER to continue or press ENTER to abort: y
				

 

Command completed successfully.

十二、设置SSD I/O Bypass状态

命令功能

设置SSD I/O Bypass状态。

命令格式

arcconf setarrayparam controller_id array_id ssdiobypass state

参数说明

参数

参数说明

取值

controller_id

硬盘所在RAID控制卡的ID

array_id

array的ID

state

设置SSD I/O Bypass启用状态

  • enable:启用SSD I/O Bypass
  • disable:禁用SSD I/O Bypass

使用指南


使用实例

# 禁用SSD I/O Bypass。

[root@localhost ~]# arcconf setarrayparam 1 2 ssdiobypass disable

Controllers found: 1

 

Disabling SSD I/O bypass will impact the performance of all the logical device(s) in the array. You can enable the controller caching on logical device(s) to improve performance.

 

Command completed successfully.

 

十三、无电容状态下使用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