arcconf工具简单学习

最近用到了一个MICROCHIP公司的阵列卡Microsemi Adaptec SmartRAID 3152-8i,但是常用的Raid Manager工具megacli,并不兼容这张卡,无法进行管理和监控,所以研究一下能管理和监控这张卡的工具。经过多方查询与协调供应商沟通测试,终于把最终目标锁定在官方提供的工具arcconf

ARCCONF下载与安装

  1. Microsemi Adaptec SmartRAID 3152-8i官方页面
  2. DOWNLOADS页面进入Storage Manager Downloads页面
  3. 下载界面:Adaptec ARCCONF Command Line Utility v3.10.24308
  4. 简化步骤:wget https://download.adaptec.com/raid/storage_manager/arcconf_v3_10_24308.zip
  5. 解压:unzip arcconf_v3_10_24308.zip
  6. 工具: ./linux_64/arcconf,如果使用不便,可以加入/usr/bin

文件结构

├── arcconf_v3_10_24308.zip
├── freebsd10_x86_64
│   └── cmdline
│       ├── arcconf
│       ├── License.txt
│       └── README.TXT
├── freebsd11_x86_64
│   └── cmdline
│       ├── arcconf
│       ├── License.txt
│       └── README.TXT
├── freebsd12_x86_64
│   └── cmdline
│       ├── arcconf
│       ├── License.txt
│       └── README.TXT
├── freebsd13_x86_64
│   └── cmdline
│       ├── arcconf
│       ├── License.txt
│       └── README.TXT
├── linux_64
│   ├── arcconf
│   ├── arm
│   │   ├── debianarm_x64
│   │   │   ├── cmdline
│   │   │   │   └── arcconf
│   │   │   └── deb
│   │   │       └── Arcconf-3.10-24308.aarch64.deb
│   │   └── linuxarm_x64
│   │       ├── cmdline
│   │       │   └── arcconf
│   │       └── rpm
│   │           └── Arcconf-3.10-24308.aarch64.rpm
│   ├── rpm
│   │   ├── Arcconf-3.10-24308.x86_64.rpm
│   │   └── arcconf_3.10-24309_amd64.deb
│   └── static_arcconf
│       └── cmdline
│           └── arcconf
├── solaris_x86
│   └── cmdline
│       ├── arcconf
│       ├── License.txt
│       └── README.TXT
├── vmware
│   ├── linux_x64
│   │   └── cmdline
│   │       ├── arcconf
│   │       ├── Install.txt
│   │       ├── libcrypto.so.1.1
│   │       ├── libpegclient.so.1
│   │       ├── libpegcommon.so.1
│   │       ├── libpegexportserver.so.1
│   │       ├── libpegslp_client.so.1
│   │       ├── libssl.so.1.1
│   │       ├── License.txt
│   │       └── README.TXT
│   └── windows_x64
│       └── cmdline
│           ├── arcconf.exe
│           ├── libcrypto-1_1.dll
│           ├── libssl-1_1.dll
│           ├── License.txt
│           ├── pegclient.dll
│           ├── pegcommon.dll
│           ├── pegslp_client.dll
│           └── README.TXT
└── windows_x64
    └── cmdline
        ├── afaapi.dll
        ├── arcconf.exe
        ├── driverUpdate.exe
        ├── License.txt
        ├── README.TXT
        ├── regpnp.exe
        └── storarc.dll

基本使用

  • 查询硬盘以及阵列卡的基本信息arcconf list or arcconf list 1

arcconf list controller_id

root@user-PowerEdge-R740:/home/user/arcconf/linux_64# ./arcconf list 1
Controllers found: 1
----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------
   Controller ID             : Status, Slot, Mode, Name, SerialNumber, WWN
----------------------------------------------------------------------
   Controller 1:             : Optimal, Slot 6, Mixed, MSCC SmartRAID 3152-8i, 9A4*******DB, 5000********F300

----------------------------------------------------------------------
Array Information
----------------------------------------------------------------------
   Array ID                  : Status (Interface, TotalSize MB, FreeSpace MB)
----------------------------------------------------------------------
   Array 0                   : Ok (SAS, 7630916 MB, 0 MB)

----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
   Logical ID                : Status (RAID, Interface, Size MB) Name
----------------------------------------------------------------------
   Logical 0                 : Optimal (5, Data, 5723091 MB) VD0

----------------------------------------------------------------------
maxCache information
----------------------------------------------------------------------
   No maxCache device created

----------------------------------------------------------------------
Physical Device information
----------------------------------------------------------------------
   Physical ID               : State (Interface, BlockSize, SizeMB, Vendor, Model, Type) WWN, [Location]
----------------------------------------------------------------------
   Physical 0,0              : Online (SAS, 512 Bytes, 1907729MB, TOSHIBA , MG04SCA20ENY , Hard Drive) 5000039AB81***, [Enclosure Direct Attached, Slot 0(Connector 0:CN0)]
   Physical 0,1              : Online (SAS, 512 Bytes, 1907729MB, TOSHIBA , MG04SCA20ENY , Hard Drive) 5000039A883***, [Enclosure Direct Attached, Slot 1(Connector 0:CN0)]
   Physical 0,2              : Online (SAS, 512 Bytes, 1907729MB, TOSHIBA , MG04SCA20ENY , Hard Drive) 5000039A882***, [Enclosure Direct Attached, Slot 2(Connector 0:CN0)]
   Physical 0,3              : Online (SAS, 512 Bytes, 1907729MB, TOSHIBA , MG04SCA20ENY , Hard Drive) 5000039A883***, [Enclosure Direct Attached, Slot 3(Connector 0:CN0)]
  • 设置全局热备和具备热备盘

arcconf setstate *controller_id* device *channel_id* *slot_id* hsp [logicaldrive *ld_id1* *ld_id2*]

参数参数说明取值
controller_idRAID卡ID
channel_id硬盘Channel ID
slot_id硬盘槽位号
ld_id1 ld_id2虚拟硬盘ID同一个局部热备盘最多可为2个虚拟磁盘做热备

注: 不带logicaldrive ld_id1 ld_id2参数时,表示设置全局热备盘。
带logicaldrive ld_id1 ld_id2参数时,表示设置局部热备盘。

./arcconf setstate 1 device 0 3 hsp
  • 设置硬盘定位指示灯状态

arcconf identify *controller_id* device *Physical_id*

参数参数说明取值
controller_idRAID卡ID
Physical_id硬盘Channel ID
./arcconf identify 1 device 3
  • 获取设备信息(RAID卡、虚拟磁盘、物理磁盘)

arcconf getconfig *controller_id* <ad|ld *ld_id*|pd *channel_id* *slog_id*|mc|al>

参数参数说明取值
controller_idRAID卡ID
ad查询控制器属性
ld查询虚拟磁盘属性
ld_id虚拟磁盘ID
pd查询物理磁盘属性
channel_id磁盘所在Channel的ID
slog_id硬盘槽位号
mc查询maxCache信息
al查询所有信息
./arcconf getconfig 1 ad

结语

大概就用到这么多,先整理这么多,这些都是根据官方英文文档和华为(某RAID卡但工具相同)中文文档整理而来

附录

华为V2&V3服务器 RAID控制卡 用户指南 46

ARCCONF Command Line User's Guide

华为V5服务器 RAID控制卡 用户指南 44

Last modification:September 1st, 2021 at 03:23 pm