FreeBSD: получаем информацию о RAIDМы уже рассказывали о том как работать и создавать софтварные массивы RAID. Сегодня расскажем о хардварных RAIDах на примере Adaptec 5405.

[ad#ad-2]
Находим информацию об установленных контроллерах RAID. В FreeBSD это можно сделать так:

# dmesg | grep -i RAID
aac0:  mem 0xe8000000-0xe81fffff irq 16 at device 0.0 on pci6
aacd0:  on aac0

или так

# pciconf -l | grep -i aac
aac0@pci0:6:0:0:	class=0x010400 card=0x02d19005 chip=0x02859005 rev=0x09 hdr=0x00

FreeBSD arcconf
arcconf - утилита для работы с контроллерами RAID из командной строки. Она предназначена для получения детальной информации о RAID включая информацию о "здоровье" массива.

FreeBSD установка arcconf
Очень просто

# portsnap fetch update
# cd /usr/ports/sysutils/arcconf
# make install clean && rehash

FreeBSD - arcconf - получаем информацию о массиве RAID
Для получения информации о массиве в консоле вводим следующие команды. Пусть наш контроллер имеет номер "1". Тогда команда такая:

# /usr/local/sbin/arcconf getconfig 1

Controllers found: 1
----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------
   Controller Status                        : Optimal
   Channel description                      : SAS/SATA
   Controller Model                         : Adaptec 5405
   Controller Serial Number                 : 8C4310BD20D
   Physical Slot                            : 2
   Temperature                              : 58 C/ 136 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 (16501)
   Firmware                                 : 5.2-0 (16501)
   Driver                                   : 5.2-0 (16501)
   Boot Flash                               : 5.2-0 (16501)
   --------------------------------------------------------
   Controller Battery Information
   --------------------------------------------------------
   Status                                   : Optimal
   Over temperature                         : No
   Capacity remaining                       : 99 percent
   Time remaining (at current draw)         : 3 days, 0 hours, 52 minutes

----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
Logical device number 0
   Logical device name                      : RAID1-A
   RAID level                               : 1
   Status of logical device                 : Optimal
   Size                                     : 285686 MB
   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
   --------------------------------------------------------
   Segment 0                                : Present (0,0) 3LM44BDA00009839M228
   Segment 1                                : Present (0,1) 3LM4C6B000009841PEW9

----------------------------------------------------------------------
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                              : ST3300655SS
         Firmware                           : 0004
         Serial number                      : 3LM44BDA00009839M228
         World-wide name                    : 5000C50006EDAD74
         Size                               : 286102 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                              : ST3300655SS
         Firmware                           : 0004
         Serial number                      : 3LM4C6B000009841PEW9
         World-wide name                    : 5000C50006EF88D8
         Size                               : 286102 MB
         Write Cache                        : Enabled (write-back)
         FRU                                : None
         S.M.A.R.T.                         : No

Command completed successfully.

Теги: