Проект

Общее

Профиль

HPSA » История » Версия 1

Андрей Волков, 2015-05-04 17:05

1 1 Андрей Волков
h1. HPSA
2
3
h2. Разобрать RAID
4
5
<pre>
6
hpacucli controller slot=0 logicaldrive 1 delete
7
8
Warning: Deleting an array can cause other array letters to become renamed.
9
         E.g. Deleting array A from arrays A,B,C will result in two remaining
10
         arrays A,B ... not B,C
11
12
13
Warning: Deleting the specified device(s) will result in data being lost.
14
         Continue? (y/n) y
15
16
[451078.420172] hpsa 0000:04:00.0: Direct-Access     device c0b0t0l1 removed.
17
[451078.423421] hpsa 0000:04:00.0: didn't find c0b0t0l1  for removal.
18
</pre>
19
20
h2. Собрать RAID
21
22
<pre>
23
hpacucli ctrl slot=0 create type=ld drives=2I:1:7,2I:1:8 raid=1 
24
25
Warning: Creation of this logical drive has caused array letters to become
26
         renamed.
27
28
[451635.869049] hpsa 0000:04:00.0: Direct-Access     device c0b0t0l1 added.
29
[451635.875684] scsi 0:0:0:1: Direct-Access     HP       LOGICAL VOLUME   6.00 PQ: 0 ANSI: 5
30
[451635.879234] sd 0:0:0:1: Attached scsi generic sg1 type 0
31
[451635.882803] sd 0:0:0:1: [sda] 976707632 512-byte logical blocks: (500 GB/465 GiB)
32
[451635.886746] sd 0:0:0:1: [sda] Write Protect is off
33
[451635.890341] sd 0:0:0:1: [sda] Mode Sense: 6b 00 00 08
34
[451635.890675] sd 0:0:0:1: [sda] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA
35
[451635.906377]  sda: unknown partition table
36
[451635.910956] sd 0:0:0:1: [sda] Attached SCSI disk
37
</pre>
38
39
h2. Добавить spare drive
40
41
<pre>
42
hpacucli controller slot=0 array A add spares=2I:1:5
43
44
hpacucli controller all show config
45
46
47
Smart Array P410i in Slot 0 (Embedded)    (sn: 50123456789ABCDE)
48
49
   array A (SATA, Unused Space: 0  MB)
50
51
52
      logicaldrive 1 (465.7 GB, RAID 1, OK)
53
54
      physicaldrive 2I:1:7 (port 2I:box 1:bay 7, SATA, 500 GB, OK)
55
      physicaldrive 2I:1:8 (port 2I:box 1:bay 8, SATA, 500 GB, OK)
56
      physicaldrive 2I:1:5 (port 2I:box 1:bay 5, SATA, 500 GB, OK, spare)
57
58
   array B (SAS, Unused Space: 0  MB)
59
60
61
      logicaldrive 2 (273.4 GB, RAID 1+0, OK)
62
63
      physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 146 GB, OK)
64
      physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 146 GB, OK)
65
      physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 146 GB, OK)
66
      physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SAS, 146 GB, OK)
67
</pre>