Linux检查Adaptec RAID阵列的运行状况
时间:2020-01-09 10:40:04 来源:igfitidea点击:
如何在Shell提示符下检查Ubuntu/Fedora/CentOS/Red Hat Enterprise Linux/Debian Linux服务器下Adaptec RAID阵列的运行状况?
首先,访问Adaptec官方网站以下载实用程序。
您也可以从CD /软盘安装实用程序软件。
安装rpm文件。
您需要使用arcconf命令,这是基于Adaptec的卡的统一命令行界面。
arcconf命令
要查看和修改其他RAID配置,请使用arcconf程序查看RAID阵列的运行状况。
只需以root用户身份登录,然后在shell提示符下执行以下命令:
# /usr/StorMan/arcconf getconfig 1
输出示例:
Controllers found: 1 --------------------------------------------------------------------- Controller information --------------------------------------------------------------------- Controller Status : Optimal Channel description : SAS/SATA Controller Model : Adaptec 5405Z Controller Serial Number : 9A5011438A2 Controller World Wide Name : 50000D1102255A80 Controller Alarm : Enabled Physical Slot : 6 Temperature : 41 C/ 105 F (Normal) Installed memory : 512 MB Global task priority : High Performance Mode : Default/Dynamic Host bus type : PCIe Host bus speed : 2500 MHz Host bus link width : 8 bit(s)/link(s) Stayawake period : Disabled Spinup limit internal drives : 0 Spinup limit external drives : 0 Defunct disk drive count : 1 Logical devices/Failed/Degraded : 1/0/1 NCQ status : Enabled Statistics data collection mode : Enabled ------------------------------------------------------- RAID Properties ------------------------------------------------------- Copyback : Disabled Background consistency check : Disabled Background consistency check period : 30 Automatic Failover : Enabled SSDs assigned to maxCache pool : 0 Maximum SSDs allowed in maxCache pool : 8 maxCache Read Cache Pool Size : 0.000 GB maxCache flush and fetch rate : 0 maxCache Read, Write Balance Factor : 3,1 ------------------------------------------------------- Controller Version Information ------------------------------------------------------- BIOS : 5.2-0 (18950) Firmware : 5.2-0 (18950) Driver : 1.2-1 (40709) Boot Flash : 5.2-0 (18950) ------------------------------------------------------- Controller ZMM Information ------------------------------------------------------- Status : ZMM Optimal --------------------------------------------------------------------- Logical device information --------------------------------------------------------------------- Logical device number 0 Logical device name : RAID10-A Block Size of member drives : 512 Bytes RAID level : 10 Unique Identifier : 0D9B27A7 Status of logical device : Degraded Additional details : Initialized with Build/Clear Size : 381190 MB Parity space : 381200 MB Stripe-unit size : 256 KB Read-cache setting : Disabled Read-cache status : Off Write-cache setting : Disabled Write-cache status : Off maxCache read cache setting : Disabled maxCache read cache status : Off Partitioned : No Protected by Hot-Spare : No Bootable : Yes Failed stripes : No Power settings : Disabled ------------------------------------------------------- Logical device segment information ------------------------------------------------------- Group 0, Segment 0 : Present (Controller:1,Connector:0,Device:0) 5G000KSJ Group 0, Segment 1 : Missing Group 1, Segment 0 : Present (Controller:1,Connector:0,Device:2) 5G000CVL Group 1, Segment 1 : Present (Controller:1,Connector:0,Device:3) 5G000A9P --------------------------------------------------------------------- Physical Device information --------------------------------------------------------------------- Device #0 Device is a Hard drive State : Online Block Size : 512 Bytes Supported : Yes Transfer Speed : SATA 3.0 Gb/s Reported Channel,Device(T:L) : 0,0(0:0) Reported Location : Connector 0, Device 0 Vendor : Model : SG9XCS2D200GESLT Firmware : SA03L370 Serial number : 5G000KSJ World-wide name : 50000D1102255A92 Reserved Size : 186520 KB Used Size : 190600 MB Unused Size : 64 KB Total Size : 190782 MB Write Cache : Enabled (write-back) FRU : None S.M.A.R.T. : No S.M.A.R.T. warnings : 0 Power State : Full rpm Supported Power States : Full power,Powered off SSD : Yes maxCache Capable : No maxCache Assigned : No Temperature : 不支持 NCQ status : Enabled Device #1 Device is a Hard drive State : Online Block Size : 512 Bytes Supported : Yes Transfer Speed : SATA 3.0 Gb/s Reported Channel,Device(T:L) : 0,2(2:0) Reported Location : Connector 0, Device 2 Vendor : Model : SG9XCS2D200GESLT Firmware : SA03L370 Serial number : 5G000CVL World-wide name : 50000D1102255A91 Reserved Size : 186520 KB Used Size : 190600 MB Unused Size : 64 KB Total Size : 190782 MB Write Cache : Enabled (write-back) FRU : None S.M.A.R.T. : No S.M.A.R.T. warnings : 0 Power State : Full rpm Supported Power States : Full power,Powered off SSD : Yes maxCache Capable : No maxCache Assigned : No Temperature : 不支持 NCQ status : Enabled Device #2 Device is a Hard drive State : Online Block Size : 512 Bytes Supported : Yes Transfer Speed : SATA 3.0 Gb/s Reported Channel,Device(T:L) : 0,3(3:0) Reported Location : Connector 0, Device 3 Vendor : Model : SG9XCS2D200GESLT Firmware : SA03L370 Serial number : 5G000A9P World-wide name : 50000D1102255A93 Reserved Size : 186520 KB Used Size : 190600 MB Unused Size : 64 KB Total Size : 190782 MB Write Cache : Enabled (write-back) FRU : None S.M.A.R.T. : No S.M.A.R.T. warnings : 0 Power State : Full rpm Supported Power States : Full power,Powered off SSD : Yes maxCache Capable : No maxCache Assigned : No Temperature : 不支持 NCQ status : Enabled Command completed successfully.
其中:
- 1:控制器编号
查看RAID的实际状态
输入以下命令:
# arcconf GETCONFIG 1 LD
查看驱动器的状态
# arcconf GETCONFIG 1 PD # arcconf GETCONFIG 1 PD | more
或尝试使用以下egrep命令过滤掉并找到有关驱动器的最重要信息:
# arcconf getconfig 1 pd|egrep "Device #|State\>|Reported Location|Reported Channel|S.M.A.R.T. warnings"