HPSA » История » Версия 2
Константин Пильник, 2018-03-21 14:12
1 | 1 | Андрей Волков | h1. HPSA |
---|---|---|---|
2 | |||
3 | 2 | Константин Пильник | h2. Показать конфигурацию контроллера |
4 | |||
5 | <pre> |
||
6 | hpacucli ctrl slot=4 show config detail |
||
7 | </pre> |
||
8 | |||
9 | h2. Показать физические диски |
||
10 | |||
11 | <pre> |
||
12 | hpacucli ctrl slot=4 pd all show status |
||
13 | </pre> |
||
14 | |||
15 | h2. Просмотр информации о конкретном диске |
||
16 | |||
17 | <pre> |
||
18 | hpacucli ctrl slot=4 physicaldrive 1I:1:1 show |
||
19 | </pre> |
||
20 | |||
21 | h2. Показать логические диски |
||
22 | |||
23 | <pre> |
||
24 | hpacucli ctrl slot=4 ld all show |
||
25 | </pre> |
||
26 | |||
27 | h2. Информация о логическом диске |
||
28 | |||
29 | <pre> |
||
30 | hpacucli ctrl slot=4 logicaldrive 1 show |
||
31 | </pre> |
||
32 | |||
33 | h2. Включить диод на диске |
||
34 | |||
35 | <pre> |
||
36 | hpacucli ctrl slot=1 pd 1I:1:1 modify led=on |
||
37 | </pre> |
||
38 | |||
39 | h2. Выключить диод на диске |
||
40 | |||
41 | <pre> |
||
42 | hpacucli ctrl slot=1 pd 1I:1:1 modify led=off |
||
43 | </pre> |
||
44 | |||
45 | 1 | Андрей Волков | h2. Разобрать RAID |
46 | |||
47 | <pre> |
||
48 | hpacucli controller slot=0 logicaldrive 1 delete |
||
49 | |||
50 | Warning: Deleting an array can cause other array letters to become renamed. |
||
51 | E.g. Deleting array A from arrays A,B,C will result in two remaining |
||
52 | arrays A,B ... not B,C |
||
53 | |||
54 | |||
55 | Warning: Deleting the specified device(s) will result in data being lost. |
||
56 | Continue? (y/n) y |
||
57 | |||
58 | [451078.420172] hpsa 0000:04:00.0: Direct-Access device c0b0t0l1 removed. |
||
59 | [451078.423421] hpsa 0000:04:00.0: didn't find c0b0t0l1 for removal. |
||
60 | </pre> |
||
61 | |||
62 | h2. Собрать RAID |
||
63 | 2 | Константин Пильник | |
64 | <pre> |
||
65 | 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 |
||
66 | </pre> |
||
67 | 1 | Андрей Волков | |
68 | <pre> |
||
69 | hpacucli ctrl slot=0 create type=ld drives=2I:1:7,2I:1:8 raid=1 |
||
70 | |||
71 | Warning: Creation of this logical drive has caused array letters to become |
||
72 | renamed. |
||
73 | |||
74 | [451635.869049] hpsa 0000:04:00.0: Direct-Access device c0b0t0l1 added. |
||
75 | [451635.875684] scsi 0:0:0:1: Direct-Access HP LOGICAL VOLUME 6.00 PQ: 0 ANSI: 5 |
||
76 | [451635.879234] sd 0:0:0:1: Attached scsi generic sg1 type 0 |
||
77 | [451635.882803] sd 0:0:0:1: [sda] 976707632 512-byte logical blocks: (500 GB/465 GiB) |
||
78 | [451635.886746] sd 0:0:0:1: [sda] Write Protect is off |
||
79 | [451635.890341] sd 0:0:0:1: [sda] Mode Sense: 6b 00 00 08 |
||
80 | [451635.890675] sd 0:0:0:1: [sda] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA |
||
81 | [451635.906377] sda: unknown partition table |
||
82 | [451635.910956] sd 0:0:0:1: [sda] Attached SCSI disk |
||
83 | </pre> |
||
84 | |||
85 | h2. Добавить spare drive |
||
86 | |||
87 | <pre> |
||
88 | hpacucli controller slot=0 array A add spares=2I:1:5 |
||
89 | |||
90 | hpacucli controller all show config |
||
91 | |||
92 | |||
93 | Smart Array P410i in Slot 0 (Embedded) (sn: 50123456789ABCDE) |
||
94 | |||
95 | array A (SATA, Unused Space: 0 MB) |
||
96 | |||
97 | |||
98 | logicaldrive 1 (465.7 GB, RAID 1, OK) |
||
99 | |||
100 | physicaldrive 2I:1:7 (port 2I:box 1:bay 7, SATA, 500 GB, OK) |
||
101 | physicaldrive 2I:1:8 (port 2I:box 1:bay 8, SATA, 500 GB, OK) |
||
102 | physicaldrive 2I:1:5 (port 2I:box 1:bay 5, SATA, 500 GB, OK, spare) |
||
103 | |||
104 | array B (SAS, Unused Space: 0 MB) |
||
105 | |||
106 | |||
107 | logicaldrive 2 (273.4 GB, RAID 1+0, OK) |
||
108 | |||
109 | physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 146 GB, OK) |
||
110 | physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 146 GB, OK) |
||
111 | physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 146 GB, OK) |
||
112 | physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS, 146 GB, OK) |
||
113 | </pre> |