linux命令--檢視硬碟資訊(磁碟陣列模式下)
阿新 • • 發佈:2021-07-05
如果伺服器有做磁碟陣列,那麼執行fdisk -l或者smartctl –all /dev/sda,得不到你要的磁碟資訊。可以藉助MegaClI命令,MegaClI命令系統不自帶,需要額外下載。
安裝完成,命令檢視硬碟資訊
[root@localhost Linux MegaCLI 8.07.10]# cd /usr/bin [root@localhost bin]# /opt/MegaRAID/MegaCli/MegaCli64 -PDlist -aALL Adapter #0 Enclosure Device ID: 252 Slot Number: 0 Drive's position: DiskGroup: 0, Span: 0, Arm: 0Enclosure position: N/A Device Id: 23 WWN: 5000C5007E156790 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: 558.406GB [0x45cd0000 Sectors] Sector Size: 0 Logical Sector Size: 0 Physical Sector Size: 0 Firmware state: Online, Spun Up Commissioned Spare : No Emergency Spare : No Device Firmware Level: 000B Shield Counter: 0 Successful diagnostics completion on : N/A SAS Address(0): 0x5000c5007e156791 SAS Address(1): 0x0 Connected Port Number:1(path0) Inquiry Data: SEAGATE ST3600057SS 000B6SL9AQG9 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 :47C (116.60 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 Exit Code: 0x00