手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

使用MegaCLI管理PC服务器本地磁盘阵列

[日期:2014-09-23] 来源:Linux社区  作者:尛样儿 [字体:大 中 小]

3).查看物理磁盘信息:
[root@hisdb02 MegaCli]# ./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: 10
WWN: 5000C5007266557C
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: B56M
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x5000c5007266557d
SAS Address(1): 0x0
Connected Port Number: 1(path0)
Inquiry Data: IBM-ESXSST600MM0006    B56MS0M2FFKB0221B5C5   
IBM FRU/CRU: 49Y2004   
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:  Yes
Number of bytes of user data in LBA: 512
Drive is formatted for PI information:  Yes
PI: PI with type 2
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: 0, Span: 0, Arm: 1
Enclosure position: N/A
Device Id: 9
WWN: 5000C50072665134
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: B56M
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x5000c50072665135
SAS Address(1): 0x0
Connected Port Number: 0(path0)
Inquiry Data: IBM-ESXSST600MM0006    B56MS0M2F9130221B5C5   
IBM FRU/CRU: 49Y2004   
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:  Yes
Number of bytes of user data in LBA: 512
Drive is formatted for PI information:  Yes
PI: PI with type 2
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

    ./MegaCli64 -PDList -aALL命令显示的是所有适配器的信息,因为当前服务器只有一个适配器,所以该命令的输出结果和./MegaCli64 -Pdlist -a0命令一致。

4).检查物理磁盘状态:

[root@hisdb02 MegaCli]# ./MegaCli64 -Pdlist -a0|grep "Slot\|Firmware state"
Slot Number: 0
Firmware state: Online, Spun Up
Slot Number: 1
Firmware state: Online, Spun Up

5).查看当前RAID缓存状态:
[root@hisdb02 MegaCli]# ./MegaCli64 -ldgetprop -dskcache -lall -aall
                                   
Adapter 0-VD 0(target id: 0): Disk Write Cache : Disabled

6).各种磁盘设备的不同状态:
Device :        Normal|Damage|Rebuild|Normal
Virtual Drive :  Optimal|Degraded|Degraded|Optimal
Physical Drive : Online|Failed –> Unconfigured|Rebuild|Online

注意观察不同类型设备的状态,以判断设备是否出现故障;另外,当设备出现故障,在操作系统日志应该是有记录的。更多MegaCli64命令的用法等待你去发现。

本文永久更新链接地址:http://www.linuxidc.com/Linux/2014-09/107093.htm

linux
相关资讯       磁盘阵列  MegaCLI 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款