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

  • user warning: Table './muffsql1/cache_filter' is marked as crashed and should be repaired query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '2:b4c06ed332fcd18aa20aa5e6ab3d1da1' in /usr/local/www/muff.kiev.ua/includes/cache.inc on line 27.
  • user warning: Table './muffsql1/cache_filter' is marked as crashed and should be repaired query: UPDATE cache_filter SET data = '<p class=\"rtecenter\"><img alt=\"Adaptec логотип\" width=\"140\" height=\"140\" src=\"http://muff.kiev.ua/files/adaptec.png\" /></p>\n<p class=\"rtejustify\">В одном из обслуживаемых серверов,&nbsp;согласно выводу <strong>dmesg</strong>, установлен <strong>RAID</strong>-контроллер <strong>Adaptec</strong>, который <strong>FreeBSD</strong> распознала как <strong>aac0</strong>. Выборка из <strong>dmesg</strong>:</p>\n<table border=\"1\" cellspacing=\"1\" cellpadding=\"1\" width=\"100%\">\n<tbody>\n<tr>\n<td># <strong>cat /var/run/dmesg.boot | grep RAID<br />\n </strong>aac0: Adaptec RAID controller, aac driver 2.1.9-1<br />\n aacd0: &lt;RAID 1 (Mirror)&gt; on aac0</td>\n</tr>\n</tbody>\n</table>\n<p class=\"rtejustify\">Для работы с этим контроллером воспользуемся возможностями утилиты <strong>arcconf</strong>. <strong>Arcconf</strong>&nbsp;- утилита для работы с контроллерами <strong>RAID</strong> из командной строки. С ее помощью можно получить детальную информацию о контроллере и созданных массивах.</p>\n<p class=\"rtejustify\">Установку,&nbsp;как всегда,&nbsp;выполним из системы портов:</p>\n<table border=\"1\" cellspacing=\"1\" cellpadding=\"1\" width=\"100%\">\n<tbody>\n<tr>\n<td># <strong>cd /usr/ports/sysutils/arcconf &amp;&amp; make install clean &amp;&amp; rehash</strong></td>\n</tr>\n</tbody>\n</table>\n<p class=\"rtejustify\">Размер дистрибутива &quot;порадовал&quot; - 99 MB. Хорошо,&nbsp;что сервер отдавал дистрибутив на скорости около 20 Mbps. А установка вообще заняла несколько строк. Собственно:</p>\n<table border=\"1\" cellspacing=\"1\" cellpadding=\"1\" width=\"100%\">\n<tbody>\n<tr>\n<td># <strong>cd /usr/ports/sysutils/arcconf &amp;&amp; make install clean &amp;&amp; rehash<br />\n </strong>=&gt; asm_freebsd_x86_v7_30_18837.tgz doesn\'t seem to exist in /usr/ports/distfiles/.<br />\n =&gt; Attempting to fetch <a href=\"http://download.adaptec.com/raid/storage_manager/asm_freebsd_x86_v7_30_18837.tgz\" title=\"http://download.adaptec.com/raid/storage_manager/asm_freebsd_x86_v7_30_18837.tgz\">http://download.adaptec.com/raid/storage_manager/asm_freebsd_x86_v7_30_1...</a><br />\n asm_freebsd_x86_v7_30_18837.tgz&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 100% of&nbsp;&nbsp; 99 MB 2641 kBps 00m00s<br />\n ===&gt;&nbsp; Extracting for arcconf-v7.30.18837<br />\n =&gt; SHA256 Checksum OK for asm_freebsd_x86_v7_30_18837.tgz.<br />\n ===&gt;&nbsp; Patching for arcconf-v7.30.18837<br />\n ===&gt;&nbsp; Configuring for arcconf-v7.30.18837<br />\n ===&gt;&nbsp; Installing for arcconf-v7.30.18837<br />\n ===&gt;&nbsp;&nbsp; Generating temporary packing list<br />\n ===&gt;&nbsp; Checking if sysutils/arcconf already installed<br />\n install&nbsp; -s -o root -g wheel -m 555 /usr/ports/sysutils/arcconf/work/freebsd8/cmdline/arcconf /usr/local/sbin<br />\n install&nbsp; -o root -g wheel -m 555 /usr/ports/sysutils/arcconf/work/410.status-aac-raid /usr/local/etc/periodic/daily<br />\n ===&gt;&nbsp;&nbsp; Registering installation for arcconf-v7.30.18837<br />\n ===&gt;&nbsp; Cleaning for arcconf-v7.30.18837</td>\n</tr>\n</tbody>\n</table>\n<p class=\"rtejustify\">После установки утилиты ознакомимся с ее возможностями. Для вывода &quot;хелпа&quot; запустим утилиту без указания ключей:</p>\n<table border=\"1\" cellspacing=\"1\" cellpadding=\"1\" width=\"100%\">\n<tbody>\n<tr>\n<td>\n<div># <strong>arcconf</strong></div>\n<pre>\n | UCLI | Adaptec by PMC uniform command line interface\n | UCLI | Version 7.30 (B18837)\n | UCLI | (C) Adaptec by PMC 2003-2011\n | UCLI | All Rights Reserved</pre><pre>\n ATAPASSWORD | Setting password on a physical drive\n COPYBACK | toggles controller copy back mode\n CREATE | creates a logical device\n DATASCRUB | toggles the controller background consistency check mode\n DELETE | deletes one or more logical devices\n FAILOVER | toggles the controller automatic failover mode\n GETCONFIG | prints controller information\n GETLOGS | gets controller log information\n GETSMARTSTATS | gets the SMART statistics\n GETSTATUS | displays the status of running tasks\n GETVERSION | prints version information for all controllers\n IDENTIFY | blinks LEDS on device(s) connected to a controller\n IMAGEUPDATE | update physical device firmware\n KEY | installs a Feature Key onto a controller\n MODIFY | performs RAID Level Migration or Online Capacity Expansion\n RESCAN | checks for new or removed drives\n RESETSTATISTICSCOUNTERS | resets the controller statistics counters\n ROMUPDATE | updates controller firmware\n SAVESUPPORTARCHIVE | saves the support archive\n SETALARM | controls the controller alarm, if present\n SETCACHE | adjusts physical or logical device cache mode\n SETCONFIG | restores the default configuration\n SETMAXCACHE | adjusts MaxCache settings for physical or logical device\n SETNAME | renames a logical device given its logical device number\n SETNCQ | toggles the controller NCQ status\n SETPERFORM | changes adapter settings based on application\n SETPOWER | power settings for controller or logical device\n SETPRIORITY | changes specific or global task priority\n SETSTATE | manually sets the state of a physical or logical device\n SETSTATSDATACOLLECTION | toggles the controller statistics data collection modes\n TASK | performs a task such as build/verify on a physical or logical device\n</pre></td>\n</tr>\n</tbody>\n</table>\n<p class=\"rtejustify\">Проверим состояние массива (он у меня под номером 1):</p>\n<table border=\"1\" cellspacing=\"1\" cellpadding=\"1\" width=\"100%\">\n<tbody>\n<tr>\n<td>\n<div># <strong>arcconf GETCONFIG 1</strong></div>\n<pre>\nControllers found: 1\n----------------------------------------------------------------------\nController information\n----------------------------------------------------------------------\n Controller Status : Optimal\n Channel description : SCSI\n Controller Model : PERC 3/Di\n Controller Serial Number : 202020D3\n Installed memory : 128 MB\n Copyback : Disabled\n Background consistency check : Disabled\n Automatic Failover : Enabled\n Stayawake period : Disabled\n Spinup limit internal drives : 0\n Spinup limit external drives : 0\n Defunct disk drive count : 0\n Logical devices/Failed/Degraded : 1/0/1\n --------------------------------------------------------\n Controller Version Information\n --------------------------------------------------------\n BIOS : 2.8-0 (6095)\n Firmware : 2.8-0 (6095)\n Driver : 2.1-9 (1)\n Boot Flash : 0.0-0 (0)\n --------------------------------------------------------\n Controller Battery Information\n --------------------------------------------------------\n Status : Optimal\n Over temperature : No\n Capacity remaining : 0 percent\n Time remaining (at current draw) : 0 days, 0 hours, 0 minutes\n\n</pre><pre>\n----------------------------------------------------------------------\nLogical device information\n----------------------------------------------------------------------\nLogical device number 0\n Logical device name : centr\n RAID level : 1\n Status of logical device : Degraded\n Size : 69998 MB\n Write-cache mode : Not supported\n Partitioned : Yes\n Protected by Hot-Spare : No\n Bootable : Yes\n Failed stripes : No\n Power settings : Disabled\n --------------------------------------------------------\n Logical device segment information\n --------------------------------------------------------\n Segment 0 : Missing\n Segment 1 : Present (Controller:1,Channel:0,Device:2) 3HW1MXFH\n\n</pre><pre>\n----------------------------------------------------------------------\nPhysical Device information\n----------------------------------------------------------------------\n Channel #0:\n Transfer Speed : Ultra160\n Initiator at SCSI ID 7\n Device #0\n Device is a Hard drive\n State : Ready\n Supported : Yes\n Transfer Speed : Ultra160\n Reported Channel,Device(T:L) : 0,0(0:0)\n Vendor : IBM-ESXS\n Model : MAS3735NC FN\n Firmware : C901\n Serial number : 05000G1K\n Size : 70006 MB\n Write Cache : Unknown\n FRU : 32P0737\n S.M.A.R.T. : No\n S.M.A.R.T. warnings : 0\n Device #2\n Device is a Hard drive\n State : Online\n Supported : Yes\n Transfer Speed : Ultra160\n Reported Channel,Device(T:L) : 0,2(2:0)\n Vendor : SEAGATE\n Model : ST373453LC\n Firmware : DX10\n Serial number : 3HW00XFH\n Size : 70007 MB\n Write Cache : Unknown\n FRU : None\n S.M.A.R.T. : No\n S.M.A.R.T. warnings : 0\n Device #6\n Device is an Enclosure\n Type : SAF-TE\n Vendor : PE/PV\n Model : 1x5 SCSI BP\n Firmware : 1.1\n Status of Enclosure\n Temperature status : Normal\n Channel #1:\n Transfer Speed : Ultra160\n Initiator at SCSI ID 7\n No physical drives attached\n\n</pre><pre>\n\nCommand completed successfully.</pre></td>\n</tr>\n</tbody>\n</table>\n<p class=\"rtejustify\">Как оказалось, один из дисков &quot;вылетел&quot; из массива. Скорей всего кто-то выдернул диск на работающей системе,&nbsp;тоесть &quot;вгорячую&quot;. Необходимо пересобирать массив,&nbsp;но это уже тема для отдельной статьи ;)</p>\n<p class=\"rtejustify\">&nbsp;</p>\n', created = 1767544626, expire = 1767631026, headers = '', serialized = 0 WHERE cid = '2:b4c06ed332fcd18aa20aa5e6ab3d1da1' in /usr/local/www/muff.kiev.ua/includes/cache.inc on line 112.
  • user warning: Table './muffsql1/cache_filter' is marked as crashed and should be repaired query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '2:07243fc0252056071eaa62af8c18d662' in /usr/local/www/muff.kiev.ua/includes/cache.inc on line 27.
  • user warning: Table './muffsql1/cache_filter' is marked as crashed and should be repaired query: UPDATE cache_filter SET data = '<p class=\"rtecenter\"><a class=\"thickbox\" href=\"/files/imagepicker/1/wake_up_ua.png\"><img alt=\"Вставай, Україно!\" class=\"imgp_img\" src=\"/files/imagepicker/1/thumbs/wake_up_ua.png\" style=\"height:200px; width:150px\" /></a></p>\n', created = 1767544626, expire = 1767631026, headers = '', serialized = 0 WHERE cid = '2:07243fc0252056071eaa62af8c18d662' in /usr/local/www/muff.kiev.ua/includes/cache.inc on line 112.
  • user warning: Table './muffsql1/cache_filter' is marked as crashed and should be repaired query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '3:cc913d232116f0426090404133377d88' in /usr/local/www/muff.kiev.ua/includes/cache.inc on line 27.
  • user warning: Table './muffsql1/cache_filter' is marked as crashed and should be repaired query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '2:d9a86123bfcbc57878743027b584400b' in /usr/local/www/muff.kiev.ua/includes/cache.inc on line 27.
  • user warning: Table './muffsql1/cache_filter' is marked as crashed and should be repaired query: UPDATE cache_filter SET data = '<p class=\"rtecenter\"><a href=\"http://muff.kiev.ua/rss.xml\"><img alt=\"RSS\" width=\"160\" height=\"60\" src=\"http://muff.kiev.ua/files/muf-rss.png\" /></a></p>\n', created = 1767544626, expire = 1767631026, headers = '', serialized = 0 WHERE cid = '2:d9a86123bfcbc57878743027b584400b' in /usr/local/www/muff.kiev.ua/includes/cache.inc on line 112.
  • user warning: Table './muffsql1/cache_filter' is marked as crashed and should be repaired query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '3:39649256b636e3d5ded656bc52bd8c01' in /usr/local/www/muff.kiev.ua/includes/cache.inc on line 27.
Версия для печатиОтправить другу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 голоса)

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

Литература

Девушка у Админа есть, просто он стесняется выложить ее на рабочий стол.