Remove-failed-disk » История » Версия 2
Рамиль Абдулбяров, 2015-04-29 18:20
1 | 1 | Рамиль Абдулбяров | h1. Изъятие сбойного диска из массива |
---|---|---|---|
2 | |||
3 | 2 | Рамиль Абдулбяров | h1. Собираем информацию о диске |
4 | |||
5 | 1 | Рамиль Абдулбяров | http://serverfault.com/questions/381177/megacli-get-the-dev-sd-device-name-for-a-logical-drive |
6 | |||
7 | Нас интересует 'Target Id' из вывода |
||
8 | *megacli -ldinfo -Lall -aall* |
||
9 | <pre> |
||
10 | Virtual Drive: 5 (Target Id: 5) |
||
11 | Name :r0-2-ssd |
||
12 | </pre> |
||
13 | |||
14 | Поставил lshw, сравниваем 'Target Id' и 'bus info': |
||
15 | <pre> |
||
16 | bus info: scsi@0:2.5.0 |
||
17 | logical name: /dev/sdf |
||
18 | </pre> |
||
19 | |||
20 | Смотрим какой раздел находится на этом диске: |
||
21 | *lvs -o +seg_pe_ranges |grep /dev/sdf* |
||
22 | <pre> |
||
23 | ssd-kvm321-chi-slave-db ssd -wi-ao-- 400.00g /dev/sdf:2560-104959 |
||
24 | </pre> |
||
25 | |||
26 | Собираем информацию по "Other Error Count: 1". |
||
27 | *megacli AdpEventLog -GetEvents -f megacli.log -a0* |
||
28 | |||
29 | Из файла megacli.log: |
||
30 | <pre> |
||
31 | =========== |
||
32 | Device ID: 15 |
||
33 | Enclosure Index: 32 |
||
34 | Slot Number: 15 |
||
35 | Error: 3 |
||
36 | |||
37 | seqNum: 0x00000f9a |
||
38 | Time: Sun Sep 7 15:54:17 2014 |
||
39 | |||
40 | Code: 0x00000071 |
||
41 | Class: 0 |
||
42 | Locale: 0x02 |
||
43 | Event Description: Unexpected sense: PD 0f(e0x20/s15) Path 500056b36789abdc, CDB: 2a 00 17 6e 08 00 00 00 80 00, Sense: 6/29/00 |
||
44 | Event Data: |
||
45 | =========== |
||
46 | </pre> |
||
47 | |||
48 | <pre> |
||
49 | Slot Number: 15 |
||
50 | Серийный номер: OCZ-6R12G0UG3MU5KHK2OCZ-VERTEX460 |
||
51 | SCSI WWN: 5e83a970e3f8ae05 |
||
52 | 2 | Рамиль Абдулбяров | </pre> |
53 | |||
54 | h3. Смотрим какому виртуальному устройству соответствует сбойный физический диск |
||
55 | |||
56 | *megacli -LdPdInfo -a0 -nolog* |
||
57 | <pre> |
||
58 | Virtual Drive: 5 (Target Id: 5) |
||
59 | Name :r0-2-ssd |
||
60 | RAID Level : Primary-0, Secondary-0, RAID Level Qualifier-0 |
||
61 | Size : 446.625 GB |
||
62 | Sector Size : 512 |
||
63 | Parity Size : 0 |
||
64 | State : Optimal |
||
65 | Strip Size : 64 KB |
||
66 | Number Of Drives : 1 |
||
67 | Span Depth : 1 |
||
68 | Default Cache Policy: WriteBack, ReadAdaptive, Direct, No Write Cache if Bad BBU |
||
69 | Current Cache Policy: WriteBack, ReadAdaptive, Direct, No Write Cache if Bad BBU |
||
70 | Default Access Policy: Read/Write |
||
71 | Current Access Policy: Read/Write |
||
72 | Disk Cache Policy : Disk's Default |
||
73 | Encryption Type : None |
||
74 | Default Power Savings Policy: Controller Defined |
||
75 | Current Power Savings Policy: None |
||
76 | Can spin up in 1 minute: No |
||
77 | LD has drives that support T10 power conditions: No |
||
78 | LD's IO profile supports MAX power savings with cached writes: No |
||
79 | Bad Blocks Exist: No |
||
80 | Is VD Cached: No |
||
81 | Number of Spans: 1 |
||
82 | Span: 0 - Number of PDs: 1 |
||
83 | |||
84 | PD: 0 Information |
||
85 | Enclosure Device ID: 32 |
||
86 | Slot Number: 15 |
||
87 | Drive's position: DiskGroup: 5, Span: 0, Arm: 0 |
||
88 | Enclosure position: 1 |
||
89 | Device Id: 15 |
||
90 | WWN: 5e83a970e3f8ae05 |
||
91 | Sequence Number: 2 |
||
92 | Media Error Count: 0 |
||
93 | Other Error Count: 3 |
||
94 | Predictive Failure Count: 0 |
||
95 | Last Predictive Failure Event Seq Number: 0 |
||
96 | PD Type: SATA |
||
97 | |||
98 | Raw Size: 447.130 GB [0x37e436b0 Sectors] |
||
99 | Non Coerced Size: 446.630 GB [0x37d436b0 Sectors] |
||
100 | Coerced Size: 446.625 GB [0x37d40000 Sectors] |
||
101 | Sector Size: 0 |
||
102 | Firmware state: Online, Spun Up |
||
103 | Device Firmware Level: 1.0 |
||
104 | Shield Counter: 0 |
||
105 | Successful diagnostics completion on : N/A |
||
106 | SAS Address(0): 0x500056b36789abdc |
||
107 | Connected Port Number: 0(path0) |
||
108 | Inquiry Data: OCZ-6R12G0UG3MU5KHK2OCZ-VERTEX460 1.0 |
||
109 | FDE Capable: Not Capable |
||
110 | FDE Enable: Disable |
||
111 | Secured: Unsecured |
||
112 | Locked: Unlocked |
||
113 | Needs EKM Attention: No |
||
114 | Foreign State: None |
||
115 | Device Speed: 6.0Gb/s |
||
116 | Link Speed: 6.0Gb/s |
||
117 | Media Type: Solid State Device |
||
118 | Drive: Not Certified |
||
119 | Drive Temperature : N/A |
||
120 | PI Eligibility: No |
||
121 | Drive is formatted for PI information: No |
||
122 | PI: No PI |
||
123 | Port-0 : |
||
124 | Port status: Active |
||
125 | Port's Linkspeed: 6.0Gb/s |
||
126 | Drive has flagged a S.M.A.R.T alert : No |
||
127 | </pre> |
||
128 | |||
129 | h3. Смотрим массив |
||
130 | |||
131 | *megacli -LDGetProp -Name -L5 -a0 -nolog* |
||
132 | <pre> |
||
133 | Adapter 0-VD 5(target id: 5): Name: r0-2-ssd |
||
134 | |||
135 | Exit Code: 0x00 |
||
136 | 1 | Рамиль Абдулбяров | </pre> |