Adaptec RAID controller
The arcconf tool is used for managing the controller on the command-line interface.
asm (Adaptec Storage Manager) is a graphical tool.
How to check the status of the hardware-based RAID
To check the status of the Adaptec RAID Controller, the Adaptec command-line tool arcconf must be installed.
The actual status of the RAID may be obtained by using the following command:
arcconf GETCONFIG 1 LD
Example for RAID 1:
Controllers found: 1
----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
Logical device number 0
Logical device name :
RAID level : 1
Status of logical device : Optimal
Size : 714742 MB
Read-cache mode : Enabled
MaxIQ preferred cache setting : Enabled
MaxIQ cache setting : Disabled
Write-cache mode : Enabled (write-back)
Write-cache setting : Enabled (write-back)
Partitioned : Yes
Protected by Hot-Spare : No
Bootable : Yes
Failed stripes : No
Power settings : Disabled
--------------------------------------------------------
Logical device segment information
--------------------------------------------------------
Segment 0 : Present (0,0) S13UJ1DPB05048
Segment 1 : Present (0,1) S13UJ1DQ201027
The status of the drives may be obtained by using the following command:
arcconf GETCONFIG 1 PD
As this command also generates a quantity of useless information, it is advisable to filter the output, eg. using:
arcconf getconfig 1 pd|egrep "Device #|State\>|Reported Location|Reported Channel|S.M.A.R.T. warnings"
How to set up a hardware-based RAID?
Regardless of whether changes to the mode of an existing RAID are required or if a new RAID (after installing a controller) is to be set up, the first thing to do is to delete the drives from their logical drives:
arcconf DELETE <Controller#> LOGICALDRIVE <ld#>
For example:
arcconf DELETE 1 LOGICALDRIVE 0
or (for all discs):
arcconf DELETE 1 LOGICALDRIVE ALL
Now it is possible to set up a new RAID:
arcconf CREATE <Controller#> LOGICALDRIVE [Options] <Size> <RAID#> <Channel# ID#> [Channel# ID#]
RAID 0 setup (maximum size, drives on Channel 0, Port 0 and 1, no confirmation):
arcconf CREATE 1 LOGICALDRIVE MAX 0 0 0 0 1 noprompt
RAID 1 setup (maximum size, drives on Channel 0, Port 0 and 1, no confirmation):
arcconf CREATE 1 LOGICALDRIVE MAX 1 0 0 0 1 noprompt
RAID 5 setup (maximum size, drives on Channel 0, Port 0 and 1, no confirmation):
arcconf CREATE 1 LOGICALDRIVE MAX 5 0 0 0 1 0 2 noprompt
RAID 10 setup (maximum size, drives on Channel 0, Port 0 and 1, no confirmation):
arcconf CREATE 1 LOGICALDRIVE MAX 10 0 0 0 1 0 2 0 3 noprompt
JBOD (single drive on Channel 0, Port 2):
arcconf CREATE 1 JBOD 0 2 noprompt
How to start a REBUILD using arcconf with a DEGRADED RAID
First, check to see if all drives are recognized:
arcconf GETCONFIG 1 PD
If they are not, start a manual rescan:
arcconf RESCAN 1
The status of the RAID should then be shown as DEGRADED:
root@rescue ~ # arcconf getconfig 1 ld
Controllers found: 1
----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
Logical device number 0
Logical device name : Device 0
RAID level : 1
Status of logical device : Degraded
Size : 1428470 MB
Read-cache mode : Enabled
Write-cache mode : Enabled (write-back)
Write-cache setting : Enabled (write-back)
Partitioned : No
Protected by Hot-Spare : No
Bootable : Yes
Failed stripes : No
Power settings : Disabled
--------------------------------------------------------
Logical device segment information
--------------------------------------------------------
Segment 0 : Inconsistent (0,0) 9VS38R1D
Segment 1 : Present (0,1) 9VS38RKE
Now it may be necessary to delete the metadata:
arcconf TASK START 1 DEVICE 0 0 CLEAR
Since “automatic failover” mode is enabled, the rebuild should have already started. If it has not, the drive is manually added to the RAID as a hot spare. The rebuild starts automatically:
arcconf SETSTATE 1 DEVICE 0 0 HSP LOGICALDRIVE 0
After a RAID rebuild on a Hot-Spare drive, the drive remains as a hot spare. After replacing the defective drive, data automatically migrates back. It is also possible to remove a hot spare designation via arcconf and to mark the new replacement drive as a new Hot-Spare.
For ex., how to setup Device 0;0 on Controller 1: change ‘Hot-Spare’ to ‘Ready’:
arcconf setstate 1 device 0 0 rdy
How to read the SMART values of the drive in RAID
Using the sg module it is possible to access the physical drives behind the controller. An exanple for the first drive:
smartctl -d sat -a /dev/sg1
Depending on the operating system, you may have to upgrade the smartmontools or the kernel.
How to restore a faulty array
If an array is detected as failed or offline, there is a chance to force its activation or to create a new one without losing data. There is however, no guarantee that a recovery is possible. Data loss can not be excluded.
Detailed information: Ask Adaptec
It is possible in some circumstances to bring an array back online using the following command:
arcconf SETSTATE <Controller#> LOGICALDRIVE <LD#> OPTIMAL [ADVANCED <option>] [noprompt]
An example for the first array on the first controller would be:
arcconf SETSTATE 1 LOGICALDRIVE 0 OPTIMAL ADVANCED nocheck noprompt