zoukankan      html  css  js  c++  java
  • linux命令--查看硬盘信息(磁盘阵列模式下)

    如果服务器有做磁盘阵列,那么运行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: 0
    Enclosure 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.406 GB [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

  • 相关阅读:
    java_八大数据类型
    java_实现Hello World
    Linux-ls命令
    Liunx下安装MySql
    Liunx-tail命令
    Liunx-history命令
    Linux-mkdir命令
    Linux-cp命令
    Linux-mv命令
    PBFT_拜占庭容错算法
  • 原文地址:https://www.cnblogs.com/polestar/p/14973157.html
Copyright © 2011-2022 走看看