
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/