Проект

Общее

Профиль

Действия

HPSA

Показать конфигурацию контроллера

hpacucli ctrl slot=4 show config detail

Показать физические диски

hpacucli ctrl slot=4 pd all show status

Просмотр информации о конкретном диске

hpacucli ctrl slot=4 physicaldrive 1I:1:1 show

Показать логические диски

hpacucli ctrl slot=4 ld all show

Информация о логическом диске

hpacucli ctrl slot=4 logicaldrive 1 show

Включить диод на диске

hpacucli ctrl slot=1 pd 1I:1:1 modify led=on

Выключить диод на диске

hpacucli ctrl slot=1 pd 1I:1:1 modify led=off

Разобрать RAID

hpacucli controller slot=0 logicaldrive 1 delete

Warning: Deleting an array can cause other array letters to become renamed.
         E.g. Deleting array A from arrays A,B,C will result in two remaining
         arrays A,B ... not B,C

Warning: Deleting the specified device(s) will result in data being lost.
         Continue? (y/n) y

[451078.420172] hpsa 0000:04:00.0: Direct-Access     device c0b0t0l1 removed.
[451078.423421] hpsa 0000:04:00.0: didn't find c0b0t0l1  for removal.

Собрать RAID

raid10

hpacucli ctrl slot=4 create type=ld drives=1I:1:1,1I:1:2,1I:1:3,1I:1:4 raid=1+0 stripesize=256

raid1

hpacucli ctrl slot=0 create type=ld drives=2I:1:7,2I:1:8 raid=1 

Warning: Creation of this logical drive has caused array letters to become
         renamed.

[451635.869049] hpsa 0000:04:00.0: Direct-Access     device c0b0t0l1 added.
[451635.875684] scsi 0:0:0:1: Direct-Access     HP       LOGICAL VOLUME   6.00 PQ: 0 ANSI: 5
[451635.879234] sd 0:0:0:1: Attached scsi generic sg1 type 0
[451635.882803] sd 0:0:0:1: [sda] 976707632 512-byte logical blocks: (500 GB/465 GiB)
[451635.886746] sd 0:0:0:1: [sda] Write Protect is off
[451635.890341] sd 0:0:0:1: [sda] Mode Sense: 6b 00 00 08
[451635.890675] sd 0:0:0:1: [sda] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA
[451635.906377]  sda: unknown partition table
[451635.910956] sd 0:0:0:1: [sda] Attached SCSI disk

Добавить spare drive

hpacucli controller slot=0 array A add spares=2I:1:5

hpacucli controller all show config

Smart Array P410i in Slot 0 (Embedded)    (sn: 50123456789ABCDE)

   array A (SATA, Unused Space: 0  MB)

      logicaldrive 1 (465.7 GB, RAID 1, OK)

      physicaldrive 2I:1:7 (port 2I:box 1:bay 7, SATA, 500 GB, OK)
      physicaldrive 2I:1:8 (port 2I:box 1:bay 8, SATA, 500 GB, OK)
      physicaldrive 2I:1:5 (port 2I:box 1:bay 5, SATA, 500 GB, OK, spare)

   array B (SAS, Unused Space: 0  MB)

      logicaldrive 2 (273.4 GB, RAID 1+0, OK)

      physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 146 GB, OK)
      physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 146 GB, OK)
      physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 146 GB, OK)
      physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS, 146 GB, OK)

Конвертация RAID 10 в RAID 6

hpacucli ctrl slot=2 ld 1 modify raid=6

# Расширяем полученный RAID до максимального размера:

hpacucli ctrl slot=2 ld 1 modify size=max

Обновлено Константин Пильник около 4 лет назад · 5 изменени(я, ий)