HP Proliant Raid

Материал из noname.com.ua
Перейти к навигацииПерейти к поиску

Raid на серверах HP

DL180 G6

lspci | grep -i raid
09:00.0 RAID bus controller: Hewlett-Packard Company Smart Array G6 controllers (rev 01)

Утилиты

(я доставал файлы так как в пакете сломаны зависимости)

Сокращения, которые можно использовать в командах

  • chassisname = ch
  • controller = ctrl
  • logicaldrive = ld
  • physicaldrive = pd
  • drivewritecache = dwc

Просмотр конфигурации

hpacucli ctrl all show config
Smart Array P410 in Slot 1                (sn: PACCR9SYRIHU  )
   unassigned
      physicaldrive 2I:1:3 (port 2I:box 1:bay 3, SAS, 300 GB, OK)
   SEP (Vendor ID PMCSIERA, Model  SRC 8x6G) 250 (WWID: 5001438006116C2F)

Тут в примере - один диск который включен но никак не настроен

Более детально:

Статус контроллера

hpacucli ctrl all show status

Smart Array P410 in Slot 1
   Controller Status: OK
   Cache Status: Not Configured

Управление кэшированием

hpacucli ctrl slot=1 modify dwc=disable

Error: This operation is not supported with the current configuration. Use the
       "show" command on devices to show additional details about the
       configuration.
Reason: Controller not configured
hpacucli ctrl slot=1 modify dwc=enable

Warning: Without the proper safety precautions, use of write cache on physical
         drives could cause data loss in the event of power failure.  To ensure
         data is properly protected, use redundant power supplies and
         Uninterruptible Power Supplies. Also, if you have multiple storage
         enclosures, all data should be mirrored across them. Use of this
         feature is not recommended unless these precautions are followed.
         Continue? (y/n)

У меня не включился, думаю из-за

   Battery/Capacitor Count: 0

Пересканировать устройства

Пересканировать устройства, добавленные с момента последнего сканирования

hpacucli rescandetects newly added devices since the last rescan

В моем случае ни к чему не привело - диск нашелся сам по себе

Просмотр информации по отдельному диску

hpacucli ctrl slot=1 pd 2I:1:3 show detail
Smart Array P410 in Slot 1

   unassigned

      physicaldrive 2I:1:3
         Port: 2I
         Box: 1
         Bay: 3
         Status: OK
         Drive Type: Unassigned Drive
         Interface Type: SAS
         Size: 300 GB
         Rotational Speed: 10000
         Firmware Revision: HPD7
         Serial Number: 6XP5CLK80000B335CPL7
         Model: HP      EG0300FBLSE
         PHY Count: 2
         PHY Transfer Rate: 6.0Gbps, Unknown

Во многих примерах приводят pd 2:3 (2-х значный адрес) вместо pd 2I:1:3 (3-х значный), возможно связано с версией контроллера или утилит.
Сам адрес диска, если он не известен можно посмотреть в hpacucli ctrl all show config detail

    physicaldrive 2I:1:3
         Port: 2I
         Box: 1
         Bay: 3

Статус дисков

Все диски

hpacucli ctrl slot=1 pd all show status
   physicaldrive 2I:1:3 (port 2I:box 1:bay 3, 300 GB): OK

Или отдельный диск (а он тут всего один)

hpacucli ctrl slot=1 pd 2I:1:3 show status
   physicaldrive 2I:1:3 (port 2I:box 1:bay 3, 300 GB): OK


Очистка

hpacucli ctrl slot=1 pd 2I:1:3 modify erase

Управление диодами на дисках

hpacucli> ctrl slot=1 pd 2:3 modify led=on hpacucli> ctrl slot=1 pd 2:3 modify led=off

2

2