Hetzner - DokuWiki

Adaptec RAID Controller/en

Inhaltsverzeichnis

Adaptec hardware RAID controller

The program developed by Adaptec for the administration of the RAID controller can be found in our download area under:

http://download.hetzner.de/tools/Adaptec/
  • The access data for this area can be found in the order completion email for your dedicated server.
  • When downloading the program, please make sure you select the architecture suitable for your operating system.

The arcconf tool is used for managing the controller on the command-line interface.

The Adaptec Storage Manager is called asm and is a graphical tool.

How to read the status of the hardware-based RAID

To read the status of the Adaptec RAID Controller, the Adaptec command-line tool arcconf must be installed. This is already pre-installed in the Rescue System.

The actual status of the RAID may be obtained by using the following command:

arcconf GETCONFIG 1 LD

Example 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#>

eg:

arcconf DELETE 1 LOGICALDRIVE 0

or all:

arcconf DELETE 1 LOGICALDRIVE ALL

Now a new RAID can be set up:

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, 1 and 2, 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, 1, 2 and 3, 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, a manual rescan can be launched:

arcconf RESCAN 1

The status of the RAID should then be shown as being 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. More information on this can be found on the Adaptec website at Adaptec KB5117.

An example on how to set Device 0;0 on Controller 1 from "hot spare" to "ready":

arcconf setstate 1 device 0 0 rdy

How to read the SMART values of the drive in RAID

The sg module helps to access the physical drives behind the controller, eg. for the first drive:

smartctl -d sat -a /dev/sg1

Depending on the operating system, an upgrade of the smartmontools or the kernel may be necessary.

How to restore a faulty array

If an array is detected but the state is failed or offline, there is a chance to force an activation of the 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.
More information is available at: 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

Backing up and restoring the configuration of the controller

To save the configuration of the controller and all arrays:

# arcconf saveconfig config.xml

This command will save the config to "/var/log/config.xml".

To restore the configuration of the controller:

# arcconf playconfig /path/to/config.xml


© 2016. Hetzner Online GmbH. Alle Rechte vorbehalten.