실시간으로 하드웨어 RAID 상태 확인

실시간으로 하드웨어 RAID 상태 확인

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/

관련 정보