Adaptec - снимаем информацию с RAID-контролера

Версия для печатиОтправить другуPDF version

Adaptec логотип

В одном из обслуживаемых серверов, согласно выводу dmesg, установлен RAID-контроллер Adaptec, который FreeBSD распознала как aac0. Выборка из dmesg:

# cat /var/run/dmesg.boot | grep RAID
aac0: Adaptec RAID controller, aac driver 2.1.9-1
aacd0: <RAID 1 (Mirror)> on aac0

Для работы с этим контроллером воспользуемся возможностями утилиты arcconf. Arcconf - утилита для работы с контроллерами RAID из командной строки. С ее помощью можно получить детальную информацию о контроллере и созданных массивах.

Установку, как всегда, выполним из системы портов:

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

Размер дистрибутива "порадовал" - 99 MB. Хорошо, что сервер отдавал дистрибутив на скорости около 20 Mbps. А установка вообще заняла несколько строк. Собственно:

# cd /usr/ports/sysutils/arcconf && make install clean && rehash
=> asm_freebsd_x86_v7_30_18837.tgz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch http://download.adaptec.com/raid/storage_manager/asm_freebsd_x86_v7_30_1...
asm_freebsd_x86_v7_30_18837.tgz               100% of   99 MB 2641 kBps 00m00s
===>  Extracting for arcconf-v7.30.18837
=> SHA256 Checksum OK for asm_freebsd_x86_v7_30_18837.tgz.
===>  Patching for arcconf-v7.30.18837
===>  Configuring for arcconf-v7.30.18837
===>  Installing for arcconf-v7.30.18837
===>   Generating temporary packing list
===>  Checking if sysutils/arcconf already installed
install  -s -o root -g wheel -m 555 /usr/ports/sysutils/arcconf/work/freebsd8/cmdline/arcconf /usr/local/sbin
install  -o root -g wheel -m 555 /usr/ports/sysutils/arcconf/work/410.status-aac-raid /usr/local/etc/periodic/daily
===>   Registering installation for arcconf-v7.30.18837
===>  Cleaning for arcconf-v7.30.18837

После установки утилиты ознакомимся с ее возможностями. Для вывода "хелпа" запустим утилиту без указания ключей:

# arcconf
  | UCLI |  Adaptec by PMC uniform command line interface
  | UCLI |  Version 7.30 (B18837)
  | UCLI |  (C) Adaptec by PMC 2003-2011
  | UCLI |  All Rights Reserved
 ATAPASSWORD             | Setting password on a physical drive
 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
 GETCONFIG               | prints controller information
 GETLOGS                 | gets controller log information
 GETSMARTSTATS           | gets the SMART statistics
 GETSTATUS               | displays the status of running tasks
 GETVERSION              | prints version information for all controllers
 IDENTIFY                | blinks LEDS on device(s) connected to a controller
 IMAGEUPDATE             | update physical device firmware
 KEY                     | installs a Feature Key onto a controller
 MODIFY                  | performs RAID Level Migration or Online Capacity Expansion
 RESCAN                  | checks for new or removed drives
 RESETSTATISTICSCOUNTERS | resets the controller statistics counters
 ROMUPDATE               | updates controller firmware
 SAVESUPPORTARCHIVE      | saves the support archive
 SETALARM                | controls the controller alarm, if present
 SETCACHE                | adjusts physical or logical device cache mode
 SETCONFIG               | restores the default configuration
 SETMAXCACHE             | adjusts MaxCache settings for physical or logical device
 SETNAME                 | renames a logical device given its logical device number
 SETNCQ                  | toggles the controller NCQ status
 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
 SETSTATSDATACOLLECTION  | toggles the controller statistics data collection modes
 TASK                    | performs a task such as build/verify on a physical or logical device

Проверим состояние массива (он у меня под номером 1):

# arcconf GETCONFIG 1
Controllers found: 1
----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------
   Controller Status                        : Optimal
   Channel description                      : SCSI
   Controller Model                         : PERC 3/Di
   Controller Serial Number                 : 202020D3
   Installed memory                         : 128 MB
   Copyback                                 : Disabled
   Background consistency check             : Disabled
   Automatic Failover                       : Enabled
   Stayawake period                         : Disabled
   Spinup limit internal drives             : 0
   Spinup limit external drives             : 0
   Defunct disk drive count                 : 0
   Logical devices/Failed/Degraded          : 1/0/1
   --------------------------------------------------------
   Controller Version Information
   --------------------------------------------------------
   BIOS                                     : 2.8-0 (6095)
   Firmware                                 : 2.8-0 (6095)
   Driver                                   : 2.1-9 (1)
   Boot Flash                               : 0.0-0 (0)
   --------------------------------------------------------
   Controller Battery Information
   --------------------------------------------------------
   Status                                   : Optimal
   Over temperature                         : No
   Capacity remaining                       : 0 percent
   Time remaining (at current draw)         : 0 days, 0 hours, 0 minutes

----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
Logical device number 0
   Logical device name                      : centr
   RAID level                               : 1
   Status of logical device                 : Degraded
   Size                                     : 69998 MB
   Write-cache mode                         : Not supported
   Partitioned                              : Yes
   Protected by Hot-Spare                   : No
   Bootable                                 : Yes
   Failed stripes                           : No
   Power settings                           : Disabled
   --------------------------------------------------------
   Logical device segment information
   --------------------------------------------------------
   Segment 0                                : Missing
   Segment 1                                : Present (Controller:1,Channel:0,Device:2) 3HW1MXFH

----------------------------------------------------------------------
Physical Device information
----------------------------------------------------------------------
   Channel #0:
      Transfer Speed                        : Ultra160
      Initiator at SCSI ID 7
      Device #0
         Device is a Hard drive
         State                              : Ready
         Supported                          : Yes
         Transfer Speed                     : Ultra160
         Reported Channel,Device(T:L)       : 0,0(0:0)
         Vendor                             : IBM-ESXS
         Model                              : MAS3735NC     FN
         Firmware                           : C901
         Serial number                      : 05000G1K
         Size                               : 70006 MB
         Write Cache                        : Unknown
         FRU                                : 32P0737
         S.M.A.R.T.                         : No
         S.M.A.R.T. warnings                : 0
      Device #2
         Device is a Hard drive
         State                              : Online
         Supported                          : Yes
         Transfer Speed                     : Ultra160
         Reported Channel,Device(T:L)       : 0,2(2:0)
         Vendor                             : SEAGATE
         Model                              : ST373453LC
         Firmware                           : DX10
         Serial number                      : 3HW00XFH
         Size                               : 70007 MB
         Write Cache                        : Unknown
         FRU                                : None
         S.M.A.R.T.                         : No
         S.M.A.R.T. warnings                : 0
      Device #6
         Device is an Enclosure
         Type                               : SAF-TE
         Vendor                             : PE/PV
         Model                              : 1x5 SCSI BP
         Firmware                           : 1.1
         Status of Enclosure
            Temperature status              : Normal
   Channel #1:
      Transfer Speed                        : Ultra160
      Initiator at SCSI ID 7
      No physical drives attached


Command completed successfully.

Как оказалось, один из дисков "вылетел" из массива. Скорей всего кто-то выдернул диск на работающей системе, тоесть "вгорячую". Необходимо пересобирать массив, но это уже тема для отдельной статьи ;)

 

Ваша оценка: Нет Средняя: 2.8 (4 голоса)

Вставай, Україно!

Литература