~percona-toolkit-dev/percona-toolkit/fix-empty-table-bug-987393

« back to all changes in this revision

Viewing changes to t/pt-summary/parse_lsi_megaraid.sh

  • Committer: Daniel Nichter
  • Date: 2012-04-03 16:14:55 UTC
  • mfrom: (217.6.22 2.0.3)
  • Revision ID: daniel@percona.com-20120403161455-ntv33vju9o6njtqv
Merge summary-tools-2.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
 
3
 
TESTS=6
4
 
TMPDIR=$TEST_TMPDIR
5
 
 
6
 
# ############################################################################
7
 
cat <<EOF > $TMPDIR/expected
8
 
         BBU | 100% Charged, Temperature 18C, isSOHGood=Yes
9
 
EOF
10
 
 
11
 
cat <<EOF > $TMPDIR/in
12
 
BBU status for Adapter: 0
13
 
 
14
 
BatteryType: BBU
15
 
Voltage: 4072 mV
16
 
Current: 0 mA
17
 
Temperature: 18 C
18
 
Firmware Status: 00000000
19
 
 
20
 
Battery state: 
21
 
 
22
 
GasGuageStatus:
23
 
  Fully Discharged        : No
24
 
  Fully Charged           : Yes
25
 
  Discharging             : Yes
26
 
  Initialized             : Yes
27
 
  Remaining Time Alarm    : No
28
 
  Remaining Capacity Alarm: No
29
 
  Discharge Terminated    : No
30
 
  Over Temperature        : No
31
 
  Charging Terminated     : No
32
 
  Over Charged            : No
33
 
 
34
 
Relative State of Charge: 100 %
35
 
Charger Status: Complete
36
 
Remaining Capacity: 867 mAh
37
 
Full Charge Capacity: 867 mAh
38
 
isSOHGood: Yes
39
 
 
40
 
Exit Code: 0x00
41
 
EOF
42
 
parse_lsi_megaraid_bbu_status $TMPDIR/in > $TMPDIR/got
43
 
no_diff $TMPDIR/got $TMPDIR/expected
44
 
 
45
 
# ############################################################################
46
 
cat <<EOF > $TMPDIR/expected
47
 
 
48
 
  PhysiclDev Type State   Errors Vendor  Model        Size
49
 
  ========== ==== ======= ====== ======= ============ ===========
50
 
  Hard Disk  SAS  Online   0/0/0 SEAGATE ST373455SS   70007MB
51
 
  Hard Disk  SAS  Online   0/0/0 SEAGATE ST373455SS   70007MB
52
 
  Hard Disk  SAS  Online   0/0/0 SEAGATE ST373455SS   70007MB
53
 
  Hard Disk  SAS  Online   0/0/0 SEAGATE ST373455SS   70007MB
54
 
EOF
55
 
 
56
 
cat <<EOF > $TMPDIR/in
57
 
                                     
58
 
Adapter #0
59
 
 
60
 
Enclosure Device ID: 32
61
 
Slot Number: 0
62
 
Device Id: 0
63
 
Sequence Number: 2
64
 
Media Error Count: 0
65
 
Other Error Count: 0
66
 
Predictive Failure Count: 0
67
 
Last Predictive Failure Event Seq Number: 0
68
 
PD Type: SAS
69
 
Raw Size: 70007MB [0x88bb93a Sectors]
70
 
Non Coerced Size: 69495MB [0x87bb93a Sectors]
71
 
Coerced Size: 69376MB [0x8780000 Sectors]
72
 
Firmware state: Online
73
 
SAS Address(0): 0x5000c500079f8cf9
74
 
SAS Address(1): 0x0
75
 
Connected Port Number: 0(path0) 
76
 
Inquiry Data: SEAGATE ST373455SS      S5273LQ2DZ33            
77
 
Foreign State: None 
78
 
Media Type: Hard Disk Device
79
 
 
80
 
Enclosure Device ID: 32
81
 
Slot Number: 1
82
 
Device Id: 1
83
 
Sequence Number: 2
84
 
Media Error Count: 0
85
 
Other Error Count: 0
86
 
Predictive Failure Count: 0
87
 
Last Predictive Failure Event Seq Number: 0
88
 
PD Type: SAS
89
 
Raw Size: 70007MB [0x88bb93a Sectors]
90
 
Non Coerced Size: 69495MB [0x87bb93a Sectors]
91
 
Coerced Size: 69376MB [0x8780000 Sectors]
92
 
Firmware state: Online
93
 
SAS Address(0): 0x5000c500079f5c35
94
 
SAS Address(1): 0x0
95
 
Connected Port Number: 1(path0) 
96
 
Inquiry Data: SEAGATE ST373455SS      S5273LQ2D9RH            
97
 
Foreign State: None 
98
 
Media Type: Hard Disk Device
99
 
 
100
 
Enclosure Device ID: 32
101
 
Slot Number: 2
102
 
Device Id: 2
103
 
Sequence Number: 2
104
 
Media Error Count: 0
105
 
Other Error Count: 0
106
 
Predictive Failure Count: 0
107
 
Last Predictive Failure Event Seq Number: 0
108
 
PD Type: SAS
109
 
Raw Size: 70007MB [0x88bb93a Sectors]
110
 
Non Coerced Size: 69495MB [0x87bb93a Sectors]
111
 
Coerced Size: 69376MB [0x8780000 Sectors]
112
 
Firmware state: Online
113
 
SAS Address(0): 0x5000c500079fc0c9
114
 
SAS Address(1): 0x0
115
 
Connected Port Number: 2(path0) 
116
 
Inquiry Data: SEAGATE ST373455SS      S5273LQ2DPST            
117
 
Foreign State: None 
118
 
Media Type: Hard Disk Device
119
 
 
120
 
Enclosure Device ID: 32
121
 
Slot Number: 3
122
 
Device Id: 3
123
 
Sequence Number: 2
124
 
Media Error Count: 0
125
 
Other Error Count: 0
126
 
Predictive Failure Count: 0
127
 
Last Predictive Failure Event Seq Number: 0
128
 
PD Type: SAS
129
 
Raw Size: 70007MB [0x88bb93a Sectors]
130
 
Non Coerced Size: 69495MB [0x87bb93a Sectors]
131
 
Coerced Size: 69376MB [0x8780000 Sectors]
132
 
Firmware state: Online
133
 
SAS Address(0): 0x5000c500079dc339
134
 
SAS Address(1): 0x0
135
 
Connected Port Number: 3(path0) 
136
 
Inquiry Data: SEAGATE ST373455SS      S5273LQ2CKD5            
137
 
Foreign State: None 
138
 
Media Type: Hard Disk Device
139
 
 
140
 
 
141
 
Exit Code: 0x00
142
 
EOF
143
 
parse_lsi_megaraid_devices $TMPDIR/in > $TMPDIR/got
144
 
no_diff $TMPDIR/got $TMPDIR/expected
145
 
 
146
 
 
147
 
# ############################################################################
148
 
cat <<EOF > $TMPDIR/expected
149
 
 
150
 
  PhysiclDev Type State   Errors Vendor  Model        Size
151
 
  ========== ==== ======= ====== ======= ============ ===========
152
 
  Hard Disk  SAS  Online   0/0/0 SEAGATE ST373455SS   70007MB
153
 
  Hard Disk  SAS  Online   0/0/0 SEAGATE ST373455SS   70007MB
154
 
  Hard Disk  SAS  Online   0/0/0 SEAGATE ST373455SS   70007MB
155
 
  Hard Disk  SAS  Online   0/0/0 SEAGATE ST373455SS   70007MB
156
 
EOF
157
 
 
158
 
cat <<EOF > $TMPDIR/in
159
 
[root@pc-db1 ~]# /opt/MegaRAID/MegaCli/MegaCli64 -LdPdInfo -aALL
160
 
                                     
161
 
Adapter #0
162
 
 
163
 
Number of Virtual Disks: 2
164
 
Virtual Disk: 0 (Target Id: 0)
165
 
Name:
166
 
RAID Level: Primary-1, Secondary-0, RAID Level Qualifier-0
167
 
Size:69376MB
168
 
State: Optimal
169
 
Stripe Size: 64kB
170
 
Number Of Drives:2
171
 
Span Depth:1
172
 
Default Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU
173
 
Current Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU
174
 
Access Policy: Read/Write
175
 
Disk Cache Policy: Disk's Default
176
 
Number of Spans: 1
177
 
Span: 0 - Number of PDs: 2
178
 
PD: 0 Information
179
 
Enclosure Device ID: 32
180
 
Slot Number: 0
181
 
Device Id: 0
182
 
Sequence Number: 2
183
 
Media Error Count: 0
184
 
Other Error Count: 0
185
 
Predictive Failure Count: 0
186
 
Last Predictive Failure Event Seq Number: 0
187
 
PD Type: SAS
188
 
Raw Size: 70007MB [0x88bb93a Sectors]
189
 
Non Coerced Size: 69495MB [0x87bb93a Sectors]
190
 
Coerced Size: 69376MB [0x8780000 Sectors]
191
 
Firmware state: Online
192
 
SAS Address(0): 0x5000c500079f8cf9
193
 
SAS Address(1): 0x0
194
 
Connected Port Number: 0(path0) 
195
 
Inquiry Data: SEAGATE ST373455SS      S5273LQ2DZ33            
196
 
Foreign State: None 
197
 
Media Type: Hard Disk Device
198
 
 
199
 
PD: 1 Information
200
 
Enclosure Device ID: 32
201
 
Slot Number: 1
202
 
Device Id: 1
203
 
Sequence Number: 2
204
 
Media Error Count: 0
205
 
Other Error Count: 0
206
 
Predictive Failure Count: 0
207
 
Last Predictive Failure Event Seq Number: 0
208
 
PD Type: SAS
209
 
Raw Size: 70007MB [0x88bb93a Sectors]
210
 
Non Coerced Size: 69495MB [0x87bb93a Sectors]
211
 
Coerced Size: 69376MB [0x8780000 Sectors]
212
 
Firmware state: Online
213
 
SAS Address(0): 0x5000c500079f5c35
214
 
SAS Address(1): 0x0
215
 
Connected Port Number: 1(path0) 
216
 
Inquiry Data: SEAGATE ST373455SS      S5273LQ2D9RH            
217
 
Foreign State: None 
218
 
Media Type: Hard Disk Device
219
 
 
220
 
Virtual Disk: 1 (Target Id: 1)
221
 
Name:
222
 
RAID Level: Primary-1, Secondary-0, RAID Level Qualifier-0
223
 
Size:69376MB
224
 
State: Optimal
225
 
Stripe Size: 64kB
226
 
Number Of Drives:2
227
 
Span Depth:1
228
 
Default Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU
229
 
Current Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU
230
 
Access Policy: Read/Write
231
 
Disk Cache Policy: Disk's Default
232
 
Number of Spans: 1
233
 
Span: 0 - Number of PDs: 2
234
 
PD: 0 Information
235
 
Enclosure Device ID: 32
236
 
Slot Number: 2
237
 
Device Id: 2
238
 
Sequence Number: 2
239
 
Media Error Count: 0
240
 
Other Error Count: 0
241
 
Predictive Failure Count: 0
242
 
Last Predictive Failure Event Seq Number: 0
243
 
PD Type: SAS
244
 
Raw Size: 70007MB [0x88bb93a Sectors]
245
 
Non Coerced Size: 69495MB [0x87bb93a Sectors]
246
 
Coerced Size: 69376MB [0x8780000 Sectors]
247
 
Firmware state: Online
248
 
SAS Address(0): 0x5000c500079fc0c9
249
 
SAS Address(1): 0x0
250
 
Connected Port Number: 2(path0) 
251
 
Inquiry Data: SEAGATE ST373455SS      S5273LQ2DPST            
252
 
Foreign State: None 
253
 
Media Type: Hard Disk Device
254
 
 
255
 
PD: 1 Information
256
 
Enclosure Device ID: 32
257
 
Slot Number: 3
258
 
Device Id: 3
259
 
Sequence Number: 2
260
 
Media Error Count: 0
261
 
Other Error Count: 0
262
 
Predictive Failure Count: 0
263
 
Last Predictive Failure Event Seq Number: 0
264
 
PD Type: SAS
265
 
Raw Size: 70007MB [0x88bb93a Sectors]
266
 
Non Coerced Size: 69495MB [0x87bb93a Sectors]
267
 
Coerced Size: 69376MB [0x8780000 Sectors]
268
 
Firmware state: Online
269
 
SAS Address(0): 0x5000c500079dc339
270
 
SAS Address(1): 0x0
271
 
Connected Port Number: 3(path0) 
272
 
Inquiry Data: SEAGATE ST373455SS      S5273LQ2CKD5            
273
 
Foreign State: None 
274
 
Media Type: Hard Disk Device
275
 
 
276
 
 
277
 
Exit Code: 0x00
278
 
EOF
279
 
parse_lsi_megaraid_devices $TMPDIR/in > $TMPDIR/got
280
 
no_diff $TMPDIR/got $TMPDIR/expected
281
 
 
282
 
# ############################################################################
283
 
cat <<EOF > $TMPDIR/expected
284
 
 
285
 
  VirtualDev Size      RAID Level Disks SpnDpth Stripe Status  Cache
286
 
  ========== ========= ========== ===== ======= ====== ======= =========
287
 
  0(no name) 69376MB   1 (1-0-0)      2     1-1   64kB Optimal WB, no RA
288
 
  1(no name) 69376MB   1 (1-0-0)      2     1-1   64kB Optimal WB, no RA
289
 
EOF
290
 
 
291
 
cat <<EOF > $TMPDIR/in
292
 
[root@pc-db1 ~]# /opt/MegaRAID/MegaCli/MegaCli64 -LdPdInfo -aALL
293
 
                                     
294
 
Adapter #0
295
 
 
296
 
Number of Virtual Disks: 2
297
 
Virtual Disk: 0 (Target Id: 0)
298
 
Name:
299
 
RAID Level: Primary-1, Secondary-0, RAID Level Qualifier-0
300
 
Size:69376MB
301
 
State: Optimal
302
 
Stripe Size: 64kB
303
 
Number Of Drives:2
304
 
Span Depth:1
305
 
Default Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU
306
 
Current Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU
307
 
Access Policy: Read/Write
308
 
Disk Cache Policy: Disk's Default
309
 
Number of Spans: 1
310
 
Span: 0 - Number of PDs: 2
311
 
PD: 0 Information
312
 
Enclosure Device ID: 32
313
 
Slot Number: 0
314
 
Device Id: 0
315
 
Sequence Number: 2
316
 
Media Error Count: 0
317
 
Other Error Count: 0
318
 
Predictive Failure Count: 0
319
 
Last Predictive Failure Event Seq Number: 0
320
 
PD Type: SAS
321
 
Raw Size: 70007MB [0x88bb93a Sectors]
322
 
Non Coerced Size: 69495MB [0x87bb93a Sectors]
323
 
Coerced Size: 69376MB [0x8780000 Sectors]
324
 
Firmware state: Online
325
 
SAS Address(0): 0x5000c500079f8cf9
326
 
SAS Address(1): 0x0
327
 
Connected Port Number: 0(path0) 
328
 
Inquiry Data: SEAGATE ST373455SS      S5273LQ2DZ33            
329
 
Foreign State: None 
330
 
Media Type: Hard Disk Device
331
 
 
332
 
PD: 1 Information
333
 
Enclosure Device ID: 32
334
 
Slot Number: 1
335
 
Device Id: 1
336
 
Sequence Number: 2
337
 
Media Error Count: 0
338
 
Other Error Count: 0
339
 
Predictive Failure Count: 0
340
 
Last Predictive Failure Event Seq Number: 0
341
 
PD Type: SAS
342
 
Raw Size: 70007MB [0x88bb93a Sectors]
343
 
Non Coerced Size: 69495MB [0x87bb93a Sectors]
344
 
Coerced Size: 69376MB [0x8780000 Sectors]
345
 
Firmware state: Online
346
 
SAS Address(0): 0x5000c500079f5c35
347
 
SAS Address(1): 0x0
348
 
Connected Port Number: 1(path0) 
349
 
Inquiry Data: SEAGATE ST373455SS      S5273LQ2D9RH            
350
 
Foreign State: None 
351
 
Media Type: Hard Disk Device
352
 
 
353
 
Virtual Disk: 1 (Target Id: 1)
354
 
Name:
355
 
RAID Level: Primary-1, Secondary-0, RAID Level Qualifier-0
356
 
Size:69376MB
357
 
State: Optimal
358
 
Stripe Size: 64kB
359
 
Number Of Drives:2
360
 
Span Depth:1
361
 
Default Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU
362
 
Current Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU
363
 
Access Policy: Read/Write
364
 
Disk Cache Policy: Disk's Default
365
 
Number of Spans: 1
366
 
Span: 0 - Number of PDs: 2
367
 
PD: 0 Information
368
 
Enclosure Device ID: 32
369
 
Slot Number: 2
370
 
Device Id: 2
371
 
Sequence Number: 2
372
 
Media Error Count: 0
373
 
Other Error Count: 0
374
 
Predictive Failure Count: 0
375
 
Last Predictive Failure Event Seq Number: 0
376
 
PD Type: SAS
377
 
Raw Size: 70007MB [0x88bb93a Sectors]
378
 
Non Coerced Size: 69495MB [0x87bb93a Sectors]
379
 
Coerced Size: 69376MB [0x8780000 Sectors]
380
 
Firmware state: Online
381
 
SAS Address(0): 0x5000c500079fc0c9
382
 
SAS Address(1): 0x0
383
 
Connected Port Number: 2(path0) 
384
 
Inquiry Data: SEAGATE ST373455SS      S5273LQ2DPST            
385
 
Foreign State: None 
386
 
Media Type: Hard Disk Device
387
 
 
388
 
PD: 1 Information
389
 
Enclosure Device ID: 32
390
 
Slot Number: 3
391
 
Device Id: 3
392
 
Sequence Number: 2
393
 
Media Error Count: 0
394
 
Other Error Count: 0
395
 
Predictive Failure Count: 0
396
 
Last Predictive Failure Event Seq Number: 0
397
 
PD Type: SAS
398
 
Raw Size: 70007MB [0x88bb93a Sectors]
399
 
Non Coerced Size: 69495MB [0x87bb93a Sectors]
400
 
Coerced Size: 69376MB [0x8780000 Sectors]
401
 
Firmware state: Online
402
 
SAS Address(0): 0x5000c500079dc339
403
 
SAS Address(1): 0x0
404
 
Connected Port Number: 3(path0) 
405
 
Inquiry Data: SEAGATE ST373455SS      S5273LQ2CKD5            
406
 
Foreign State: None 
407
 
Media Type: Hard Disk Device
408
 
 
409
 
 
410
 
Exit Code: 0x00
411
 
EOF
412
 
parse_lsi_megaraid_virtual_devices $TMPDIR/in > $TMPDIR/got
413
 
no_diff $TMPDIR/got $TMPDIR/expected
414
 
 
415
 
# ############################################################################
416
 
cat <<EOF > $TMPDIR/expected
417
 
 
418
 
  VirtualDev Size      RAID Level Disks SpnDpth Stripe Status  Cache
419
 
  ========== ========= ========== ===== ======= ====== ======= =========
420
 
  0(no name) 69376MB   1 (1-0-0)      2      1-   64kB Optimal WB, no RA
421
 
  1(no name) 69376MB   1 (1-0-0)      2      1-   64kB Optimal WB, no RA
422
 
EOF
423
 
 
424
 
cat <<EOF > $TMPDIR/in
425
 
[root@pc-db1 ~]# /opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -aAll
426
 
                                     
427
 
 
428
 
Adapter 0 -- Virtual Drive Information:
429
 
Virtual Disk: 0 (Target Id: 0)
430
 
Name:
431
 
RAID Level: Primary-1, Secondary-0, RAID Level Qualifier-0
432
 
Size:69376MB
433
 
State: Optimal
434
 
Stripe Size: 64kB
435
 
Number Of Drives:2
436
 
Span Depth:1
437
 
Default Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU
438
 
Current Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU
439
 
Access Policy: Read/Write
440
 
Disk Cache Policy: Disk's Default
441
 
Virtual Disk: 1 (Target Id: 1)
442
 
Name:
443
 
RAID Level: Primary-1, Secondary-0, RAID Level Qualifier-0
444
 
Size:69376MB
445
 
State: Optimal
446
 
Stripe Size: 64kB
447
 
Number Of Drives:2
448
 
Span Depth:1
449
 
Default Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU
450
 
Current Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU
451
 
Access Policy: Read/Write
452
 
Disk Cache Policy: Disk's Default
453
 
 
454
 
Exit Code: 0x00
455
 
EOF
456
 
parse_lsi_megaraid_virtual_devices $TMPDIR/in > $TMPDIR/got
457
 
no_diff $TMPDIR/got $TMPDIR/expected
458
 
 
459
 
 
460
 
# ############################################################################
461
 
cat <<EOF > $TMPDIR/expected
462
 
       Model | PERC 6/i Integrated, PCIE interface, 8 ports
463
 
       Cache | 256MB Memory, BBU Present
464
 
EOF
465
 
 
466
 
cat <<EOF > $TMPDIR/in
467
 
[root@pc-db1]# /opt/MegaRAID/MegaCli/MegaCli64  -AdpAllInfo -aALL
468
 
                                     
469
 
Adapter #0
470
 
 
471
 
==============================================================================
472
 
                    Versions
473
 
                ================
474
 
Product Name    : PERC 6/i Integrated
475
 
Serial No       : 1122334455667788
476
 
FW Package Build: 6.0.1-0080
477
 
 
478
 
                    Mfg. Data
479
 
                ================
480
 
Mfg. Date       : 06/08/07
481
 
Rework Date     : 06/08/07
482
 
Revision No     : 
483
 
Battery FRU     : N/A
484
 
 
485
 
                Image Versions In Flash:
486
 
                ================
487
 
FW Version         : 1.11.52-0349
488
 
BIOS Version       : NT13-2
489
 
WebBIOS Version    : 1.1-32-e_11-Rel
490
 
Ctrl-R Version     : 1.01-010B
491
 
Boot Block Version : 1.00.00.01-0008
492
 
 
493
 
                Pending Images In Flash
494
 
                ================
495
 
None
496
 
 
497
 
                PCI Info
498
 
                ================
499
 
Vendor Id       : 1000
500
 
Device Id       : 0060
501
 
SubVendorId     : 1028
502
 
SubDeviceId     : 1f0c
503
 
 
504
 
Host Interface  : PCIE
505
 
 
506
 
Number of Frontend Port: 0 
507
 
Device Interface  : PCIE
508
 
 
509
 
Number of Backend Port: 8 
510
 
Port  :  Address
511
 
0        5000c500079f8cf9 
512
 
1        5000c500079f5c35 
513
 
2        5000c500079fc0c9 
514
 
3        5000c500079dc339 
515
 
4        0000000000000000 
516
 
5        0000000000000000 
517
 
6        0000000000000000 
518
 
7        0000000000000000 
519
 
 
520
 
                HW Configuration
521
 
                ================
522
 
SAS Address     : 5001e4f021048f00
523
 
BBU             : Present
524
 
Alarm           : Absent
525
 
NVRAM           : Present
526
 
Serial Debugger : Present
527
 
Memory          : Present
528
 
Flash           : Present
529
 
Memory Size     : 256MB
530
 
 
531
 
                Settings
532
 
                ================
533
 
Current Time                     : 20:31:29 5/13, 2010
534
 
Predictive Fail Poll Interval    : 300sec
535
 
Interrupt Throttle Active Count  : 16
536
 
Interrupt Throttle Completion    : 50us
537
 
Rebuild Rate                     : 30%
538
 
PR Rate                          : 30%
539
 
Resynch Rate                     : 30%
540
 
Check Consistency Rate           : 30%
541
 
Reconstruction Rate              : 30%
542
 
Cache Flush Interval             : 4s
543
 
Max Drives to Spinup at One Time : 2
544
 
Delay Among Spinup Groups        : 12s
545
 
Physical Drive Coercion Mode     : 128MB
546
 
Cluster Mode                     : Disabled
547
 
Alarm                            : Disabled
548
 
Auto Rebuild                     : Enabled
549
 
Battery Warning                  : Enabled
550
 
Ecc Bucket Size                  : 15
551
 
Ecc Bucket Leak Rate             : 1440 Minutes
552
 
Restore HotSpare on Insertion    : Disabled
553
 
Expose Enclosure Devices         : Disabled
554
 
Maintain PD Fail History         : Disabled
555
 
Host Request Reordering          : Enabled
556
 
Auto Detect BackPlane Enabled    : SGPIO/i2c SEP
557
 
Load Balance Mode                : Auto
558
 
Any Offline VD Cache Preserved   : No
559
 
 
560
 
                Capabilities
561
 
                ================
562
 
RAID Level Supported             : RAID0, RAID1, RAID5, RAID6, RAID10, RAID50, RAID60
563
 
Supported Drives                 : SAS, SATA
564
 
 
565
 
Allowed Mixing:
566
 
 
567
 
Mix In Enclosure Allowed
568
 
 
569
 
                Status
570
 
                ================
571
 
ECC Bucket Count                 : 0
572
 
 
573
 
                Limitations
574
 
                ================
575
 
Max Arms Per VD         : 32 
576
 
Max Spans Per VD        : 8 
577
 
Max Arrays              : 128 
578
 
Max Number of VDs       : 64 
579
 
Max Parallel Commands   : 1008 
580
 
Max SGE Count           : 80 
581
 
Max Data Transfer Size  : 8192 sectors 
582
 
Max Strips PerIO        : 42 
583
 
Min Stripe Size         : 8kB
584
 
Max Stripe Size         : 1024kB
585
 
 
586
 
                Device Present
587
 
                ================
588
 
Virtual Drives    : 2 
589
 
  Degraded        : 0 
590
 
  Offline         : 0 
591
 
Physical Devices  : 5 
592
 
  Disks           : 4 
593
 
  Critical Disks  : 0 
594
 
  Failed Disks    : 0 
595
 
 
596
 
                Supported Adapter Operations
597
 
                ================
598
 
Rebuild Rate                    : Yes
599
 
CC Rate                         : Yes
600
 
BGI Rate                        : Yes
601
 
Reconstruct Rate                : Yes
602
 
Patrol Read Rate                : Yes
603
 
Alarm Control                   : Yes
604
 
Cluster Support                 : No
605
 
BBU                             : Yes
606
 
Spanning                        : Yes
607
 
Dedicated Hot Spare             : Yes
608
 
Revertible Hot Spares           : No
609
 
Foreign Config Import           : Yes
610
 
Self Diagnostic                 : Yes
611
 
Allow Mixed Redundancy on Array : No
612
 
Global Hot Spares               : Yes
613
 
Deny SCSI Passthrough           : No
614
 
Deny SMP Passthrough            : No
615
 
Deny STP Passthrough            : No
616
 
 
617
 
                Supported VD Operations
618
 
                ================
619
 
Read Policy          : Yes
620
 
Write Policy         : Yes
621
 
IO Policy            : Yes
622
 
Access Policy        : Yes
623
 
Disk Cache Policy    : Yes
624
 
Reconstruction       : Yes
625
 
Deny Locate          : No
626
 
Deny CC              : No
627
 
 
628
 
                Supported PD Operations
629
 
                ================
630
 
Force Online                            : Yes
631
 
Force Offline                           : Yes
632
 
Force Rebuild                           : Yes
633
 
Deny Force Failed                       : No
634
 
Deny Force Good/Bad                     : No
635
 
Deny Missing Replace                    : No
636
 
Deny Clear                              : No
637
 
Deny Locate                             : No
638
 
Disable Copyback                        : No
639
 
Enable Copyback on SMART                : No
640
 
Enable Copyback to SSD on SMART error   : No
641
 
 
642
 
                Error Counters
643
 
                ================
644
 
Memory Correctable Errors   : 0 
645
 
Memory Uncorrectable Errors : 0 
646
 
 
647
 
                Cluster Information
648
 
                ================
649
 
Cluster Permitted     : No
650
 
Cluster Active        : No
651
 
 
652
 
                Default Settings
653
 
                ================
654
 
Phy Polarity                     : 0 
655
 
Phy PolaritySplit                : 0 
656
 
Background Rate                  : 30 
657
 
Stripe Size                      : 64kB
658
 
Flush Time                       : 4 seconds
659
 
Write Policy                     : WB
660
 
Read Policy                      : None
661
 
Cache When BBU Bad               : Disabled
662
 
Cached IO                        : No
663
 
SMART Mode                       : Mode 6
664
 
Alarm Disable                    : No
665
 
Coercion Mode                    : 128MB
666
 
ZCR Config                       : Unknown
667
 
Dirty LED Shows Drive Activity   : No
668
 
BIOS Continue on Error           : No
669
 
Spin Down Mode                   : None
670
 
Allowed Device Type              : SAS/SATA Mix
671
 
Allow Mix In Enclosure           : Yes
672
 
Allow HDD SAS/SATA Mix In VD     : No
673
 
Allow SSD SAS/SATA Mix In VD     : No
674
 
Allow HDD/SAS Mix In VD          : No
675
 
Allow SATA In Cluster            : No
676
 
Max Chained Enclosures           : 1 
677
 
Disable Ctrl-R                   : No
678
 
Enable Web BIOS                  : No
679
 
Direct PD Mapping                : Yes
680
 
BIOS Enumerate VDs               : Yes
681
 
Restore Hot Spare on Insertion   : No
682
 
Expose Enclosure Devices         : No
683
 
Maintain PD Fail History         : No
684
 
Disable Puncturing               : No
685
 
Zero Based Enclosure Enumeration : Yes
686
 
PreBoot CLI Enabled              : No
687
 
LED Show Drive Activity          : No
688
 
Cluster Disable                  : Yes
689
 
SAS Disable                      : No
690
 
Auto Detect BackPlane Enable     : SGPIO/i2c SEP
691
 
Delay during POST                : 0 
692
 
 
693
 
Exit Code: 0x00
694
 
EOF
695
 
parse_lsi_megaraid_adapter_info $TMPDIR/in > $TMPDIR/got
696
 
no_diff $TMPDIR/got $TMPDIR/expected