我想检查RAID
主机的硬件状态。我知道有一种方法可以从服务器供应商那里检查它,他们有自己的命令行实用程序来检查所有物理设备的性能。
是否有任何第三方软件包可以为我提供当前RAID
.
根据答案进行编辑smartctl
无效
# lspci | egrep -i 'raid|adaptec'
01:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 2008 [Falcon] (rev 03)
# smartctl -d scsi --all /dev/sg1 -H
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-573.3.1.el6.x86_64] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net
Vendor: IBM
Product: ServeRAID M1015
Revision: 2.12
User Capacity: 597,998,698,496 bytes [597 GB]
Logical block size: 512 bytes
Logical Unit id: 0x600605b003e420c016766a6e4652e202
Serial number: 0002e252466e6a7616c020e403b00506
Device type: disk
Local Time is: Thu Mar 3 21:26:11 2016 IST
Device does not support SMART
Error Counter logging not supported
Device does not support Self Test logging
答案1
我能够storcli
在我的服务器中找到并安装软件包,现在我能够找到驱动器故障。
以下是要遵循的步骤
[root@GURUWEBII tmp]# rpm -ivh storcli-1.03.11-1.noarch.rpm
Preparing... ########################################### [100%]
package storcli-1.03.11-1.noarch is installed
[root@GURUWEBII tmp]# /opt/MegaRAID/storcli/storcli64 /c0 show all
PD LIST :
=======
-------------------------------------------------------------------------
EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp
-------------------------------------------------------------------------
64:0 8 Onln 0 278.464 GB SAS HDD N N 512B MBF2300RC U
64:1 12 Onln 0 278.464 GB SAS HDD N N 512B MBF2300RC U
64:2 10 UBad - 278.464 GB SAS HDD N N 512B ST9300603SS U
64:3 9 Onln 0 278.464 GB SAS HDD N N 512B ST9300603SS U
-------------------------------------------------------------------------
EID-Enclosure Device ID|Slt-Slot No.|DID-Device ID|DG-DriveGroup
DHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global Hotspare
UBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-Interface
Med-Media Type|SED-Self Encryptive Drive|PI-Protection Info
SeSz-Sector Size|Sp-Spun|U-Up|D-Down|T-Transition|F-Foreign
我的磁盘出现故障的示例输出。
答案2
您可以使用 smartctl。如果您位于一个或另一个控制器后面,则该命令会有所不同。请参阅此链接:
http://www.cyberciti.biz/faq/linux-checking-sas-sata-disks-behind-adaptec-raid-controllers/
http://www.cyberciti.biz/faq/unix-linux-freebsd-3w-9xxx-smartctl-check-hard-disk-command/