1.查看RAID Level
shell># MegaCli -LDInfo -Lall -aALL|grep RAID
RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3
RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3
RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3
RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3
RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3
RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3
RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3
2.查看硬盘信息
shell># MegaCli -Pdlist -a0
Enclosure Device ID: 32
Slot Number: 11
Drive's position: DiskGroup: 0, Span: 0, Arm: 0
Enclosure position: N/A
Device Id: 11
WWN: 5000C50053C72DB8
Sequence Number: 9
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: 558.375 GB [0x45cc0000 Sectors]
Sector Size: 0
Firmware state: Rebuild
Device Firmware Level: ES65
Shield Counter: 0
Successful diagnostics completion on : N/A
SAS Address(0): 0x5000c50053c72db9
SAS Address(1): 0x0
Connected Port Number: 0(path0)
Inquiry Data: SEAGATE ST3600057SS ES656SL44Z2N
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 Temperature :48C (118.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: Unknown
Drive has flagged a S.M.A.R.T alert : No
3.查看硬盘错误
shell># MegaCli -pdlist -a0|grep -i erro
Media Error Count: 0
Other Error Count: 0
Media Error Count: 0
Other Error Count: 0
Media Error Count: 2
Other Error Count: 0
4.查看硬盘状态
shell># MegaCli -pdlist -a0|grep "Firmware st"
Firmware state: Unconfigured(good), Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Rebuild
4.查看Rebuild进度
shell># MegaCli -pdrbld -showprog -physdrv[32:11] -aALL
Rebuild Progress on Device at Enclosure 32, Slot 11 Completed 74% in 213 Minutes.
5.查看raid卡信息
shell> # MegaCli -CfgDsply -a0|more
==============================================================================
Adapter: 0
Product Name: PERC H700 Integrated
Memory: 512MB
BBU: Present
Serial No: 25L01IN
==============================================================================
Number of DISK GROUPS: 1
.....
Default Cache Policy: WriteBack, ReadAdaptive, Direct, Write Cache OK if Bad BBU
Current Cache Policy: WriteBack, ReadAdaptive, Direct, Write Cache OK if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
......
shell># MegaCli -LDInfo -Lall -aALL|grep RAID
RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3
RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3
RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3
RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3
RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3
RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3
RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3
2.查看硬盘信息
shell># MegaCli -Pdlist -a0
Enclosure Device ID: 32
Slot Number: 11
Drive's position: DiskGroup: 0, Span: 0, Arm: 0
Enclosure position: N/A
Device Id: 11
WWN: 5000C50053C72DB8
Sequence Number: 9
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: 558.375 GB [0x45cc0000 Sectors]
Sector Size: 0
Firmware state: Rebuild
Device Firmware Level: ES65
Shield Counter: 0
Successful diagnostics completion on : N/A
SAS Address(0): 0x5000c50053c72db9
SAS Address(1): 0x0
Connected Port Number: 0(path0)
Inquiry Data: SEAGATE ST3600057SS ES656SL44Z2N
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 Temperature :48C (118.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: Unknown
Drive has flagged a S.M.A.R.T alert : No
3.查看硬盘错误
shell># MegaCli -pdlist -a0|grep -i erro
Media Error Count: 0
Other Error Count: 0
Media Error Count: 0
Other Error Count: 0
Media Error Count: 2
Other Error Count: 0
4.查看硬盘状态
shell># MegaCli -pdlist -a0|grep "Firmware st"
Firmware state: Unconfigured(good), Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Rebuild
4.查看Rebuild进度
shell># MegaCli -pdrbld -showprog -physdrv[32:11] -aALL
Rebuild Progress on Device at Enclosure 32, Slot 11 Completed 74% in 213 Minutes.
5.查看raid卡信息
shell> # MegaCli -CfgDsply -a0|more
==============================================================================
Adapter: 0
Product Name: PERC H700 Integrated
Memory: 512MB
BBU: Present
Serial No: 25L01IN
==============================================================================
Number of DISK GROUPS: 1
.....
Default Cache Policy: WriteBack, ReadAdaptive, Direct, Write Cache OK if Bad BBU
Current Cache Policy: WriteBack, ReadAdaptive, Direct, Write Cache OK if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
......
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26390465/viewspace-1839577/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/26390465/viewspace-1839577/