Skip to content
遇见王斌 edited this page Oct 29, 2017 · 8 revisions

pdinfo

1 查看所有物理磁盘信息

以下输出的是单块硬盘的信息

/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL -nolog

1.1 做了 raid 组的硬盘信息

#/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL -nolog
Enclosure Device ID: 252    <<<<背板 ID
Slot Number: 5              <<<<槽位 ID
Drive's position: DiskGroup: 0, Span: 0, Arm: 4 <<<对应逻辑磁盘 ID
Enclosure position: N/A
Device Id: 13
WWN: 50000397cb7029d0
Sequence Number: 2
Media Error Count: 0        <<<<大于 0 时表示磁盘可能错误,可能是磁盘有坏道
Other Error Count: 0        <<<<大于 0 时表示磁盘可能存在松动,可能需要重新再插入
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA

Raw Size: 1.819 TB [0xe8e088b0 Sectors]
Non Coerced Size: 1.818 TB [0xe8d088b0 Sectors]
Coerced Size: 1.818 TB [0xe8d00000 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: FJ2D
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x4433221105000000
Connected Port Number: 5(path0) 
Inquiry Data:         57D1K63RFVMCTOSHIBA MG04ACA200N                         FJ2D
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 :28C (82.40 F)
PI Eligibility:  No 
Drive is formatted for PI information:  No
PI: No PI
Drive's NCQ setting : Enabled
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s 
Drive has flagged a S.M.A.R.T alert : No

1.2 独立热备盘的硬盘信息

  • 一般情况是进入逻辑磁盘管理界面,在指定的逻辑磁盘组在弹出菜单里选择 Mange Ded. HS
Enclosure Device ID: 252     <<<<背板 ID
Slot Number: 6               <<<<槽位 ID
Enclosure position: N/A
Device Id: 14
WWN: 50000397cb7029d1
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA
Hotspare Information: 
Type: Dedicated, with enclosure affinity, is revertible
Array #: 0                  <<<<给逻辑磁盘 0 作热备盘

Raw Size: 1.819 TB [0xe8e088b0 Sectors]
Non Coerced Size: 1.818 TB [0xe8d088b0 Sectors]
Coerced Size: 1.818 TB [0xe8d00000 Sectors]
Sector Size:  512
Logical Sector Size:  512
Physical Sector Size:  512
Firmware state: Hotspare, Spun down
Device Firmware Level: FJ2D
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x4433221106000000
Connected Port Number: 6(path0) 
Inquiry Data:         57D1K63SFVMCTOSHIBA MG04ACA200N                         FJ2D
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 :30C (86.00 F)
PI Eligibility:  No 
Drive is formatted for PI information:  No
PI: No PI
Drive's NCQ setting : Enabled
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s 
Drive has flagged a S.M.A.R.T alert : No

1.3 全局热备盘的硬盘信息

  • 一般情况是进入物理磁盘界面将 ready 状态的硬盘 Make Global HS 即创建全局热备盘
Enclosure Device ID: 252  <<<<背板 ID
Slot Number: 7            <<<<槽位 ID
Enclosure position: N/A
Device Id: 15
WWN: 50000397cbf01d7d
Sequence Number: 2
Media Error Count: 0      <<<<大于 0 时表示磁盘可能错误,可能是磁盘有坏道
Other Error Count: 0      <<<<大于 0 时表示磁盘可能存在松动,可能需要重新再插入
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA
Hotspare Information: 
Type: Global, is revertible <<<< 全局热备盘

Raw Size: 1.819 TB [0xe8e088b0 Sectors]
Non Coerced Size: 1.818 TB [0xe8d088b0 Sectors]
Coerced Size: 1.818 TB [0xe8d00000 Sectors]
Sector Size:  512
Logical Sector Size:  512
Physical Sector Size:  512
Firmware state: Hotspare, Spun down
Device Firmware Level: FJ2D
Shield Counter: 0
Successful diagnostics completion on :  N/A
SAS Address(0): 0x4433221107000000
Connected Port Number: 7(path0) 
Inquiry Data:         57CHK4TDFVMCTOSHIBA MG04ACA200N                         FJ2D
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
Drive's NCQ setting : Enabled
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s 
Drive has flagged a S.M.A.R.T alert : No

2 前端展示时注意点

2.1 不同作用的盘输出项区别

  • 制作 raid 组的盘会输出 Drive's position: DiskGroup: 0, Span: 0, Arm: 4 项,而热备盘没有此项
  • 热备盘会输出 Hotspare 的相关信息,做 raid 组的盘则不会