HPSA » История » Редакция 3
Редакция 2 (Константин Пильник, 2018-03-21 14:12) → Редакция 3/5 (Константин Пильник, 2018-03-21 14:14)
h1. HPSA h2. Показать конфигурацию контроллера <pre> hpacucli ctrl slot=4 show config detail </pre> h2. Показать физические диски <pre> hpacucli ctrl slot=4 pd all show status </pre> h2. Просмотр информации о конкретном диске <pre> hpacucli ctrl slot=4 physicaldrive 1I:1:1 show </pre> h2. Показать логические диски <pre> hpacucli ctrl slot=4 ld all show </pre> h2. Информация о логическом диске <pre> hpacucli ctrl slot=4 logicaldrive 1 show </pre> h2. Включить диод на диске <pre> hpacucli ctrl slot=1 pd 1I:1:1 modify led=on </pre> h2. Выключить диод на диске <pre> hpacucli ctrl slot=1 pd 1I:1:1 modify led=off </pre> h2. Разобрать RAID <pre> 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. </pre> h2. Собрать RAID h3. raid10 <pre> 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 </pre> h3. raid1 <pre> 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 </pre> h2. Добавить spare drive <pre> 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) </pre>