Показаны сообщения с ярлыком Adaptec. Показать все сообщения
Показаны сообщения с ярлыком Adaptec. Показать все сообщения

воскресенье, 18 декабря 2011 г.

Восстановление Adaptec RAID массива после отказа жесткого диска

Смотрим состояние логического устройства
root@rescue ~ # arcconf getconfig 1 ld
Controllers found: 1
----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
Logical device number 0
   Logical device name                      : Xen
   RAID level                               : 5
   Status of logical device                 : Degraded
   Size                                     : 2086902 MB
   Stripe-unit size                         : 256 KB
   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                           : Yes
   Power settings                           : Disabled
   --------------------------------------------------------
   Logical device segment information
   --------------------------------------------------------
   Segment 0                                : Present (0,0)             9VS3YTBB
   Segment 1                                : Present (0,1)             9VS3WVC2
   Segment 2                                : Missing



Command completed successfully.
в предпоследней строке видим что один из трех HDD вообще не отвечает, заменяем его.
Теперь выводим физические устройства
root@rescue ~ # arcconf getconfig 1 pd

Controllers found: 1
----------------------------------------------------------------------
Physical Device information
----------------------------------------------------------------------
      Device #0
         Device is a Hard drive
         State                              : Online
         Supported                          : Yes
         Transfer Speed                     : SATA 3.0 Gb/s
         Reported Channel,Device(T:L)       : 0,0(0:0)
         Reported Location                  : Connector 0, Device 0
         Vendor                             :
         Model                              : ST31500341AS
         Firmware                           : CC1H
         Serial number                      : 9VS3YTBB
         Size                               : 1430799 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
         SSD                                : No
         MaxIQ Cache Capable                : No
         MaxIQ Cache Assigned               : No
         NCQ status                         : Enabled
      Device #1
         Device is a Hard drive
         State                              : Online
         Supported                          : Yes
         Transfer Speed                     : SATA 3.0 Gb/s
         Reported Channel,Device(T:L)       : 0,1(1:0)
         Reported Location                  : Connector 0, Device 1
         Vendor                             :
         Model                              : ST31500341AS
         Firmware                           : CC1H
         Serial number                      : 9VS3WVC2
         Size                               : 1430799 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
         SSD                                : No
         MaxIQ Cache Capable                : No
         MaxIQ Cache Assigned               : No
         NCQ status                         : Enabled
      Device #2
         Device is a Hard drive
         State                              : Ready
         Supported                          : Yes
         Transfer Speed                     : SATA 3.0 Gb/s
         Reported Channel,Device(T:L)       : 0,2(2:0)
         Reported Location                  : Connector 0, Device 2
         Vendor                             :
         Model                              : ST31500341AS
         Firmware                           : CC1H
         Serial number                      : 9VS217GE
         Size                               : 1430799 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
         SSD                                : No
         MaxIQ Cache Capable                : No
         MaxIQ Cache Assigned               : No
         NCQ status                         : Enabled


Command completed successfully.
видим Device #2 c "State: Ready" это как раз новый HDD который поставили взамен сбойного
Запускаем следующую команду, после которой новый диск должен автоматически добавится в RAID массив и запустится процесс ребилда
arcconf rescan 1
Выводим состояние логического устройства
root@rescue ~ # arcconf getconfig 1 ld
...
   Segment 0                                : Present (0,0)             9VS3YTBB
   Segment 1                                : Present (0,1)             9VS3WVC2
   Segment 2                                : Rebuilding (0,2)             9VS217GE
...
Выводим статус и прогресс ребилда
root@rescue ~ # arcconf getstatus 1
Controllers found: 1
Logical device Task:
   Logical device                 : 0
   Task ID                        : 101
   Current operation              : Rebuild
   Status                         : In Progress
   Priority                       : High
   Percentage complete            : 0
 Если после запуска arcconf rescan 1 диск не добавился и массив не стал ребилдиться, то переводим новый HDD в hotspare состояние и ребилд массива начнется
arcconf setstate 1 device <channel_device> HSP
channel_device - это номер канала и id диска в этом канале. Узнать его можно выполнив команду
arcconf getconfig 1 pd
поле 
Reported Channel,Device(T:L)
После окончания ребилда диск становится в hotspare резерв
root@rescue ~ # arcconf getconfig 1 ld
Controllers found: 1
----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
Logical device number 0
   Logical device name                      : Xen
   RAID level                               : 5
   Status of logical device                 : Optimal
   Size                                     : 2086902 MB
   Stripe-unit size                         : 256 KB
   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                           : Yes
   Power settings                           : Disabled
   --------------------------------------------------------
   Logical device segment information
   --------------------------------------------------------
   Segment 0                                : Present (0,0)             9VS3YTBB
   Segment 1                                : Present (0,1)             9VS3WVC2
   Segment 2                                : Spare (0,2)             9VS217GE
Переводим из hotspare в ready
arcconf setstate 1 device <channel_device> RDY
Убеждаемся что массив и диски вернулись в нормальное состояние
root@rescue ~ # arcconf getconfig 1 ld
Controllers found: 1
----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
Logical device number 0
   Logical device name                      : Xen
   RAID level                               : 5
   Status of logical device                 : Optimal
   Size                                     : 2086902 MB
   Stripe-unit size                         : 256 KB
   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                           : Yes
   Power settings                           : Disabled
   --------------------------------------------------------
   Logical device segment information
   --------------------------------------------------------
   Segment 0                                : Present (0,0)             9VS3YTBB
   Segment 1                                : Present (0,1)             9VS3WVC2
   Segment 2                                : Present (0,2)             9VS217GE

суббота, 12 ноября 2011 г.

Установка Adaptec Storage Manager


Установка на Debian 6 x64
mkdir /opt/adaptec
cd /opt/adaptec
wget http://download.adaptec.com/raid/storage_manager/asm_linux_x64_v7_00_18781.tgz
tar -zxvf asm_linux_x64_v7_00_18781.tgz
Проверяем:
/opt/adaptec/cmdline/arcconf --help
Если будет выводится такая ошибка:
./arcconf: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
То:
apt-get install libstdc++5
Проверяем еще раз:
/opt/adaptec/cmdline/arcconf --help
Если все хорошо, то:
cd /usr/bin
ln -s /opt/adaptec/cmdline/arcconf ./arcconf
Всё.
Посмотрим состояние RAID массива:
arcconf getconfig 1 ld