从监控设备检查到某台服务器的raid报错,信息如下:
Raid设备:
Controller Model : Adaptec 5405Z
报错信息:
Logical device segment information -------------------------------------------------------- Group 0, Segment 0 : Present (Controller:1,Connector:0,Device:0) WD-WCASYC615109 Group 0, Segment 1 : Present (Controller:1,Connector:0,Device:1) WD-WCASYF003550 Group 1, Segment 0 : Present (Controller:1,Connector:0,Device:3) WD-WCASYF301137 Group 1, Segment 1 : Inconsistent (Controller:1,Connector:0,Device:2) WD-WCASYD155341 Device #2 Device is a Hard drive State : Online Failed logical device segments : True Supported : Yes Transfer Speed : SATA 3.0 Gb/s Reported Channel,Device(T:L) : 0,2(2:0) Reported Location : Connector 0, Device 2 Vendor : WDC Model : WD5002ABYS-0 Firmware : 02.03B03 Serial number : WD-WCASYD155341 Reserved Size : 798680 KB Used Size : 476160 MB Unused Size : 64 KB Total Size : 476940 MB Write Cache : Enabled (write-back) FRU : None S.M.A.R.T. : No S.M.A.R.T. warnings : 0 Power State : Full rpm Supported Power States : Full rpm,Powered off SSD : No MaxCache Capable : No MaxCache Assigned : No NCQ status : Enabled
检查步骤:
命令:arcconf getlogs 1 device tabular 输出: Controllers found: 1 Controller log Controller ID.................................... 0 Type............................................. 0 Time............................................. 1404979634 version ........................................ 3 tableFull ...................................... false driveErrorEntry smartError ..................................... false vendorID ....................................... WDC serialNumber ................................... WD-WCASYF296641 wwn ............................................ xxxxxxxxxxxxxxxx - CC_FILTER deviceID ....................................... 2 productID ...................................... WD5002AB numParityErrors ................................ 0 linkFailures ................................... 0 hwErrors ....................................... 0 abortedCmds .................................... 6 mediumErrors ................................... 0 smartWarning ................................... 0 driveErrorEntry smartError ..................................... false vendorID ....................................... WDC serialNumber ................................... WD-WCASYD155341 wwn ............................................ xxxxxxxxxxxxxxxx - CC_FILTER deviceID ....................................... 2 productID ...................................... WD5002AB numParityErrors ................................ 0 linkFailures ................................... 0 hwErrors ....................................... 0 abortedCmds .................................... 4 mediumErrors ................................... 0 smartWarning ................................... 0 Command completed successfully.
硬件没有明显错误:
根据资料,只需要执行:
arcconf task start 1 device 0 2 initialize
表示初始化设备,命令执行后,会进行重建raid,使用以下命令查看重建的进度:
[root@admin ~]# arcconf getstatus 1 Controllers found: 1 Logical device Task: Logical device : 0 Task ID : 103 Current operation : Rebuild Status : In Progress Priority : High Percentage complete : 97
完成后,查看状态:
[root@admin ~]# arcconf getconfig 1 Controllers found: 1 ---------------------------------------------------------------------- Controller information ---------------------------------------------------------------------- Controller Status : Optimal Channel description : SAS/SATA Controller Model : Adaptec 5405Z Controller Serial Number : 2C1911F3A6F Physical Slot : 16 Temperature : 72 C/ 161 F (Normal) Installed memory : 512 MB Copyback : Disabled Background consistency check : Disabled Automatic Failover : Enabled Global task priority : High Performance Mode : Default/Dynamic Stayawake period : Disabled Spinup limit internal drives : 0 Spinup limit external drives : 0 Defunct disk drive count : 0 Logical devices/Failed/Degraded : 1/0/0 SSDs assigned to MaxCache pool : 0 Maximum SSDs allowed in MaxCache pool : 8 MaxCache Read Cache Pool Size : 0.000 GB MaxCache flush and fetch rate : 0 MaxCache Read, Write Balance Factor : 3,1 NCQ status : Enabled Statistics data collection mode : Enabled -------------------------------------------------------- Controller Version Information -------------------------------------------------------- BIOS : 5.2-0 (18950) Firmware : 5.2-0 (18950) Driver : 1.1-5 (24702) Boot Flash : 5.2-0 (18950) -------------------------------------------------------- Controller ZMM Information -------------------------------------------------------- Status : ZMM Optimal ---------------------------------------------------------------------- Logical device information ---------------------------------------------------------------------- Logical device number 0 Logical device name : RAID10-A RAID level : 10 Status of logical device : Optimal Size : 952310 MB Stripe-unit size : 256 KB Read-cache setting : Enabled Read-cache status : On Write-cache setting : On when protected by battery/ZMM Write-cache status : On MaxCache read cache setting : Enabled MaxCache read cache status : Off Partitioned : Yes Protected by Hot-Spare : No Bootable : Yes Failed stripes : No Power settings : Disabled -------------------------------------------------------- Logical device segment information -------------------------------------------------------- Group 0, Segment 0 : Present (Controller:1,Connector:0,Device:0) WD-WCASYC615109 Group 0, Segment 1 : Present (Controller:1,Connector:0,Device:1) WD-WCASYF003550 Group 1, Segment 0 : Present (Controller:1,Connector:0,Device:3) WD-WCASYF301137 Group 1, Segment 1 : Present (Controller:1,Connector:0,Device:2) WD-WCASYD155341 ---------------------------------------------------------------------- Physical Device information ---------------------------------------------------------------------- Device #0 Device is a Hard drive State : Online Supported : Yes Transfer Speed : SATA 3.0 Gb/s Reported Channel,Device(T:L) : 0,0(0:0) Reported Location : Connector 0, Device 0 Vendor : WDC Model : WD5002ABYS-0 Firmware : 02.03B03 Serial number : WD-WCASYC615109 Reserved Size : 798680 KB Used Size : 476160 MB Unused Size : 64 KB Total Size : 476940 MB Write Cache : Enabled (write-back) FRU : None S.M.A.R.T. : No S.M.A.R.T. warnings : 0 Power State : Full rpm Supported Power States : Full rpm,Powered off SSD : No MaxCache Capable : No MaxCache Assigned : No NCQ status : Enabled Device #1 Device is a Hard drive State : Online Supported : Yes Transfer Speed : SATA 3.0 Gb/s Reported Channel,Device(T:L) : 0,1(1:0) Reported Location : Connector 0, Device 1 Vendor : WDC Model : WD5002ABYS-0 Firmware : 02.03B03 Serial number : WD-WCASYF003550 Reserved Size : 798680 KB Used Size : 476160 MB Unused Size : 64 KB Total Size : 476940 MB Write Cache : Enabled (write-back) FRU : None S.M.A.R.T. : No S.M.A.R.T. warnings : 0 Power State : Full rpm Supported Power States : Full rpm,Powered off SSD : No MaxCache Capable : No MaxCache Assigned : No NCQ status : Enabled Device #2 Device is a Hard drive State : Online Supported : Yes Transfer Speed : SATA 3.0 Gb/s Reported Channel,Device(T:L) : 0,2(2:0) Reported Location : Connector 0, Device 2 Vendor : WDC Model : WD5002ABYS-0 Firmware : 02.03B03 Serial number : WD-WCASYD155341 Reserved Size : 798680 KB Used Size : 476160 MB Unused Size : 64 KB Total Size : 476940 MB Write Cache : Enabled (write-back) FRU : None S.M.A.R.T. : No S.M.A.R.T. warnings : 0 Power State : Full rpm Supported Power States : Full rpm,Powered off SSD : No MaxCache Capable : No MaxCache Assigned : No NCQ status : Enabled Device #3 Device is a Hard drive State : Online Supported : Yes Transfer Speed : SATA 3.0 Gb/s Reported Channel,Device(T:L) : 0,3(3:0) Reported Location : Connector 0, Device 3 Vendor : WDC Model : WD5002ABYS-0 Firmware : 02.03B03 Serial number : WD-WCASYF301137 Reserved Size : 798680 KB Used Size : 476160 MB Unused Size : 64 KB Total Size : 476940 MB Write Cache : Enabled (write-back) FRU : None S.M.A.R.T. : No S.M.A.R.T. warnings : 0 Power State : Full rpm Supported Power States : Full rpm,Powered off SSD : No MaxCache Capable : No MaxCache Assigned : No NCQ status : Enabled Command completed successfully.
注意:发现raid设备显示Degraded状态时,先检查硬件是否出错,如果没有显示错误信息则表示无需更换硬盘。