Adaptec RAID Card Array Status using SSH

I recently moved to new dedicated server and turns out that the server is equipped with Adapted RAID Card. The server has linux CentOS 5.4 64bit installed and if you were to check health status of the RAID array using SSH, you would have to use the /usr/StorMan/arcconf command by logging into your server through ssh/shell account.

If the server comes installed with adapted card, chances are that adapted raid management tools are already installed or you can visit adaptec’s website and download the executable as well as the RPM files for your server.

Here is sample output of the command:

root@host [/]# /usr/StorMan/arcconf

| UCLI | Adaptec uniform command line interface
| UCLI | Version 6.10 (B18359)
| UCLI | (C) Adaptec 2003-2008
| UCLI | All Rights Reserved

COPYBACK | toggles controller copy back mode
CREATE | creates a logical device
DATASCRUB | toggles the controller background consistency check mode
DELETE | deletes one or more logical devices
FAILOVER | toggles the controller automatic failover mode
SNAPSHOT | creates a copy of a logical device
GETCONFIG | prints controller information
GETLOGS | gets controller log information
GETSTATUS | displays the status of running tasks
GETVERSION | prints version information for all controllers
IDENTIFY | blinks LEDS on device(s) connected to a controller
KEY | installs a Feature Key onto a controller
MODIFY | performs RAID Level Migration or Online Capacity Expansion
RESCAN | checks for new or removed drives
ROMUPDATE | updates controller firmware
SETALARM | controls the controller alarm, if present
SETCONFIG | restores the default configuration
SETCACHE | adjusts physical or logical device cache mode
SETNAME | renames a logical device given its logical device number
SETPERFORM | changes adapter settings based on application
SETPOWER | power settings for controller or logical device
SETPRIORITY | changes specific or global task priority
SETSTATE | manually sets the state of a physical or logical device
TASK | performs a task such as build/verify on a physical or logical device

Entering the /usr/StorMan/arcconf GETCONFIG 1 ld gives you basic logical device information:

root@host [/]# /usr/StorMan/arcconf GETCONFIG 1 ld
Controllers found: 1
———————————————————————-
Logical device information
———————————————————————-
Logical device number 0
Logical device name : raid10-a
RAID level : 10
Status of logical device : Optimal
Size : 279788 MB
Stripe-unit size : 256 KB
Read-cache mode : Enabled
Write-cache mode : Enabled (write-back)
Write-cache setting : Enabled (write-back) when protected by battery
Partitioned : Yes
Protected by Hot-Spare : No
Bootable : Yes
Failed stripes : No
Power settings : Disabled
——————————————————–
Logical device segment information
——————————————————–
Group 0, Segment 0 : Present (0,0) 3QN2GB4700009014J9R0
Group 0, Segment 1 : Present (0,1) 3QN2GC5Q0000901452ME
Group 1, Segment 0 : Present (0,2) 3QN2GB5V0000901453YV
Group 1, Segment 1 : Present (0,3) 3QN16S1100009941L1HN

To get more detailed information, you can use this command:

root@host [/]# /usr/StorMan/arcconf GETCONFIG 1 | more

root@host [/]# /usr/StorMan/arcconf GETCONFIG 1 | more
Controllers found: 1
———————————————————————-
Controller information
———————————————————————-
Controller Status : Optimal
Channel description : SAS/SATA
Controller Model : Adaptec 5405
Controller Serial Number : 9D421138FF9
Physical Slot : 1
Temperature : 51 C/ 123 F (Normal)
Installed memory : 256 MB
Copyback : Disabled
Background consistency check : Disabled
Automatic Failover : Enabled
Global task priority : High
Performance Mode : Default/Dynamic
Stayawake period : Disabled
Spinup limit internal drives : 0
Spinup limit external drives : 0
Defunct disk drive count : 0
Logical devices/Failed/Degraded : 1/0/0
——————————————————–
Controller Version Information
——————————————————–
BIOS : 5.2-0 (17544)
Firmware : 5.2-0 (17544)
Driver : 1.1-5 (2461)
Boot Flash : 5.2-0 (17544)
——————————————————–
Controller Battery Information
——————————————————–
Status : Optimal
Over temperature : No
Capacity remaining : 99 percent
Time remaining (at current draw) : 3 days, 1 hours, 11 minutes

———————————————————————-
Logical device information
———————————————————————-
Logical device number 0
Logical device name : raid10-a
RAID level : 10
Status of logical device : Optimal
root@host [/]# /usr/StorMan/arcconf GETCONFIG 1 | more
Controllers found: 1
———————————————————————-
Controller information
———————————————————————-
Controller Status : Optimal
Channel description : SAS/SATA
Controller Model : Adaptec 5405
Controller Serial Number : 9D421138FF9
Physical Slot : 1
Temperature : 51 C/ 123 F (Normal)
Installed memory : 256 MB
Copyback : Disabled
Background consistency check : Disabled
Automatic Failover : Enabled
Global task priority : High
Performance Mode : Default/Dynamic
Stayawake period : Disabled
Spinup limit internal drives : 0
Spinup limit external drives : 0
Defunct disk drive count : 0
Logical devices/Failed/Degraded : 1/0/0
——————————————————–
Controller Version Information
——————————————————–
BIOS : 5.2-0 (17544)
Firmware : 5.2-0 (17544)
Driver : 1.1-5 (2461)
Boot Flash : 5.2-0 (17544)
——————————————————–
Controller Battery Information
——————————————————–
Status : Optimal
Over temperature : No
Capacity remaining : 99 percent
Time remaining (at current draw) : 3 days, 1 hours, 11 minutes

———————————————————————-
Logical device information
———————————————————————-
Logical device number 0
Logical device name : raid10-a
RAID level : 10
Status of logical device : Optimal
Size : 279788 MB
Stripe-unit size : 256 KB
Read-cache mode : Enabled
Write-cache mode : Enabled (write-back)
Write-cache setting : Enabled (write-back) when protected by battery
Partitioned : Yes
Protected by Hot-Spare : No
Bootable : Yes
Failed stripes : No
Power settings : Disabled
——————————————————–
Logical device segment information
——————————————————–
Group 0, Segment 0 : Present (0,0) 3QN2GB4700009014J9R0
Group 0, Segment 1 : Present (0,1) 3QN2GC5Q0000901452ME
Group 1, Segment 0 : Present (0,2) 3QN2GB5V0000901453YV
Group 1, Segment 1 : Present (0,3) 3QN16S1100009941L1HN

———————————————————————-
Physical Device information
———————————————————————-
Device #0
Device is a Hard drive
State : Online
Supported : Yes
Transfer Speed : SAS 3.0 Gb/s
Reported Channel,Device(T:L) : 0,0(0:0)
Reported Location : Connector 0, Device 0
Vendor : SEAGATE
Model : ST3146356SS
Firmware : 0006
Serial number : 3QN2GB4700009014J9R0
World-wide name : 5000C50017536D48
Size : 140014 MB
Write Cache : Enabled (write-back)
FRU : None
S.M.A.R.T. : No
Device #1
Device is a Hard drive
State : Online
Supported : Yes
Transfer Speed : SAS 3.0 Gb/s
Reported Channel,Device(T:L) : 0,1(1:0)
Reported Location : Connector 0, Device 1
Vendor : SEAGATE
Model : ST3146356SS
Firmware : 0006
Serial number : 3QN2GC5Q0000901452ME
World-wide name : 5000C50017536B58
Size : 140014 MB
Write Cache : Enabled (write-back)
FRU : None
S.M.A.R.T. : No
Device #2
Device is a Hard drive
State : Online
Supported : Yes
Transfer Speed : SAS 3.0 Gb/s
Reported Channel,Device(T:L) : 0,2(2:0)
Reported Location : Connector 0, Device 2
Vendor : SEAGATE
Model : ST3146356SS
Firmware : 0006
Serial number : 3QN2GB5V0000901453YV
World-wide name : 5000C50017536648
Size : 140014 MB
Write Cache : Enabled (write-back)
FRU : None
S.M.A.R.T. : No
Device #3
Device is a Hard drive
State : Online
Supported : Yes
Transfer Speed : SAS 3.0 Gb/s
Reported Channel,Device(T:L) : 0,3(3:0)
Reported Location : Connector 0, Device 3
Vendor : SEAGATE
Model : ST3146356SS
Firmware : 0005
Serial number : 3QN16S1100009941L1HN
World-wide name : 5000C50012AFDB64
Size : 140014 MB
Write Cache : Enabled (write-back)
FRU : None
S.M.A.R.T. : No

Command completed successfully.
root@host [/]#

Other plugins available with the /usr/StorMan/arcconf GETCONFIG command:

root@host [/]# /usr/StorMan/arcconf GETCONFIG

Usage: GETCONFIG <Controller#> [AD | LD [LD#] | PD | [AL]]
======================================================

Prints controller configuration information.

Option AD : Adapter information only
LD : Logical device information only
LD# : Optionally display information about the specified logical device
PD : Physical device information only
AL : All information (optional)
root@host [/]#

These are just basic commands to give you status on adapted RAID card on your server. If you wish to get more technical and do some advanced raid management, please refer to the adaptec’s user manuals. As always, please be careful what commands you type on live production servers. Use at your own risk. If you have any questions or comments, be sure to post them in the forum.