服务器检查硬盘状态

  • 下载megacli安装包

ftp://download2.boulder.ibm.com/ecc/sar/CMA/XSA/ibm_utl_sraidmr_megacli-8.00.48_linux_32-64.zip

  • 将压缩包存放在服务器的/tmp目录下 并解压压缩包
unzip ibm_utl_sraidmr_megacli-8.00.48_linux_32-64.zip
当前目录下会出现Linux的目录
cd linux
rpm -ivh *
  • 查看所有硬盘信息

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

  • 查看磁盘重建进度

/opt/MegaRAID/MegaCli/MegaCli64  -ShowProg -PhysDrv [32:0] -a0            ————32:设备ID/        0:槽位

  • 硬盘相关信息解析
FJ_4G_DPI_CX_YWGZ_JK_004:~ # /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL 
                                     
Adapter #0

Enclosure Device ID: 32		——设备ID
Slot Number: 0						——槽位
Enclosure position: 0			
Device Id: 0
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							——磁盘错误
Raw Size: 931.512 GB [0x74706db0 Sectors]
Non Coerced Size: 931.012 GB [0x74606db0 Sectors]
Coerced Size: 931.0 GB [0x74600000 Sectors]
Firmware state: Online, Spun Up——磁盘状态
SAS Address(0): 0x4433221104000000
Connected Port Number: 7(path0) 
Inquiry Data:      WD-WMATV5308329WDC WD1002FBYS-18W8B0                   03.00C09
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None 
Device Speed: 3.0Gb/s 
Link Speed: 3.0Gb/s 
Media Type: Hard Disk Device
Drive Temperature :43C (109.40 F)