MegaCli使用

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

......

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26390465/viewspace-1839577/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/26390465/viewspace-1839577/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值