Loading... # arcconf工具简单学习 > 最近用到了一个MICROCHIP公司的阵列卡`Microsemi Adaptec SmartRAID 3152-8i`,但是常用的Raid Manager工具`megacli`,并不兼容这张卡,无法进行管理和监控,所以研究一下能管理和监控这张卡的工具。经过多方查询与协调供应商沟通测试,终于把最终目标锁定在官方提供的工具`arcconf`。 ## ARCCONF下载与安装 1. [`Microsemi Adaptec SmartRAID 3152-8i`官方页面](https://storage.microsemi.com/en-us/support/raid/sas_raid/asr-3152-8i/) 2. 在`DOWNLOADS`页面进入`Storage Manager Downloads`页面 3. 下载界面:[`Adaptec ARCCONF Command Line Utility v3.10.24308`](https://storage.microsemi.com/en-us/speed/raid/storage_manager/arcconf_v3_10_24308_zip.php) 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_id*|RAID卡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_id*|RAID卡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_id*|RAID卡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](https://support.huawei.com/enterprise/zh/doc/EDOC1000004345/a8e47755) [ARCCONF Command Line User's Guide](https://download.adaptec.com/pdfs/user_guides/adaptec_cli_smarthba_smartraid_7_21_ug.pdf) [华为V5服务器 RAID控制卡 用户指南 44](https://support.huawei.com/enterprise/zh/doc/EDOC1000163568/f63b5f9b#ZH-CN_TOPIC_0156749945) Last modification:September 1, 2021 © Allow specification reprint Like 0 If you think my article is useful to you, please feel free to appreciate