HPSA » История » Версия 5
Константин Пильник, 2020-02-26 10:07
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 | 3 | Константин Пильник | h3. raid10 |
65 | |||
66 | 2 | Константин Пильник | <pre> |
67 | 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 |
||
68 | </pre> |
||
69 | 3 | Константин Пильник | |
70 | h3. raid1 |
||
71 | 1 | Андрей Волков | |
72 | <pre> |
||
73 | hpacucli ctrl slot=0 create type=ld drives=2I:1:7,2I:1:8 raid=1 |
||
74 | |||
75 | Warning: Creation of this logical drive has caused array letters to become |
||
76 | renamed. |
||
77 | |||
78 | [451635.869049] hpsa 0000:04:00.0: Direct-Access device c0b0t0l1 added. |
||
79 | [451635.875684] scsi 0:0:0:1: Direct-Access HP LOGICAL VOLUME 6.00 PQ: 0 ANSI: 5 |
||
80 | [451635.879234] sd 0:0:0:1: Attached scsi generic sg1 type 0 |
||
81 | [451635.882803] sd 0:0:0:1: [sda] 976707632 512-byte logical blocks: (500 GB/465 GiB) |
||
82 | [451635.886746] sd 0:0:0:1: [sda] Write Protect is off |
||
83 | [451635.890341] sd 0:0:0:1: [sda] Mode Sense: 6b 00 00 08 |
||
84 | [451635.890675] sd 0:0:0:1: [sda] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA |
||
85 | [451635.906377] sda: unknown partition table |
||
86 | [451635.910956] sd 0:0:0:1: [sda] Attached SCSI disk |
||
87 | </pre> |
||
88 | |||
89 | h2. Добавить spare drive |
||
90 | |||
91 | <pre> |
||
92 | hpacucli controller slot=0 array A add spares=2I:1:5 |
||
93 | |||
94 | hpacucli controller all show config |
||
95 | |||
96 | |||
97 | Smart Array P410i in Slot 0 (Embedded) (sn: 50123456789ABCDE) |
||
98 | |||
99 | array A (SATA, Unused Space: 0 MB) |
||
100 | |||
101 | |||
102 | logicaldrive 1 (465.7 GB, RAID 1, OK) |
||
103 | |||
104 | physicaldrive 2I:1:7 (port 2I:box 1:bay 7, SATA, 500 GB, OK) |
||
105 | physicaldrive 2I:1:8 (port 2I:box 1:bay 8, SATA, 500 GB, OK) |
||
106 | physicaldrive 2I:1:5 (port 2I:box 1:bay 5, SATA, 500 GB, OK, spare) |
||
107 | |||
108 | array B (SAS, Unused Space: 0 MB) |
||
109 | |||
110 | |||
111 | logicaldrive 2 (273.4 GB, RAID 1+0, OK) |
||
112 | |||
113 | physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 146 GB, OK) |
||
114 | physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 146 GB, OK) |
||
115 | physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 146 GB, OK) |
||
116 | physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS, 146 GB, OK) |
||
117 | </pre> |
||
118 | 4 | Константин Пильник | |
119 | h2. Конвертация RAID 10 в RAID 6 |
||
120 | |||
121 | <pre> |
||
122 | hpacucli ctrl slot=2 ld 1 modify raid=6 |
||
123 | 5 | Константин Пильник | |
124 | # Расширяем полученный RAID до максимального размера: |
||
125 | |||
126 | hpacucli ctrl slot=2 ld 1 modify size=max |
||
127 | 4 | Константин Пильник | </pre> |