RAID0 拔盘之后再插回去配置还原

 

将新插入磁盘的Frimware state修改为unconfig good

找到unconfig bad的磁盘

# ./MegaCli64 -pdlist -a0

 

Adapter #0

 

Enclosure Device ID: 252

Slot Number: 0

Drive's position: DiskGroup: 0, Span: 0, Arm: 0

Enclosure position: N/A

Device Id: 2

WWN: 5000C50098BAA780

Sequence Number: 2

Media Error Count: 0

Other Error Count: 0

Predictive Failure Count: 0

Last Predictive Failure Event Seq Number: 0

PD Type: SAS

 

Raw Size: 558.911 GB [0x45dd2fb0 Sectors]

Non Coerced Size: 558.411 GB [0x45cd2fb0 Sectors]

Coerced Size: 557.861 GB [0x45bb9000 Sectors]

Sector Size:  512

Logical Sector Size:  512

Physical Sector Size:  512

Firmware state: Online, Spun Up

Commissioned Spare : No

Emergency Spare : No

Device Firmware Level: B001

Shield Counter: 0

Successful diagnostics completion on :  N/A

SAS Address(0): 0x5000c50098baa781

SAS Address(1): 0x0

Connected Port Number: 0(path0)

Inquiry Data: SEAGATE ST600MM0006     B001S0M7RYEM           

FDE Capable: Not Capable

FDE Enable: Disable

Secured: Unsecured

Locked: Unlocked

Needs EKM Attention: No

Foreign State: None

Device Speed: 6.0Gb/s

Link Speed: 6.0Gb/s

Media Type: Hard Disk Device

Drive:  Not Certified

Drive Temperature :33C (91.40 F)

PI Eligibility:  No

Drive is formatted for PI information:  No

PI: No PI

Port-0 :

Port status: Active

Port's Linkspeed: 6.0Gb/s

Port-1 :

Port status: Active

Port's Linkspeed: 6.0Gb/s

Drive has flagged a S.M.A.R.T alert : No

 

 

 

Enclosure Device ID: 252

Slot Number: 1

Enclosure position: N/A

Device Id: 3

WWN: 5000C50098BAE2D4

Sequence Number: 2

Media Error Count: 0

Other Error Count: 0

Predictive Failure Count: 0

Last Predictive Failure Event Seq Number: 0

PD Type: SAS

 

Raw Size: 558.911 GB [0x45dd2fb0 Sectors]

Non Coerced Size: 558.411 GB [0x45cd2fb0 Sectors]

Coerced Size: 557.861 GB [0x45bb9000 Sectors]

Sector Size:  512

Logical Sector Size:  512

Physical Sector Size:  512

Firmware state: Unconfigured(bad)

Device Firmware Level: B001

Shield Counter: 0

Successful diagnostics completion on :  N/A

SAS Address(0): 0x5000c50098bae2d5

SAS Address(1): 0x0

Connected Port Number: 3(path0)

Inquiry Data: SEAGATE ST600MM0006     B001S0M7RXXY           

FDE Capable: Not Capable

FDE Enable: Disable

Secured: Unsecured

Locked: Unlocked

Needs EKM Attention: No

Foreign State: None

Device Speed: 6.0Gb/s

Link Speed: 6.0Gb/s

Media Type: Hard Disk Device

Drive:  Not Certified

Drive Temperature :24C (75.20 F)

PI Eligibility:  No

Drive is formatted for PI information:  No

PI: No PI

Port-0 :

Port status: Active

Port's Linkspeed: 6.0Gb/s

Port-1 :

Port status: Active

Port's Linkspeed: 6.0Gb/s

Drive has flagged a S.M.A.R.T alert : No

 

 

 

 

 

 

Enclosure Device ID: 252

Slot Number: 2

Drive's position: DiskGroup: 1, Span: 0, Arm: 1

Enclosure position: N/A

Device Id: 4

WWN: 5000C50098CDA904

Sequence Number: 2

Media Error Count: 0

Other Error Count: 0

Predictive Failure Count: 0

Last Predictive Failure Event Seq Number: 0

PD Type: SAS

 

Raw Size: 558.911 GB [0x45dd2fb0 Sectors]

Non Coerced Size: 558.411 GB [0x45cd2fb0 Sectors]

Coerced Size: 557.861 GB [0x45bb9000 Sectors]

Sector Size:  512

Logical Sector Size:  512

Physical Sector Size:  512

Firmware state: Online, Spun Up

Commissioned Spare : No

Emergency Spare : No

Device Firmware Level: B001

Shield Counter: 0

Successful diagnostics completion on :  N/A

SAS Address(0): 0x5000c50098cda905

SAS Address(1): 0x0

Connected Port Number: 1(path0)

Inquiry Data: SEAGATE ST600MM0006     B001S0M7SGL0           

FDE Capable: Not Capable

FDE Enable: Disable

Secured: Unsecured

Locked: Unlocked

Needs EKM Attention: No

Foreign State: None

Device Speed: 6.0Gb/s

Link Speed: 6.0Gb/s

Media Type: Hard Disk Device

Drive:  Not Certified

Drive Temperature :31C (87.80 F)

PI Eligibility:  No

Drive is formatted for PI information:  No

PI: No PI

Port-0 :

Port status: Active

Port's Linkspeed: 6.0Gb/s

Port-1 :

Port status: Active

Port's Linkspeed: 6.0Gb/s

Drive has flagged a S.M.A.R.T alert : No

 

 

 

Enclosure Device ID: 252

Slot Number: 3

Drive's position: DiskGroup: 1, Span: 0, Arm: 2

Enclosure position: N/A

Device Id: 5

WWN: 5000C50098BD9BF8

Sequence Number: 2

Media Error Count: 0

Other Error Count: 0

Predictive Failure Count: 0

Last Predictive Failure Event Seq Number: 0

PD Type: SAS

 

Raw Size: 558.911 GB [0x45dd2fb0 Sectors]

Non Coerced Size: 558.411 GB [0x45cd2fb0 Sectors]

Coerced Size: 557.861 GB [0x45bb9000 Sectors]

Sector Size:  512

Logical Sector Size:  512

Physical Sector Size:  512

Firmware state: Online, Spun Up

Commissioned Spare : No

Emergency Spare : No

Device Firmware Level: B001

Shield Counter: 0

Successful diagnostics completion on :  N/A

SAS Address(0): 0x5000c50098bd9bf9

SAS Address(1): 0x0

Connected Port Number: 2(path0)

Inquiry Data: SEAGATE ST600MM0006     B001S0M7RZ7Y           

FDE Capable: Not Capable

FDE Enable: Disable

Secured: Unsecured

Locked: Unlocked

Needs EKM Attention: No

Foreign State: None

Device Speed: 6.0Gb/s

Link Speed: 6.0Gb/s

Media Type: Hard Disk Device

Drive:  Not Certified

Drive Temperature :33C (91.40 F)

PI Eligibility:  No

Drive is formatted for PI information:  No

PI: No PI

Port-0 :

Port status: Active

Port's Linkspeed: 6.0Gb/s

Port-1 :

Port status: Active

Port's Linkspeed: 6.0Gb/s

Drive has flagged a S.M.A.R.T alert : No

 

 

 

 

Exit Code: 0x00

 

# ./MegaCli64 -pdinfo -physdrv[252:1] -a0

                                    

Enclosure Device ID: 252

Slot Number: 1

Enclosure position: N/A

Device Id: 3

WWN: 5000C50098BAE2D4

Sequence Number: 2

Media Error Count: 0

Other Error Count: 0

Predictive Failure Count: 0

Last Predictive Failure Event Seq Number: 0

PD Type: SAS

 

Raw Size: 558.911 GB [0x45dd2fb0 Sectors]

Non Coerced Size: 558.411 GB [0x45cd2fb0 Sectors]

Coerced Size: 557.861 GB [0x45bb9000 Sectors]

Sector Size:  512

Logical Sector Size:  512

Physical Sector Size:  512

Firmware state: Unconfigured(bad)

Device Firmware Level: B001

Shield Counter: 0

Successful diagnostics completion on :  N/A

SAS Address(0): 0x5000c50098bae2d5

SAS Address(1): 0x0

Connected Port Number: 3(path0)

Inquiry Data: SEAGATE ST600MM0006     B001S0M7RXXY            

FDE Capable: Not Capable

FDE Enable: Disable

Secured: Unsecured

Locked: Unlocked

Needs EKM Attention: No

Foreign State: None

Device Speed: 6.0Gb/s

Link Speed: 6.0Gb/s

Media Type: Hard Disk Device

Drive:  Not Certified

Drive Temperature :24C (75.20 F)

PI Eligibility:  No

Drive is formatted for PI information:  No

PI: No PI

Port-0 :

Port status: Active

Port's Linkspeed: 6.0Gb/s

Port-1 :

Port status: Active

Port's Linkspeed: 6.0Gb/s

Drive has flagged a S.M.A.R.T alert : No

 

 

 

 

Exit Code: 0x00

 

 

将unconfig bad修改为unconfig good

# ./MegaCli64 -PDMakeGood -Physdrv "[252:1]" -a0

                                    

Adapter: 0: EnclId-252 SlotId-1 state changed to Unconfigured-Good.

 

Exit Code: 0x00

 

 

 

查看Frimware state

# ./MegaCli64 -pdinfo -physdrv[252:1] -a0

                                    

Enclosure Device ID: 252

Slot Number: 1

Enclosure position: N/A

Device Id: 3

WWN: 5000C50098BAE2D4

Sequence Number: 3

Media Error Count: 0

Other Error Count: 0

Predictive Failure Count: 0

Last Predictive Failure Event Seq Number: 0

PD Type: SAS

 

Raw Size: 558.911 GB [0x45dd2fb0 Sectors]

Non Coerced Size: 558.411 GB [0x45cd2fb0 Sectors]

Coerced Size: 557.861 GB [0x45bb9000 Sectors]

Sector Size:  512

Logical Sector Size:  512

Physical Sector Size:  512

Firmware state: Unconfigured(good), Spun Up

Device Firmware Level: B001

Shield Counter: 0

Successful diagnostics completion on :  N/A

SAS Address(0): 0x5000c50098bae2d5

SAS Address(1): 0x0

Connected Port Number: 3(path0)

Inquiry Data: SEAGATE ST600MM0006     B001S0M7RXXY           

FDE Capable: Not Capable

FDE Enable: Disable

Secured: Unsecured

Locked: Unlocked

Needs EKM Attention: No

Foreign State: Foreign

Foreign Secure: Drive is not secured by a foreign lock key

Device Speed: 6.0Gb/s

Link Speed: 6.0Gb/s

Media Type: Hard Disk Device

Drive:  Not Certified

Drive Temperature :24C (75.20 F)

PI Eligibility:  No

Drive is formatted for PI information:  No

PI: No PI

Port-0 :

Port status: Active

Port's Linkspeed: 6.0Gb/s

Port-1 :

Port status: Active

Port's Linkspeed: 6.0Gb/s

Drive has flagged a S.M.A.R.T alert : No

 

 

 

 

Exit Code: 0x00

 

 

清除新插入磁盘的foreign状态

# ./MegaCli64 -cfgforeign -clear -a0

                                    

Foreign configuration 0 is cleared on controller 0.

 

Exit Code: 0x00

 #

#

# ./MegaCli64 -pdinfo -physdrv[252:1] -a0

                                    

Enclosure Device ID: 252

Slot Number: 1

Enclosure position: N/A

Device Id: 3

WWN: 5000C50098BAE2D4

Sequence Number: 3

Media Error Count: 0

Other Error Count: 0

Predictive Failure Count: 0

Last Predictive Failure Event Seq Number: 0

PD Type: SAS

 

Raw Size: 558.911 GB [0x45dd2fb0 Sectors]

Non Coerced Size: 558.411 GB [0x45cd2fb0 Sectors]

Coerced Size: 557.861 GB [0x45bb9000 Sectors]

Sector Size:  512

Logical Sector Size:  512

Physical Sector Size:  512

Firmware state: Unconfigured(good), Spun Up

Device Firmware Level: B001

Shield Counter: 0

Successful diagnostics completion on :  N/A

SAS Address(0): 0x5000c50098bae2d5

SAS Address(1): 0x0

Connected Port Number: 3(path0)

Inquiry Data: SEAGATE ST600MM0006     B001S0M7RXXY           

FDE Capable: Not Capable

FDE Enable: Disable

Secured: Unsecured

Locked: Unlocked

Needs EKM Attention: No

Foreign State: None

Device Speed: 6.0Gb/s

Link Speed: 6.0Gb/s

Media Type: Hard Disk Device

Drive:  Not Certified

Drive Temperature :38C (100.40 F)

PI Eligibility:  No

Drive is formatted for PI information:  No

PI: No PI

Port-0 :

Port status: Active

Port's Linkspeed: 6.0Gb/s

Port-1 :

Port status: Active

Port's Linkspeed: 6.0Gb/s

Drive has flagged a S.M.A.R.T alert : No

 

 

 

 

Exit Code: 0x00

 

 

 

将新插入的磁盘做RAID0,加VD

 # ./MegaCli64 -LDGetProp -Cache -Lall -a0

                                    

Adapter 0-VD 0(target id: 0): Cache Policy:WriteThrough, ReadAdaptive, Direct, No Write Cache if bad BBU

Adapter 0-VD 1(target id: 1): Cache Policy:WriteThrough, ReadAhead, Direct, No Write Cache if bad BBU

 

Exit Code: 0x00

 #

 #

 # ./MegaCli64 -cfgldadd -r0 [252:1] WB RA Direct -a0

                                    

Adapter 0: Created VD 2

 

Adapter 0: Configured the Adapter!!

 

Exit Code: 0x00

 #

 # ./MegaCli64 -LDGetProp -Cache -Lall -a0

                                    

Adapter 0-VD 0(target id: 0): Cache Policy:WriteThrough, ReadAdaptive, Direct, No Write Cache if bad BBU

Adapter 0-VD 1(target id: 1): Cache Policy:WriteThrough, ReadAhead, Direct, No Write Cache if bad BBU

Adapter 0-VD 2(target id: 2): Cache Policy:WriteThrough, ReadAhead, Direct, No Write Cache if bad BBU

 

Exit Code: 0x00

 #

 

 

检查vd状态

 # ./MegaCli64 -pdlist -a0

                                    

Adapter #0

 

Enclosure Device ID: 252

Slot Number: 0

Drive's position: DiskGroup: 0, Span: 0, Arm: 0

Enclosure position: N/A

Device Id: 2

WWN: 5000C50098BAA780

Sequence Number: 2

Media Error Count: 0

Other Error Count: 0

Predictive Failure Count: 0

Last Predictive Failure Event Seq Number: 0

PD Type: SAS

 

Raw Size: 558.911 GB [0x45dd2fb0 Sectors]

Non Coerced Size: 558.411 GB [0x45cd2fb0 Sectors]

Coerced Size: 557.861 GB [0x45bb9000 Sectors]

Sector Size:  512

Logical Sector Size:  512

Physical Sector Size:  512

Firmware state: Online, Spun Up

Commissioned Spare : No

Emergency Spare : No

Device Firmware Level: B001

Shield Counter: 0

Successful diagnostics completion on :  N/A

SAS Address(0): 0x5000c50098baa781

SAS Address(1): 0x0

Connected Port Number: 0(path0)

Inquiry Data: SEAGATE ST600MM0006     B001S0M7RYEM           

FDE Capable: Not Capable

FDE Enable: Disable

Secured: Unsecured

Locked: Unlocked

Needs EKM Attention: No

Foreign State: None

Device Speed: 6.0Gb/s

Link Speed: 6.0Gb/s

Media Type: Hard Disk Device

Drive:  Not Certified

Drive Temperature :35C (95.00 F)

PI Eligibility:  No

Drive is formatted for PI information:  No

PI: No PI

Port-0 :

Port status: Active

Port's Linkspeed: 6.0Gb/s

Port-1 :

Port status: Active

Port's Linkspeed: 6.0Gb/s

Drive has flagged a S.M.A.R.T alert : No

 

 

 

 

 

 

Enclosure Device ID: 252

Slot Number: 1

Drive's position: DiskGroup: 2, Span: 0, Arm: 0

Enclosure position: N/A

Device Id: 3

WWN: 5000C50098BAE2D4

Sequence Number: 4

Media Error Count: 0

Other Error Count: 0

Predictive Failure Count: 0

Last Predictive Failure Event Seq Number: 0

PD Type: SAS

 

Raw Size: 558.911 GB [0x45dd2fb0 Sectors]

Non Coerced Size: 558.411 GB [0x45cd2fb0 Sectors]

Coerced Size: 557.861 GB [0x45bb9000 Sectors]

Sector Size:  512

Logical Sector Size:  512

Physical Sector Size:  512

Firmware state: Online, Spun Up

Commissioned Spare : No

Emergency Spare : No

Device Firmware Level: B001

Shield Counter: 0

Successful diagnostics completion on :  N/A

SAS Address(0): 0x5000c50098bae2d5

SAS Address(1): 0x0

Connected Port Number: 3(path0)

Inquiry Data: SEAGATE ST600MM0006     B001S0M7RXXY           

FDE Capable: Not Capable

FDE Enable: Disable

Secured: Unsecured

Locked: Unlocked

Needs EKM Attention: No

Foreign State: None

Device Speed: 6.0Gb/s

Link Speed: 6.0Gb/s

Media Type: Hard Disk Device

Drive:  Not Certified

Drive Temperature :42C (107.60 F)

PI Eligibility:  No

Drive is formatted for PI information:  No

PI: No PI

Port-0 :

Port status: Active

Port's Linkspeed: 6.0Gb/s

Port-1 :

Port status: Active

Port's Linkspeed: 6.0Gb/s

Drive has flagged a S.M.A.R.T alert : No

 

 

 

Enclosure Device ID: 252

Slot Number: 2

Drive's position: DiskGroup: 1, Span: 0, Arm: 1

Enclosure position: N/A

Device Id: 4

WWN: 5000C50098CDA904

Sequence Number: 2

Media Error Count: 0

Other Error Count: 0

Predictive Failure Count: 0

Last Predictive Failure Event Seq Number: 0

PD Type: SAS

 

Raw Size: 558.911 GB [0x45dd2fb0 Sectors]

Non Coerced Size: 558.411 GB [0x45cd2fb0 Sectors]

Coerced Size: 557.861 GB [0x45bb9000 Sectors]

Sector Size:  512

Logical Sector Size:  512

Physical Sector Size:  512

Firmware state: Online, Spun Up

Commissioned Spare : No

Emergency Spare : No

Device Firmware Level: B001

Shield Counter: 0

Successful diagnostics completion on :  N/A

SAS Address(0): 0x5000c50098cda905

SAS Address(1): 0x0

Connected Port Number: 1(path0)

Inquiry Data: SEAGATE ST600MM0006     B001S0M7SGL0           

FDE Capable: Not Capable

FDE Enable: Disable

Secured: Unsecured

Locked: Unlocked

Needs EKM Attention: No

Foreign State: None

Device Speed: 6.0Gb/s

Link Speed: 6.0Gb/s

Media Type: Hard Disk Device

Drive:  Not Certified

Drive Temperature :32C (89.60 F)

PI Eligibility:  No

Drive is formatted for PI information:  No

PI: No PI

Port-0 :

Port status: Active

Port's Linkspeed: 6.0Gb/s

Port-1 :

Port status: Active

Port's Linkspeed: 6.0Gb/s

Drive has flagged a S.M.A.R.T alert : No

 

 

 

Enclosure Device ID: 252

Slot Number: 3

Drive's position: DiskGroup: 1, Span: 0, Arm: 2

Enclosure position: N/A

Device Id: 5

WWN: 5000C50098BD9BF8

Sequence Number: 2

Media Error Count: 0

Other Error Count: 0

Predictive Failure Count: 0

Last Predictive Failure Event Seq Number: 0

PD Type: SAS

 

Raw Size: 558.911 GB [0x45dd2fb0 Sectors]

Non Coerced Size: 558.411 GB [0x45cd2fb0 Sectors]

Coerced Size: 557.861 GB [0x45bb9000 Sectors]

Sector Size:  512

Logical Sector Size:  512

Physical Sector Size:  512

Firmware state: Online, Spun Up

Commissioned Spare : No

Emergency Spare : No

Device Firmware Level: B001

Shield Counter: 0

Successful diagnostics completion on :  N/A

SAS Address(0): 0x5000c50098bd9bf9

SAS Address(1): 0x0

Connected Port Number: 2(path0)

Inquiry Data: SEAGATE ST600MM0006     B001S0M7RZ7Y           

FDE Capable: Not Capable

FDE Enable: Disable

Secured: Unsecured

Locked: Unlocked

Needs EKM Attention: No

Foreign State: None

Device Speed: 6.0Gb/s

Link Speed: 6.0Gb/s

Media Type: Hard Disk Device

Drive:  Not Certified

Drive Temperature :35C (95.00 F)

PI Eligibility:  No

Drive is formatted for PI information:  No

PI: No PI

Port-0 :

Port status: Active

Port's Linkspeed: 6.0Gb/s

Port-1 :

Port status: Active

Port's Linkspeed: 6.0Gb/s

Drive has flagged a S.M.A.R.T alert : No

 

 

 

 

Exit Code: 0x00

 #

 



参考:

http://mattshma.github.io/2015/07/21/megacli%E7%9B%91%E6%8E%A7%E7%A3%81%E7%9B%98/

https://supportforums.cisco.com/sites/default/files/legacy/4/0/2/43204-CIVS-HDD.pdf

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值