Servidor Dedicado con Adaptec Raid Controller

Este artículo describe cómo monitorear y reconstruir tu hardware raid si tu servidor Linux tiene un Adaptec Raid Controller.

Con el software arcconf64 tienes la posibilidad de controlar el Raid Controller de tu servidor. Por ejemplo, puedes leer información y reconstruir un hardware raid en caso necesario. arcconf64 está instalado en el servidor de forma predeterminada.

 

  • Inicia sesión en tu servidor Linux a través de SSH y conviértete en root.

  • Lee la información sobre tu servidor usando el comando arcconf64 getconfig 1. Aquí hay un ejemplo:

Controllers found: 1
----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------
Controller Status : Optimal
Channel description : SAS/SATA
Controller Model : Adaptec 6805E R5
Controller Serial Number : 4A12135DADB
Controller World Wide Name : 50000D1107D73700
Physical Slot : 6
Temperature : 60 C/ 140 F (Normal)
Installed memory : 128 MB
Copyback : Disabled
Background consistency check : Disabled
Background consistency check period : 30
Automatic Failover : Enabled
Global task priority : High
Performance Mode : Default/Dynamic
Host bus type : PCIe
Host bus speed : 5000 MHz
Host bus link width : 4 bit(s)/link(s)
Stayawake period : Disabled
Spinup limit internal drives : 0
Spinup limit external drives : 0
Defunct disk drive count : 0
Logical devices/Failed/Degraded : 2/0/0
NCQ status : Enabled
Statistics data collection mode : Enabled
--------------------------------------------------------
Controller Version Information
--------------------------------------------------------
BIOS : 5.2-0 (19109)
Firmware : 5.2-0 (19109)
Driver : 1.2-0 (30200)
Boot Flash : 5.2-0 (19109)

----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
Logical device number 0
Logical device name : Volume#0
Block Size of member drives : 512 Bytes
RAID level : 1
Unique Identifier : D605B3AA
Status of logical device : Optimal
Size : 228342 MB
Parity space : 228352 MB
Read-cache setting : Enabled
Read-cache status : On
Write-cache setting : Enabled
Write-cache status : On
Partitioned : Yes
Protected by Hot-Spare : No
Bootable : Yes
Failed stripes : No
Power settings : Disabled
--------------------------------------------------------
Logical device segment information
--------------------------------------------------------
Segment 0 : Present (Controller:1,Connector:0,Device:0) WD-WCC131993448
Segment 1 : Present (Controller:1,Connector:0,Device:1) WD-WCC132055406

Logical device number 1
Logical device name : Volume#1
Block Size of member drives : 512 Bytes
RAID level : 1
Unique Identifier : 4F0DB3AA
Status of logical device : Optimal
Size : 3586038 MB
Parity space : 3586048 MB
Read-cache setting : Enabled
Read-cache status : On
Write-cache setting : Enabled
Write-cache status : On
Partitioned : Yes
Protected by Hot-Spare : No
Bootable : No
Failed stripes : No
Power settings : Disabled
--------------------------------------------------------
Logical device segment information
--------------------------------------------------------
Segment 0 : Present (Controller:1,Connector:0,Device:0) WD-WCC131993448
Segment 1 : Present (Controller:1,Connector:0,Device:1) WD-WCC132055406


----------------------------------------------------------------------
Physical Device information
----------------------------------------------------------------------
Device #0
Device is a Hard drive
State : Online
Block Size : 512 Bytes
Supported : Yes
Transfer Speed : SATA 6.0 Gb/s
Reported Channel,Device(T:L) : 0,0(0:0)
Reported Location : Connector 0, Device 0
Vendor : WDC
Model : WD4000F9YZ-09N20
Firmware : 01.01A01
Serial number : WD-WCC131993448
World-wide name : 50014EE25F66F1E0
Reserved Size : 1072920 KB
Used Size : 3814400 MB
Unused Size : 64 KB
Total Size : 3815447 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 rpm,Powered off,Reduced rpm
SSD : No
NCQ status : Enabled
Device #1
Device is a Hard drive
State : Online
Block Size : 512 Bytes
Supported : Yes
Transfer Speed : SATA 6.0 Gb/s
Reported Channel,Device(T:L) : 0,1(1:0)
Reported Location : Connector 0, Device 1
Vendor : WDC
Model : WD4000F9YZ-09N20
Firmware : 01.01A01
Serial number : WD-WCC132055406
World-wide name : 50014EE25F678455
Reserved Size : 1072920 KB
Used Size : 3814400 MB
Unused Size : 64 KB
Total Size : 3815447 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 rpm,Powered off,Reduced rpm
SSD : No
NCQ status : Enabled



Command completed successfully. 

Consulta los acontecimientos en el servidor usando el comando arcconf64 getlogs event. Ejemplo:

Controllers found: 1
<ControllerLog controllerID="0" type="6" time="1406893517">
<eventlog>
<event Date="1406027447" eventType="FSA_EM_BATTERY_CHANGE" eventCode="0x4000" batteryEventType="FSA_BATTERY_DEAD" batteryEventCode="1" priorState="0"
currentState="0" controllerID="0"/>
<event Date="1406027451" eventType="FSA_EM_BATTERY_CHANGE" eventCode="0x4000" batteryEventType="FSA_BATTERY_DEAD" batteryEventCode="1" priorState="0"
currentState="0" controllerID="0"/>
<event Date="1406027455" eventType="FSA_EM_BATTERY_CHANGE" eventCode="0x4000" batteryEventType="FSA_BATTERY_DEAD" batteryEventCode="1" priorState="0"
currentState="0" controllerID="0"/>
<event Date="1406027459" eventType="FSA_EM_BATTERY_CHANGE" eventCode="0x4000" batteryEventType="FSA_BATTERY_DEAD" batteryEventCode="1" priorState="0"
currentState="0" controllerID="0"/>
<event Date="1406030050" eventType="FSA_EM_BATTERY_CHANGE" eventCode="0x4000" batteryEventType="FSA_BATTERY_DEAD" batteryEventCode="1" priorState="0"
currentState="0" controllerID="0"/>
<event Date="1406030054" eventType="FSA_EM_BATTERY_CHANGE" eventCode="0x4000" batteryEventType="FSA_BATTERY_DEAD" batteryEventCode="1" priorState="0"
currentState="0" controllerID="0"/>
<event Date="1406030058" eventType="FSA_EM_BATTERY_CHANGE" eventCode="0x4000" batteryEventType="FSA_BATTERY_DEAD" batteryEventCode="1" priorState="0"
currentState="0" controllerID="0"/>
<event Date="1406032580" eventType="FSA_EM_BATTERY_CHANGE" eventCode="0x4000" batteryEventType="FSA_BATTERY_DEAD" batteryEventCode="1" priorState="0"
currentState="0" controllerID="0"/>
<event Date="1406036751" eventType="FSA_EM_BATTERY_CHANGE" eventCode="0x4000" batteryEventType="FSA_BATTERY_DEAD" batteryEventCode="1" priorState="0"
currentState="0" controllerID="0"/>
<event Date="1406036755" eventType="FSA_EM_BATTERY_CHANGE" eventCode="0x4000" batteryEventType="FSA_BATTERY_DEAD" batteryEventCode="1" priorState="0"
currentState="0" controllerID="0"/>
<event Date="1406439877" eventType="FSA_EM_BATTERY_CHANGE" eventCode="0x4000" batteryEventType="FSA_BATTERY_DEAD" batteryEventCode="1" priorState="0"
currentState="0" controllerID="0"/>
<event Date="1406439881" eventType="FSA_EM_BATTERY_CHANGE" eventCode="0x4000" batteryEventType="FSA_BATTERY_DEAD" batteryEventCode="1" priorState="0"
currentState="0" controllerID="0"/>
<event Date="1406439885" eventType="FSA_EM_BATTERY_CHANGE" eventCode="0x4000" batteryEventType="FSA_BATTERY_DEAD" batteryEventCode="1" priorState="0"
currentState="0" controllerID="0"/>
<event Date="1406439889" eventType="FSA_EM_BATTERY_CHANGE" eventCode="0x4000" batteryEventType="FSA_BATTERY_DEAD" batteryEventCode="1" priorState="0"
currentState="0" controllerID="0"/>
<event Date="1406442128" eventType="FSA_EM_BATTERY_CHANGE" eventCode="0x4000" batteryEventType="FSA_BATTERY_DEAD" batteryEventCode="1" priorState="0"
currentState="0" controllerID="0"/>
<event Date="1406442132" eventType="FSA_EM_BATTERY_CHANGE" eventCode="0x4000" batteryEventType="FSA_BATTERY_DEAD" batteryEventCode="1" priorState="0"
currentState="0" controllerID="0"/>
<event Date="1406442136" eventType="FSA_EM_BATTERY_CHANGE" eventCode="0x4000" batteryEventType="FSA_BATTERY_DEAD" batteryEventCode="1" priorState="0"
currentState="0" controllerID="0"/>
<event Date="1406452738" eventType="FSA_EM_BATTERY_CHANGE" eventCode="0x4000" batteryEventType="FSA_BATTERY_DEAD" batteryEventCode="1" priorState="0"
currentState="0" controllerID="0"/>
<event Date="1406452742" eventType="FSA_EM_BATTERY_CHANGE" eventCode="0x4000" batteryEventType="FSA_BATTERY_DEAD" batteryEventCode="1" priorState="0"
currentState="0" controllerID="0"/>
<event Date="1406452746" eventType="FSA_EM_BATTERY_CHANGE" eventCode="0x4000" batteryEventType="FSA_BATTERY_DEAD" batteryEventCode="1" priorState="0"
currentState="0" controllerID="0"/>
</eventlog>
</ControllerLog>

Consulta los acontecimientos en el disco duro usando el comando getlogs 1 device.

Importante

Antes de reconstruir un hardware raid, asegúrate de que la opción Automatic Failover esté activada. Por defecto, este es el caso. Puedes activar la opción con el comando arcconf64 failover 1 on.

 

  • Introduce el comando arcconf64 reexplorar 1. En la mayoría de los casos, la reconstrucción del hardwaire raid comienza automáticamente. El proceso se realiza en segundo plano y puede durar varios minutos.

  • Si la reconstrucción no se inicia automáticamente durante la reexploración, elimine los metadatos del disco duro con el siguiente comando: arcconf64 TASK START 1 DEVICE 0 2 CLEAR, donde 0 representa el canal del controlador y 2 el puerto del disco duro.

  • Monta el disco duro reemplazado como Hotspare con el siguiente comando: arcconf64 SETSTATE 1 DEVICE 0 1 HSP LOGICALDRIVE 1. La reconstrucción se inicia automáticamente.