воскресенье, 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

3 комментария:

  1. http://ask.adaptec.com/app/answers/detail/a_id/14947/~/adaptec-%2F-icp-or-maxview-storage-manager-reports-the-raid-has-a-bad-stripe.-

    ОтветитьУдалить
  2. Как по мне вовсе не "нормальное состояние"

    ОтветитьУдалить
  3. Wynn casino opens in Las Vegas - FilmfileEurope
    Wynn's first hotel casino 토토 사이트 in Las Vegas since opening 바카라 사이트 its doors in 1996, 메이피로출장마사지 Wynn https://vannienailor4166blog.blogspot.com/ Las Vegas is the first hotel on the Strip to offer such herzamanindir.com/ a large selection of

    ОтветитьУдалить