https://blog.yelvlab.cn/archives/622/
最近用到了一个MICROCHIP公司的阵列卡
Microsemi Adaptec SmartRAID 3152-8i
,但是常用的Raid Manager工具megacli
,并不兼容这张卡,无法进行管理和监控,所以研究一下能管理和监控这张卡的工具。经过多方查询与协调供应商沟通测试,终于把最终目标锁定在官方提供的工具arcconf
。
Microsemi Adaptec SmartRAID 3152-8i
官方页面DOWNLOADS
页面进入Storage Manager Downloads
页面Adaptec ARCCONF Command Line Utility v3.10.24308
wget https://download.adaptec.com/raid/storage_manager/arcconf_v3_10_24308.zip
unzip arcconf_v3_10_24308.zip
./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
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卡但工具相同)中文文档整理而来