PERC_6/i_RAID

[CentOS 6.4] Dell PERC 6/i RAID & HDDステータス取得監視


PERC_6/i_RAID_card_img

DELL PowerEght 2950 III  PERC 6/i RAIDカードの状態を取得する。

サーバー保守をする上で、ハードのエラー監視は必須。特にHDDは消耗品、普通に逝ってしまうので状態を監視して、故障の際は即時交換が必須。

DELLならOMSA(OpenManage Server Administrator)を入れれば、HDDのステースの他、さまざまな情報が取得監視が可能。

OMSAの最新版をyumでインストールする

DELLのリポジトリを追加。

[root@tkmemo ~]# wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash

リポジトリを無効に(CentOSのリボジトリとバージョンが違うものを勝手に更新されないように)

[root@tkmemo ~]# sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/dell-omsa-repository.repo

一応、ちゃんと変わっているか確認

[root@tkmemo ~]# vi /etc/yum.repos.d/dell-omsa-repository.repo
[dell-omsa-indep]
name=Dell OMSA repository - Hardware independent
type=rpm-md
mirrorlist=http://linux.dell.com/repo/hardware/latest/mirrors.cgi?osname=el$releasever&basearch=$basearch&native=1&dellsysidpluginver=$dellsysidpluginver
gpgcheck=1
gpgkey=http://linux.dell.com/repo/hardware/latest/RPM-GPG-KEY-dell
http://linux.dell.com/repo/hardware/latest/RPM-GPG-KEY-libsmbios
enabled=0 #必要な時のみ指定して使うので基本「0」に
failover=priority
bootstrapurl=http://linux.dell.com/repo/hardware/latest/bootstrap.cgi

[dell-omsa-specific]
name=Dell OMSA repository - Hardware specific
type=rpm-md
mirrorlist=http://linux.dell.com/repo/hardware/latest/mirrors.cgi?osname=el$releasever&basearch=$basearch&native=1&sys_ven_id=$sys_ven_id&sys_dev_id=$sys_dev_id&dellsysidpluginver=$dellsysidpluginver
gpgcheck=1
gpgkey=http://linux.dell.com/repo/hardware/latest/RPM-GPG-KEY-dell
http://linux.dell.com/repo/hardware/latest/RPM-GPG-KEY-libsmbios
enabled=0 #必要な時のみ指定して使うので基本「0」に
failover=priority
bootstrapurl=http://linux.dell.com/repo/hardware/latest/bootstrap.cgi

OMSAのベース、ストレージ、共通ファイルをインストール

[root@tkmemo ~]# yum --enablerepo=dell-omsa-indep install srvadmin-base srvadmin-storageservices srvadmin-omcommon

OMSAを起動時に有効にするスクリプトを実行

[root@tkmemo ~]# /opt/dell/srvadmin/sbin/srvadmin-services.sh enable

再起動

reboot

RAIDの情報を取得する。

[root@tkmemo ~]# omreport storage pdisk controller=0
 List of Physical Disks on Controller PERC 6/i Integrated (Embedded)

 Controller PERC 6/i Integrated (Embedded)
 ID                              : 0:0:0
 Status                          : Ok
 Name                            : Physical Disk 0:0:0
 State                           : Online
 Power Status                    : Not Applicable
 Device Name                     : Not Available
 Bus Protocol                    : SATA
 Media                           : HDD
 Part of Cache Pool              : Not Applicable
 Device Life Remaining           : Not Applicable
 Remaining Rated Write Endurance : Not Applicable
 Failure Predicted               : No
 Revision                        : 01.01A01
 Driver Version                  : Not Applicable
 Model Number                    : Not Applicable
 Certified                       : Not Applicable
 Encryption Capable              : No
 Encrypted                       : Not Applicable
 Progress                        : Not Applicable
 Mirror Set ID                   : Not Applicable
 Capacity                        : 465.25 GB (499558383616 bytes)
 Used RAID Disk Space            : 465.25 GB (499558383616 bytes)
 Available RAID Disk Space       : 0.00 GB (0 bytes)
 Hot Spare                       : No
 Vendor ID                       : ATA
 Product ID                      : WDC WD5000AZRX-00A8LB0
 Serial No.                      : WD-WCC1U395xxxx
 Part Number                     : Not Available
 Negotiated Speed                : Not Available
 Capable Speed                   : Not Available
 Device Write Cache              : Not Applicable
 Manufacture Day                 : Not Available
 Manufacture Week                : Not Available
 Manufacture Year                : Not Available
 SAS Address                     : 1221000000000000

 ID                              : 0:0:1
 Status                          : Ok
 Name                            : Physical Disk 0:0:1
 State                           : Online
 Power Status                    : Not Applicable
 Device Name                     : Not Available
 Bus Protocol                    : SATA
 Media                           : HDD
 Part of Cache Pool              : Not Applicable
 Device Life Remaining           : Not Applicable
 Remaining Rated Write Endurance : Not Applicable
 Failure Predicted               : No
 Revision                        : 01.01A01
 Driver Version                  : Not Applicable
 Model Number                    : Not Applicable
 Certified                       : Not Applicable
 Encryption Capable              : No
 Encrypted                       : Not Applicable
 Progress                        : Not Applicable
 Mirror Set ID                   : Not Applicable
 Capacity                        : 465.25 GB (499558383616 bytes)
 Used RAID Disk Space            : 465.25 GB (499558383616 bytes)
 Available RAID Disk Space       : 0.00 GB (0 bytes)
 Hot Spare                       : No
 Vendor ID                       : ATA
 Product ID                      : WDC WD5000AZRX-00A8LB0
 Serial No.                      : WD-WCC1U395xxxx
 Part Number                     : Not Available
 Negotiated Speed                : Not Available
 Capable Speed                   : Not Available
 Device Write Cache              : Not Applicable
 Manufacture Day                 : Not Available
 Manufacture Week                : Not Available
 Manufacture Year                : Not Available
 SAS Address                     : 1221000001000000

 ID                              : 0:0:2
 Status                          : Ok
 Name                            : Physical Disk 0:0:2
 State                           : Online
 Power Status                    : Not Applicable
 Device Name                     : Not Available
 Bus Protocol                    : SATA
 Media                           : HDD
 Part of Cache Pool              : Not Applicable
 Device Life Remaining           : Not Applicable
 Remaining Rated Write Endurance : Not Applicable
 Failure Predicted               : No
 Revision                        : 01.01A01
 Driver Version                  : Not Applicable
 Model Number                    : Not Applicable
 Certified                       : Not Applicable
 Encryption Capable              : No
 Encrypted                       : Not Applicable
 Progress                        : Not Applicable
 Mirror Set ID                   : Not Applicable
 Capacity                        : 465.25 GB (499558383616 bytes)
 Used RAID Disk Space            : 465.25 GB (499558383616 bytes)
 Available RAID Disk Space       : 0.00 GB (0 bytes)
 Hot Spare                       : No
 Vendor ID                       : ATA
 Product ID                      : WDC WD5000AZRX-00A8LB0
 Serial No.                      : WD-WCC1U396xxxx
 Part Number                     : Not Available
 Negotiated Speed                : Not Available
 Capable Speed                   : Not Available
 Device Write Cache              : Not Applicable
 Manufacture Day                 : Not Available
 Manufacture Week                : Not Available
 Manufacture Year                : Not Available
 SAS Address                     : 1221000002000000

 ID                              : 0:0:3
 Status                          : Ok
 Name                            : Physical Disk 0:0:3
 State                           : Online
 Power Status                    : Not Applicable
 Device Name                     : Not Available
 Bus Protocol                    : SATA
 Media                           : HDD
 Part of Cache Pool              : Not Applicable
 Device Life Remaining           : Not Applicable
 Remaining Rated Write Endurance : Not Applicable
 Failure Predicted               : No
 Revision                        : 01.01A01
 Driver Version                  : Not Applicable
 Model Number                    : Not Applicable
 Certified                       : Not Applicable
 Encryption Capable              : No
 Encrypted                       : Not Applicable
 Progress                        : Not Applicable
 Mirror Set ID                   : Not Applicable
 Capacity                        : 465.25 GB (499558383616 bytes)
 Used RAID Disk Space            : 465.25 GB (499558383616 bytes)
 Available RAID Disk Space       : 0.00 GB (0 bytes)
 Hot Spare                       : No
 Vendor ID                       : ATA
 Product ID                      : WDC WD5000AZRX-00A8LB0
 Serial No.                      : WD-WCC1U395xxxx
 Part Number                     : Not Available
 Negotiated Speed                : Not Available
 Capable Speed                   : Not Available
 Device Write Cache              : Not Applicable
 Manufacture Day                 : Not Available
 Manufacture Week                : Not Available
 Manufacture Year                : Not Available
 SAS Address                     : 1221000003000000

 ID                              : 1:0:4
 Status                          : Ok
 Name                            : Physical Disk 1:0:4
 State                           : Online
 Power Status                    : Not Applicable
 Device Name                     : Not Available
 Bus Protocol                    : SATA
 Media                           : HDD
 Part of Cache Pool              : Not Applicable
 Device Life Remaining           : Not Applicable
 Remaining Rated Write Endurance : Not Applicable
 Failure Predicted               : No
 Revision                        : 01.01A01
 Driver Version                  : Not Applicable
 Model Number                    : Not Applicable
 Certified                       : Not Applicable
 Encryption Capable              : No
 Encrypted                       : Not Applicable
 Progress                        : Not Applicable
 Mirror Set ID                   : Not Applicable
 Capacity                        : 465.25 GB (499558383616 bytes)
 Used RAID Disk Space            : 465.25 GB (499558383616 bytes)
 Available RAID Disk Space       : 0.00 GB (0 bytes)
 Hot Spare                       : No
 Vendor ID                       : ATA
 Product ID                      : WDC WD5000AZRX-00A8LB0
 Serial No.                      : WD-WCC1U384xxxx
 Part Number                     : Not Available
 Negotiated Speed                : Not Available
 Capable Speed                   : Not Available
 Device Write Cache              : Not Applicable
 Manufacture Day                 : Not Available
 Manufacture Week                : Not Available
 Manufacture Year                : Not Available
 SAS Address                     : 1221000004000000

 ID                              : 1:0:5
 Status                          : Ok
 Name                            : Physical Disk 1:0:5
 State                           : Online
 Power Status                    : Not Applicable
 Device Name                     : Not Available
 Bus Protocol                    : SATA
 Media                           : HDD
 Part of Cache Pool              : Not Applicable
 Device Life Remaining           : Not Applicable
 Remaining Rated Write Endurance : Not Applicable
 Failure Predicted               : No
 Revision                        : 01.01A01
 Driver Version                  : Not Applicable
 Model Number                    : Not Applicable
 Certified                       : Not Applicable
 Encryption Capable              : No
 Encrypted                       : Not Applicable
 Progress                        : Not Applicable
 Mirror Set ID                   : Not Applicable
 Capacity                        : 465.25 GB (499558383616 bytes)
 Used RAID Disk Space            : 465.25 GB (499558383616 bytes)
 Available RAID Disk Space       : 0.00 GB (0 bytes)
 Hot Spare                       : No
 Vendor ID                       : ATA
 Product ID                      : WDC WD5000AZRX-00A8LB0
 Serial No.                      : WD-WCC1U386xxxx
 Part Number                     : Not Available
 Negotiated Speed                : Not Available
 Capable Speed                   : Not Available
 Device Write Cache              : Not Applicable
 Manufacture Day                 : Not Available
 Manufacture Week                : Not Available
 Manufacture Year                : Not Available
 SAS Address                     : 1221000005000000

情報が多すぎるので、普段はgrepで必要な情報に絞り込ん確認する。

[root@tkmemo ~]# omreport storage pdisk controller=0 |grep Status
Status                          : Ok
Power Status                    : Not Applicable
Status                          : Ok
Power Status                    : Not Applicable
Status                          : Ok
Power Status                    : Not Applicable
Status                          : Ok
Power Status                    : Not Applicable
Status                          : Ok
Power Status                    : Not Applicable
Status                          : Ok
Power Status                    : Not Applicable

後はこれを定期的に取得して監視すればOK。



Kenzi Tada について

カメラマンを本業と出来るよう鋭意努力中ですが、まだまだ力量が不足し、広告企画制作や技術者としての仕事をメインに、二足のわらじ、もとい四足ぐらいか(笑) 作品制作や撮影のお仕事にご協力頂ける被写体様(男女年齢問わず)、ヘアメイクアップアーティスト様を随時募集しております。ご興味が御座います方は是非、ご連絡下さい。