Symbios Logic MegaRAID SAS 2108をOSから管理

Linux

初期セットアップはBIOSからRaidコントローラの管理画面に入って、仮想ドライブを追加したりしていましたが運用するにあたって毎回OSを再起動したり、ディスクの初期化をするために再起動していたら大変なのでアプリケーションからRAIDコントローラを制御できるようにします。

ハードウェアはDell PowerEdge T320

matsu@dell ~> lspci |grep -i raid
08:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 2108 [Liberator] (rev 05)
matsu@dell ~>

以下から、1-15-05_StorCLI.zipをダウンロード。

Broadcom Inc. | Connecting Everything

解凍してインストール。

matsu@dell ~/a/storcli_all_os> sudo dpkg -i ./Ubuntu/storcli_1.15.05_all.deb
Selecting previously unselected package storcli.
(Reading database ... 85223 files and directories currently installed.)
Preparing to unpack .../Ubuntu/storcli_1.15.05_all.deb ...
Unpacking storcli (1.15.05) ...
Setting up storcli (1.15.05) ...
matsu@dell ~/a/storcli_all_os>

/optにインストールされるので実行してみる。

root@dell ~/a/storcli_all_os# /opt/MegaRAID/storcli/storcli64 show
Status Code = 0
Status = Success
Description = None

Number of Controllers = 1
Host Name = dell
Operating System  = Linux5.0.0-37-generic

System Overview :
===============

------------------------------------------------------------------------------------------
Ctl Model                        Ports PDs DGs DNOpt VDs VNOpt BBU  sPR DS  EHS ASOs Hlth
------------------------------------------------------------------------------------------
  0 RAIDCtrlSAS6G5/6512MB(D2616)     8   6   2     0   2     0 Msng On  1&2 N      3 Opt
------------------------------------------------------------------------------------------

Ctl=Controller Index|DGs=Drive groups|VDs=Virtual drives|Fld=Failed
PDs=Physical drives|DNOpt=DG NotOptimal|VNOpt=VD NotOptimal|Opt=Optimal
Msng=Missing|Dgd=Degraded|NdAtn=Need Attention|Unkwn=Unknown
sPR=Scheduled Patrol Read|DS=DimmerSwitch|EHS=Emergency Hot Spare
Y=Yes|N=No|ASOs=Advanced Software Options|BBU=Battery backup unit
Hlth=Health|Safe=Safe-mode boot


root@dell ~/a/storcli_all_os#

詳細を表示

root@dell ~/a/storcli_all_os# /opt/MegaRAID/storcli/storcli64 /c0 show
Generating detailed summary of the adapter, it may take a while to complete.

Controller = 0
Status = Success
Description = None

Product Name = RAID Ctrl SAS 6G 5/6 512MB (D2616)
Serial Number =
SAS Address =  50030057013af4c0
PCI Address = 00:08:00:00
System Time = 12/21/2019 19:55:38
Mfg. Date = 00/00/00
Controller Time = 12/21/2019 10:55:39
FW Package Build = 12.12.0-0174
FW Version = 2.130.353-2727
BIOS Version = 3.29.00_4.14.05.00_0x06000500
Driver Name = megaraid_sas
Driver Version = 07.707.50.00-rc1
Vendor Id = 0x1000
Device Id = 0x79
SubVendor Id = 0x1734
SubDevice Id = 0x1176
Host Interface = PCIE
Device Interface = SAS-6G
Bus Number = 8
Device Number = 0
Function Number = 0
Drive Groups = 2

TOPOLOGY :
========

--------------------------------------------------------------------------
DG Arr Row EID:Slot DID Type  State BT       Size PDC  PI SED DS3  FSpace
--------------------------------------------------------------------------
 0 -   -   -        -   RAID5 Optl  N  836.625 GB dsbl N  N   none N
 0 0   -   -        -   RAID5 Optl  N  836.625 GB dsbl N  N   none N
 0 0   0   252:0    6   DRIVE Onln  N  278.875 GB dsbl N  N   none -
 0 0   1   252:1    5   DRIVE Onln  N  278.875 GB dsbl N  N   none -
 0 0   2   252:2    7   DRIVE Onln  N  278.875 GB dsbl N  N   none -
 0 0   3   252:3    4   DRIVE Onln  N  278.875 GB dsbl N  N   none -
 1 -   -   -        -   RAID1 Optl  Y    1.818 TB dflt N  N   none N
 1 0   -   -        -   RAID1 Optl  Y    1.818 TB dflt N  N   none N
 1 0   0   252:4    8   DRIVE Onln  N    1.818 TB dflt N  N   none -
 1 0   1   252:5    9   DRIVE Onln  N    1.818 TB dflt N  N   none -
--------------------------------------------------------------------------

DG=Disk Group Index|Arr=Array Index|Row=Row Index|EID=Enclosure Device ID
DID=Device ID|Type=Drive Type|Onln=Online|Rbld=Rebuild|Dgrd=Degraded
Pdgd=Partially degraded|Offln=Offline|BT=Background Task Active
PDC=PD Cache|PI=Protection Info|SED=Self Encrypting Drive|Frgn=Foreign
DS3=Dimmer Switch 3|dflt=Default|Msng=Missing|FSpace=Free Space Present

Virtual Drives = 2

VD LIST :
=======

-----------------------------------------------------------
DG/VD TYPE  State Access Consist Cache sCC       Size Name
-----------------------------------------------------------
0/0   RAID5 Optl  RW     Yes     NRWTD -   836.625 GB
1/1   RAID1 Optl  RW     No      RWTD  -     1.818 TB
-----------------------------------------------------------

Cac=CacheCade|Rec=Recovery|OfLn=OffLine|Pdgd=Partially Degraded|dgrd=Degraded
Optl=Optimal|RO=Read Only|RW=Read Write|HD=Hidden|B=Blocked|Consist=Consistent|
R=Read Ahead Always|NR=No Read Ahead|WB=WriteBack|
AWB=Always WriteBack|WT=WriteThrough|C=Cached IO|D=Direct IO|sCC=Scheduled
Check Consistency

Physical Drives = 6

PD LIST :
=======

-----------------------------------------------------------------------------
EID:Slt DID State DG       Size Intf Med SED PI SeSz Model                Sp
-----------------------------------------------------------------------------
252:0     6 Onln   0 278.875 GB SAS  HDD N   N  512B HUS156030VLS600      U
252:1     5 Onln   0 278.875 GB SAS  HDD N   N  512B HUS156030VLS600      U
252:2     7 Onln   0 278.875 GB SAS  HDD N   N  512B HUS156030VLS600      U
252:3     4 Onln   0 278.875 GB SAS  HDD N   N  512B HUS156030VLS600      U
252:4     8 Onln   1   1.818 TB SATA HDD N   N  512B WDC WD20EZRX-00DC0B0 U
252:5     9 Onln   1   1.818 TB SATA HDD N   N  512B WDC WD20EARX-00PASB0 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
UGUnsp-Unsupported|UGShld-UnConfigured shielded|HSPShld-Hotspare shielded
CFShld-Configured shielded|Cpybck-CopyBack|CBShld-Copyback Shielded

現時点では、Raid5が4台。Raid1が2台ある状態です。後日、Raid1の方にもう1台ディスクをオンライン状態で追加してみようと思います。

Comments

タイトルとURLをコピーしました