Проект

Общее

Профиль

Действия

Восстановление массива

Скидываем конфигурацию с диска:

megacli -CfgForeign -Clear -a0

Foreign configuration 0 is cleared on controller 0.

Exit Code: 0x00

Смотрим, что изменилось:

megacli pdinfo -PhysDrv \[32:16\] -a0 nolog

 1
 2 Enclosure Device ID: 32
 3 Slot Number: 16
 4 Enclosure position: 1
 5 Device Id: 16
 6 WWN: 5000C50071CAF938
 7 Sequence Number: 1
 8 Media Error Count: 0
 9 Other Error Count: 0
10 Predictive Failure Count: 0
11 Last Predictive Failure Event Seq Number: 0
12 PD Type: SAS
13
14 Raw Size: 279.396 GB [0x22ecb25c Sectors]
15 Non Coerced Size: 278.896 GB [0x22dcb25c Sectors]
16 Coerced Size: 278.875 GB [0x22dc0000 Sectors]
17 Sector Size:  0
18 Firmware state: Unconfigured(good), Spun Up
19 Device Firmware Level: YS0A
20 Shield Counter: 0
21 Successful diagnostics completion on :  N/A
22 SAS Address(0): 0x5000c50071caf939
23 SAS Address(1): 0x0
24 Connected Port Number: 0(path0) 
25 Inquiry Data: SEAGATE ST9300653SS     YS0A6XN62C41            
26 FDE Capable: Not Capable
27 FDE Enable: Disable
28 Secured: Unsecured
29 Locked: Unlocked
30 Needs EKM Attention: No
31-Foreign State: Foreign 
32-Foreign Secure: Drive is not secured by a foreign lock key
33+Foreign State: None 
34 Device Speed: 6.0Gb/s 
35 Link Speed: 6.0Gb/s 
36 Media Type: Hard Disk Device
37 Drive Temperature :30C (86.00 F)
38 PI Eligibility:  No 
39 Drive is formatted for PI information:  No
40 PI: No PI
41 Port-0 :
42 Port status: Active
43 Port's Linkspeed: 6.0Gb/s 
44 Port-1 :
45 Port status: Active
46 Port's Linkspeed: Unknown 
47 Drive has flagged a S.M.A.R.T alert : No
48
49 Exit Code: 0x00

Смотрим вывод в лог:

seqNum: 0x0000188c
Time: Mon Nov 24 07:39:16 2014

Code: 0x000000dc
Class: 0
Locale: 0x40
Event Description: Foreign Configuration Cleared
Event Data:
===========
None

seqNum: 0x0000188b
Time: Mon Nov 24 07:39:16 2014

Code: 0x000000da
Class: 0
Locale: 0x40
Event Description: Foreign Configuration Detected
Event Data:
===========
None

seqNum: 0x0000188a
Time: Mon Nov 24 07:39:16 2014

Code: 0x000000da
Class: 0
Locale: 0x40
Event Description: Foreign Configuration Detected
Event Data:
===========
None

Добавляем диск к массиву

Помечаем диск как hot-spare

/usr/local/sbin/megacli -PDHSP -Set -PhysDrv \[32:16\] -a0 nolog

Adapter: 0: Set Physical Drive at EnclId-32 SlotId-16 as Hot Spare Success.

Exit Code: 0x00

Смотрим журнал

seqNum: 0x0000188f
Time: Mon Nov 24 07:39:59 2014

Code: 0x00000072
Class: 0
Locale: 0x02
Event Description: State change on PD 10(e0x20/s16) from UNCONFIGURED_GOOD(0) to HOT SPARE(2)
Event Data:
===========
Device ID: 16
Enclosure Index: 32
Slot Number: 16
Previous state: 0
New state: 2

seqNum: 0x0000188e
Time: Mon Nov 24 07:39:59 2014

Code: 0x00000087
Class: 0
Locale: 0x42
Event Description: Global Hot Spare created on PD 10(e0x20/s16) (global,rev)
Event Data:
===========
Device ID: 16
Enclosure Index: 32
Slot Number: 16
Spare Type:  Revertible 
Arrays Dedicated to:

seqNum: 0x0000188d
Time: Mon Nov 24 07:39:59 2014

Code: 0x00000089
Class: 1
Locale: 0x42
Event Description: Global Hot Spare PD 10(e0x20/s16) does not cover all arrays
Event Data:
===========
Device ID: 16
Enclosure Index: 32
Slot Number: 16

Пошло автоматическое перестроение RAID

seqNum: 0x00001892
Time: Mon Nov 24 07:40:16 2014

Code: 0x00000067
Class: -1
Locale: 0x02
Event Description: Rebuild progress on PD 10(e0x20/s16) is 0.99%(17s)
Event Data:
===========

seqNum: 0x00001891
Time: Mon Nov 24 07:39:59 2014

Code: 0x00000072
Class: 0
Locale: 0x02
Event Description: State change on PD 10(e0x20/s16) from HOT SPARE(2) to REBUILD(14)
Event Data:
===========
Device ID: 16
Enclosure Index: 32
Slot Number: 16
Previous state: 2
New state: 20

seqNum: 0x00001890
Time: Mon Nov 24 07:39:59 2014

Code: 0x0000006a
Class: 0
Locale: 0x02
Event Description: Rebuild automatically started on PD 10(e0x20/s16)
Event Data:
===========
Device ID: 16
Enclosure Index: 32
Slot Number: 16

Смотрим статус диска

1
 2 Enclosure Device ID: 32
 3 Slot Number: 16
 4+Drive's position: DiskGroup: 2, Span: 1, Arm: 0
 5 Enclosure position: 1
 6 Device Id: 16
 7 WWN: 5000C50071CAF938
 8-Sequence Number: 1
 9+Sequence Number: 3
10 Media Error Count: 0
11 Other Error Count: 0
12 Predictive Failure Count: 0
13 Last Predictive Failure Event Seq Number: 0
14 PD Type: SAS
15
16 Raw Size: 279.396 GB [0x22ecb25c Sectors]
17 Non Coerced Size: 278.896 GB [0x22dcb25c Sectors]
18 Coerced Size: 278.875 GB [0x22dc0000 Sectors]
19 Sector Size:  0
20-Firmware state: Unconfigured(good), Spun Up
21+Firmware state: Rebuild
22 Device Firmware Level: YS0A
23 Shield Counter: 0
24 Successful diagnostics completion on :  N/A
25 SAS Address(0): 0x5000c50071caf939
26 SAS Address(1): 0x0
27 Connected Port Number: 0(path0) 
28 Inquiry Data: SEAGATE ST9300653SS     YS0A6XN62C41            
29 FDE Capable: Not Capable
30 FDE Enable: Disable
31 Secured: Unsecured
32 Locked: Unlocked
33 Needs EKM Attention: No
34 Foreign State: None 
35 Device Speed: 6.0Gb/s 
36 Link Speed: 6.0Gb/s 
37 Media Type: Hard Disk Device
38 Drive Temperature :30C (86.00 F)
39 PI Eligibility:  No 
40 Drive is formatted for PI information:  No
41 PI: No PI
42 Port-0 :
43 Port status: Active
44 Port's Linkspeed: 6.0Gb/s 
45 Port-1 :
46 Port status: Active
47 Port's Linkspeed: Unknown 
48 Drive has flagged a S.M.A.R.T alert : No
49
50 Exit Code: 0x00

Готово

Смотрим журнал

seqNum: 0x000018fa
Time: Mon Nov 24 08:12:18 2014

Code: 0x000000f9
Class: 0
Locale: 0x01
Event Description: VD 02/2 is now OPTIMAL
Event Data:
===========
Target Id: 2

seqNum: 0x000018f9
Time: Mon Nov 24 08:12:18 2014

Code: 0x00000051
Class: 0
Locale: 0x01
Event Description: State change on VD 02/2 from DEGRADED(2) to OPTIMAL(3)
Event Data:
===========
Target Id: 2
Previous state: 2
New state: 3

seqNum: 0x000018f8
Time: Mon Nov 24 08:12:18 2014

Code: 0x00000072
Class: 0
Locale: 0x02
Event Description: State change on PD 10(e0x20/s16) from REBUILD(14) to ONLINE(18)
Event Data:
===========
Device ID: 16
Enclosure Index: 32
Slot Number: 16
Previous state: 20
New state: 24

seqNum: 0x000018f7
Time: Mon Nov 24 08:12:18 2014

Code: 0x00000064
Class: 0
Locale: 0x02
Event Description: Rebuild complete on PD 10(e0x20/s16)
Event Data:
===========
Device ID: 16
Enclosure Index: 32
Slot Number: 16

seqNum: 0x000018f6
Time: Mon Nov 24 08:12:18 2014

Code: 0x00000063
Class: 0
Locale: 0x02
Event Description: Rebuild complete on VD 02/2
Event Data:
===========
Target Id: 2

seqNum: 0x000018f5
Time: Mon Nov 24 08:12:17 2014

Code: 0x00000067
Class: -1
Locale: 0x02
Event Description: Rebuild progress on PD 10(e0x20/s16) is 99.94%(1938s)
Event Data:
===========

Смотрим изменения по итогу:

megacli -LDInfo -LALL -a0 -nolog
megacli -LDInfo -L2 -a0 -nolog

 1
 2 Adapter 0 -- Virtual Drive Information:
 3 Virtual Drive: 2 (Target Id: 2)
 4 Name                :r10-3-sas
 5 RAID Level          : Primary-1, Secondary-0, RAID Level Qualifier-0
 6 Size                : 557.75 GB
 7 Sector Size         : 512
 8 Mirror Data         : 557.75 GB
 9-State               : Degraded
10+State               : Optimal
11 Strip Size          : 64 KB
12 Number Of Drives per span:2
13 Span Depth          : 2
14 Default Cache Policy: WriteBack, ReadAdaptive, Direct, No Write Cache if Bad BBU
15 Current Cache Policy: WriteBack, ReadAdaptive, Direct, No Write Cache if Bad BBU
16 Default Access Policy: Read/Write
17 Current Access Policy: Read/Write
18 Disk Cache Policy   : Disk's Default
19 Encryption Type     : None
20 Default Power Savings Policy: Controller Defined
21 Current Power Savings Policy: None
22 Can spin up in 1 minute: Yes
23 LD has drives that support T10 power conditions: Yes
24 LD's IO profile supports MAX power savings with cached writes: No
25 Bad Blocks Exist: No
26 Is VD Cached: Yes
27 Cache Cade Type : Read Only
28
29 Exit Code: 0x00

Смотрим состояние диска

1
 2 Enclosure Device ID: 32
 3 Slot Number: 16
 4 Drive's position: DiskGroup: 2, Span: 1, Arm: 0
 5 Enclosure position: 1
 6 Device Id: 16
 7 WWN: 5000C50071CAF938
 8-Sequence Number: 3
 9+Sequence Number: 4
10 Media Error Count: 0
11 Other Error Count: 0
12 Predictive Failure Count: 0
13 Last Predictive Failure Event Seq Number: 0
14 PD Type: SAS
15
16 Raw Size: 279.396 GB [0x22ecb25c Sectors]
17 Non Coerced Size: 278.896 GB [0x22dcb25c Sectors]
18 Coerced Size: 278.875 GB [0x22dc0000 Sectors]
19 Sector Size:  0
20-Firmware state: Rebuild
21+Firmware state: Online, Spun Up
22 Device Firmware Level: YS0A
23 Shield Counter: 0
24 Successful diagnostics completion on :  N/A
25 SAS Address(0): 0x5000c50071caf939
26 SAS Address(1): 0x0
27 Connected Port Number: 0(path0) 
28 Inquiry Data: SEAGATE ST9300653SS     YS0A6XN62C41            
29 FDE Capable: Not Capable
30 FDE Enable: Disable
31 Secured: Unsecured
32 Locked: Unlocked
33 Needs EKM Attention: No
34 Foreign State: None 
35 Device Speed: 6.0Gb/s 
36 Link Speed: 6.0Gb/s 
37 Media Type: Hard Disk Device
38 Drive Temperature :30C (86.00 F)
39 PI Eligibility:  No 
40 Drive is formatted for PI information:  No
41 PI: No PI
42 Port-0 :
43 Port status: Active
44 Port's Linkspeed: 6.0Gb/s 
45 Port-1 :
46 Port status: Active
47 Port's Linkspeed: Unknown 
48 Drive has flagged a S.M.A.R.T alert : No
49
50 Exit Code: 0x00

Обновлено Рамиль Абдулбяров больше 9 лет назад · 3 изменени(я, ий)