站長新書 站長開講 首頁 最新文章 站長著作及審校 FreeBSD 筆記 Linux 筆記 Windows 筆記 虛擬化筆記 網管人雜誌 遊山玩水 關於本站
站長新書 VMware vSphere ICM 團購開跑了!!

sas2ircu-查看 PERC H200 RAID Controller 狀態

最後編輯

修改:

< * IR Volume 虛擬硬碟,多顆硬碟組合起來的虛擬硬碟,簡單說就是 RAID
< ** Okay RAID 目前狀態為 '''正常''' (最優)
< ** Degraded RAID 目前狀態為 '''不正常 (退化、降級)'''
< * Physical device): 實體硬碟,簡單說就是主機上有幾顆硬碟
< ** Optimal 實體硬碟目前狀態為 '''正常'''
< ** Missing 實體硬碟目前狀態為 '''不正常 (失敗、未設定)'''
< ** Rebuilding 實體硬碟目前狀態為 '''重建中'''

> * '''IR Volume:''' 虛擬硬碟,多顆硬碟組合起來的虛擬硬碟,簡單說就是 RAID
> ** '''Okay:''' RAID 目前狀態為 ''正常'' (最優)
> ** '''Degraded:''' RAID 目前狀態為 ''不正常 (退化、降級)''
> * '''Physical device:''' 實體硬碟,簡單說就是主機上有幾顆硬碟
> ** '''Optimal:''' 實體硬碟目前狀態為 ''正常''
> ** '''Missing:''' 實體硬碟目前狀態為 ''不正常 (失敗、未設定)''
> ** '''Rebuilding:''' 實體硬碟目前狀態為 ''重建中''


前言

新採購的 Dell R310 配備的 RAID Card 為 PERC H200,使用此工具後可以在文字模式 (Command Line) 下很方便的查看目前 RAID 及 HDD 狀態。

實作環境

安裝及設定

在開始進行設定以前,再次確認一下目前的 RAID Card 是否為此型號

 #lspci -nn |grep LSI
  05:00.0 Serial Attached SCSI controller [0107]: LSI Logic / Symbios Logic SAS2008 PCI-Express Fusion-MPT SAS-2 [Falcon] [1000:0072] (rev 03)

步驟1.下載 sas2ircu

[Supermicro 下載中心] 下載 FAQ_9633_SAS2IRCU_Phase_5.0-5.00.00.00.zip

 #wget http://www.supermicro.com/support/faqs/data_lib/FAQ_9633_SAS2IRCU_Phase_5.0-5.00.00.00.zip

下載完成後進行解壓縮的動作,此壓縮檔案中包含各種作業系統適用的執行檔如 DOS、Linux、Solaris、Windows ...等。

 #unzip FAQ_9633_SAS2IRCU_Phase_5.0-5.00.00.00.zip
  Archive:  FAQ_9633_SAS2IRCU_Phase_5.0-5.00.00.00.zip
   creating: sas2ircu_dos_rel/
  inflating: sas2ircu_dos_rel/sas2ircu.exe
   creating: sas2ircu_efi_ebc_rel/
  inflating: sas2ircu_efi_ebc_rel/sas2ircu.efi
   creating: sas2ircu_linux_ppc64_rel/
  inflating: sas2ircu_linux_ppc64_rel/sas2ircu
   creating: sas2ircu_linux_x86_rel/
  inflating: sas2ircu_linux_x86_rel/sas2ircu
   creating: sas2ircu_solaris_sparc_rel/
  inflating: sas2ircu_solaris_sparc_rel/sas2ircu
   creating: sas2ircu_solaris_x86_rel/
  inflating: sas2ircu_solaris_x86_rel/sas2ircu
   creating: sas2ircu_win_x64_rel/
  inflating: sas2ircu_win_x64_rel/sas2ircu.exe
   creating: sas2ircu_win_x86_rel/
  inflating: sas2ircu_win_x86_rel/sas2ircu.exe

步驟2.給予執行檔案權限

解壓縮後的檔案可立即使用,但是預設檔案權限為 444 因此必須給予執行權限,並且複製到系統執行目錄下以便執行。

 #cd sas2ircu_linux_x86_rel        //切換到 Linux 執行檔存放目錄
 #chmod 755 sas2ircu               //給予檔案執行權限
 #cp sas2ircu /usr/local/sbin/     //複製到系統執行目錄下
 #sas2ircu LIST                    //查看 RAID 資訊
  LSI Corporation SAS2 IR Configuration Utility.
  Version 5.00.00.00 (2010.02.09)
  Copyright (c) 2009 LSI Corporation. All rights reserved.
           Adapter      Vendor  Device                       SubSys  SubSys
   Index    Type          ID      ID    Pci Address          Ven ID  Dev ID
   -----  ------------  ------  ------  -----------------    ------  ------
     0     SAS2008     1000h    72h   00h:05h:00h:00h      1028h   1f1dh
  SAS2IRCU: Utility Completed Successfully.

步驟3.了解 RAID 顯示狀態相關名詞

在開始使用 sas2ircu 之前有些名詞我們必須先了解,這樣之後觀看上才不致有困惑的情況發生。

以下表格為當主機硬碟正常時、發生損壞時其 VD 及 PD 的狀態

RAID 裝置 / HDD運作正常時狀態損壞時狀態重建時狀態
IR VolumeOkayDegradedDegraded
Physical deviceOptimalMissingRebuilding

步驟4.了解 RAID 運作中、損壞、重建 狀態

當 RAID 運作正常時

RAID 運作正常時 執行結果如下,可看到 IR Volume 狀態為 Okay,而 Physical device (有 2 顆) 狀態為 Optimal

 #sas2ircu 0 DISPLAY          //查詢詳細資訊
  LSI Corporation SAS2 IR Configuration Utility.
  Version 5.00.00.00 (2010.02.09)
  Copyright (c) 2009 LSI Corporation. All rights reserved.
  Read configuration has been initiated for controller 0
  ------------------------------------------------------------------------
  Controller information
  ------------------------------------------------------------------------
    Controller type                         : SAS2008
    BIOS version                            : 7.11.10.00
    Firmware version                        : 7.15.08.00
    Channel description                     : 1 Serial Attached SCSI
    Initiator ID                            : 0
    Maximum physical devices                : 39
    Concurrent commands supported           : 2607
    Slot                                    : 2
    Segment                                 : 0
    Bus                                     : 5
    Device                                  : 0
    Function                                : 0
    RAID Support                            : Yes
  ------------------------------------------------------------------------
  IR Volume information
  ------------------------------------------------------------------------
  IR volume 1
    Volume ID                               : 79
    Status of volume                        : Okay (OKY)
    RAID level                              : RAID1
    Size (in MB)                            : 476416
    Physical hard disks                     :
    PHY[0] Enclosure#/Slot#                 : 1:0
    PHY[1] Enclosure#/Slot#                 : 1:1
  ------------------------------------------------------------------------
  Physical device information
  ------------------------------------------------------------------------
  Initiator at ID #0
  Device is a Hard disk
    Enclosure #                             : 1
    Slot #                                  : 0
    State                                   : Optimal (OPT)
    Size (in MB)/(in sectors)               : 476940/976773167
    Manufacturer                            : ATA
    Model Number                            : ST500NM0011
    Firmware Revision                       : PA07
    Serial No                               : Z1M0BB5K
    Protocol                                : SATA
    Drive Type                              : SATA_HDD
  Device is a Hard disk
    Enclosure #                             : 1
    Slot #                                  : 1
    State                                   : Optimal (OPT)
    Size (in MB)/(in sectors)               : 476940/976773167
    Manufacturer                            : ATA
    Model Number                            : ST500NM0011
    Firmware Revision                       : PA07
    Serial No                               : Z1M0NEFS
    Protocol                                : SATA
    Drive Type                              : SATA_HDD
  ------------------------------------------------------------------------
  Enclosure information
  ------------------------------------------------------------------------
    Enclosure#                              : 1
    Logical ID                              : 5d4ae520:9a234600
    Numslots                                : 8
    StartSlot                               : 0
  ------------------------------------------------------------------------
  SAS2IRCU: Command DISPLAY Completed Successfully.
  SAS2IRCU: Utility Completed Successfully.

或者使用如下指令查詢概要資訊

 #sas2ircu 0 STATUS
  LSI Corporation SAS2 IR Configuration Utility.
  Version 5.00.00.00 (2010.02.09)
  Copyright (c) 2009 LSI Corporation. All rights reserved.
  Background command progress status for controller 0...
  IR Volume 1
    Volume ID                               : 79
    Current operation                       : None
    Volume status                           : Enabled
    Volume state                            : Optimal
    Physical disk I/Os                      : Not quiesced
  SAS2IRCU: Command STATUS Completed Successfully.
  SAS2IRCU: Utility Completed Successfully.

當有硬碟損壞時

一顆硬碟拔掉 (模擬硬碟損壞) 時可看到訊息如下,可看到 IR Volume 狀態為 Degraded,而 Physical device 損壞的狀態為 Missing

 #sas2ircu 0 DISPLAY
  LSI Corporation SAS2 IR Configuration Utility.
  Version 5.00.00.00 (2010.02.09)
  Copyright (c) 2009 LSI Corporation. All rights reserved.
  Read configuration has been initiated for controller 0
  ------------------------------------------------------------------------
  Controller information
  ------------------------------------------------------------------------
    Controller type                         : SAS2008
    BIOS version                            : 7.11.10.00
    Firmware version                        : 7.15.08.00
    Channel description                     : 1 Serial Attached SCSI
    Initiator ID                            : 0
    Maximum physical devices                : 39
    Concurrent commands supported           : 2607
    Slot                                    : 2
    Segment                                 : 0
    Bus                                     : 5
    Device                                  : 0
    Function                                : 0
    RAID Support                            : Yes
  ------------------------------------------------------------------------
  IR Volume information
  ------------------------------------------------------------------------
  IR volume 1
    Volume ID                               : 79
    Status of volume                        : Degraded (DGD)
    RAID level                              : RAID1
    Size (in MB)                            : 476416
    Physical hard disks                     :
    PHY[0] Enclosure#/Slot#                 : 1:1
    PHY[1] Enclosure#/Slot#                 : 0:0
  ------------------------------------------------------------------------
  Physical device information
  ------------------------------------------------------------------------
  Initiator at ID #0
  Device is a Hard disk
    Enclosure #                             : 0
    Slot #                                  : 0
    State                                   : Missing (MIS)
    Manufacturer                            : ATA
    Model Number                            : ST500NM0011
    Firmware Revision                       : PA07
    Serial No                               : Z1M0BB5K
    Drive Type                              : Undetermined
  Device is a Hard disk
    Enclosure #                             : 1
    Slot #                                  : 1
    State                                   : Optimal (OPT)
    Size (in MB)/(in sectors)               : 476940/976773167
    Manufacturer                            : ATA
    Model Number                            : ST500NM0011
    Firmware Revision                       : PA07
    Serial No                               : Z1M0NEFS
    Protocol                                : SATA
    Drive Type                              : SATA_HDD
  ------------------------------------------------------------------------
  Enclosure information
  ------------------------------------------------------------------------
    Enclosure#                              : 1
    Logical ID                              : 5d4ae520:9a234600
    Numslots                                : 8
    StartSlot                               : 0
  ------------------------------------------------------------------------
  SAS2IRCU: Command DISPLAY Completed Successfully.
  SAS2IRCU: Utility Completed Successfully.

而概要資訊則顯示如下

 #sas2ircu 0 STATUS
  LSI Corporation SAS2 IR Configuration Utility.
  Version 5.00.00.00 (2010.02.09)
  Copyright (c) 2009 LSI Corporation. All rights reserved.
  Background command progress status for controller 0...
  IR Volume 1
    Volume ID                               : 79
    Current operation                       : None
    Volume status                           : Enabled
    Volume state                            : Degraded
    Physical disk I/Os                      : Not quiesced
  SAS2IRCU: Command STATUS Completed Successfully.
  SAS2IRCU: Utility Completed Successfully.

更換硬碟進行重建時

插入新 HDD 進行 重建 (Rebuild) 時,可以看到 IR Volume 狀態仍然為 Degraded,而 Physical device 重建的狀態為 Rebuilding

 #sas2ircu 0 DISPLAY
  LSI Corporation SAS2 IR Configuration Utility.
  Version 5.00.00.00 (2010.02.09)
  Copyright (c) 2009 LSI Corporation. All rights reserved.
  Read configuration has been initiated for controller 0
  ------------------------------------------------------------------------
  Controller information
  ------------------------------------------------------------------------
    Controller type                         : SAS2008
    BIOS version                            : 7.11.10.00
    Firmware version                        : 7.15.08.00
    Channel description                     : 1 Serial Attached SCSI
    Initiator ID                            : 0
    Maximum physical devices                : 39
    Concurrent commands supported           : 2607
    Slot                                    : 2
    Segment                                 : 0
    Bus                                     : 5
    Device                                  : 0
    Function                                : 0
    RAID Support                            : Yes
  ------------------------------------------------------------------------
  IR Volume information
  ------------------------------------------------------------------------
  IR volume 1
    Volume ID                               : 79
    Status of volume                        : Degraded (DGD)
    RAID level                              : RAID1
    Size (in MB)                            : 476416
    Physical hard disks                     :
    PHY[0] Enclosure#/Slot#                 : 1:1
    PHY[1] Enclosure#/Slot#                 : 1:0
  ------------------------------------------------------------------------
  Physical device information
  ------------------------------------------------------------------------
  Initiator at ID #0
  Device is a Hard disk
    Enclosure #                             : 1
    Slot #                                  : 0
    State                                   : Rebuilding (RBLD)
    Size (in MB)/(in sectors)               : 476940/976773167
    Manufacturer                            : ATA
    Model Number                            : ST500NM0011
    Firmware Revision                       : PA07
    Serial No                               : Z1M0BB5K
    Protocol                                : SATA
    Drive Type                              : SATA_HDD
 Device is a Hard disk
    Enclosure #                             : 1
    Slot #                                  : 1
    State                                   : Optimal (OPT)
    Size (in MB)/(in sectors)               : 476940/976773167
    Manufacturer                            : ATA
    Model Number                            : ST500NM0011
    Firmware Revision                       : PA07
    Serial No                               : Z1M0NEFS
    Protocol                                : SATA
    Drive Type                              : SATA_HDD
  ------------------------------------------------------------------------
  Enclosure information
  ------------------------------------------------------------------------
    Enclosure#                              : 1
    Logical ID                              : 5d4ae520:9a234600
    Numslots                                : 8
    StartSlot                               : 0
  ------------------------------------------------------------------------
  SAS2IRCU: Command DISPLAY Completed Successfully.
  SAS2IRCU: Utility Completed Successfully.

而概要資訊則顯示如下

 #sas2ircu 0 STATUS
  LSI Corporation SAS2 IR Configuration Utility.
  Version 5.00.00.00 (2010.02.09)
  Copyright (c) 2009 LSI Corporation. All rights reserved.
  Background command progress status for controller 0...
  IR Volume 1
    Volume ID                               : 79
    Current operation                       : Synchronize
    Volume status                           : Enabled
    Volume state                            : Degraded
    Physical disk I/Os                      : Not quiesced
    Volume size (in sectors)                : 975699968
    Number of remaining sectors             : 962808320     //還剩多少資料未同步完成
    Percentage complete                     : 1.32%         //重建進度百分比
  SAS2IRCU: Command STATUS Completed Successfully.
  SAS2IRCU: Utility Completed Successfully.

參考

[LSIFusionMPTSAS2 – HWraid]

[Link to CLI for H200 monitoring (sas2ircu)]

Go To Oddmuse OrgGo To FreeBSD OrgCreative Commons 2.5 Taiwansitestates.com