3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ShinobiLayer: Bare Metal ServerでRAID構成を確認する(Adaptec編)

Last updated at Posted at 2015-04-09

#はじめに
東京DCのような新しいDCでRAIDを構成する際には、現在LSI MegaRAIDが選択されます。
http://qiita.com/testnin2/items/5a58de9e070dd146320d

他のDCでは、AdaptecのRAID CARDが選択されることがあります。ここでは、Adaptecでの構成を確認したいと思います。以下のKnowledgeLayerの記事も併せてご確認下さい。
http://knowledgelayer.softlayer.com/procedure/how-do-i-check-health-my-adaptec-raid-array-linux

1. IPMIを使ったAdaptec RAID Configuration Utilityによる確認例

  1. この画面でCtrl + Aを押す
    shinobilayer001.jpg

  2. まずはDISK数の確認
    shinobilayer002.jpg

  3. 3つDISKが存在することが分かる。
    shinobilayer003.jpg

  4. Escapeで前に戻って、RAID構成を確認する。
    shinobilayer004.jpg

  5. Dev00とDev01のRAID1構成であることが分かる。
    shinobilayer005.jpg

2. コマンドによる確認例

####1. OSコマンドでRAID Controller情報の確認する

# lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda      8:0    1  1.8T  0 disk
├─sda1   8:1    1  256M  0 part /boot
├─sda2   8:2    1    1G  0 part [SWAP]
└─sda3   8:3    1  1.8T  0 part /

# parted -l
Model: Adaptec RAID1-A (scsi)
Disk /dev/sda: 1997GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system     Flags
 1      1049kB  269MB   268MB   primary  ext2            boot
 2      269MB   1343MB  1074MB  primary  linux-swap(v1)
 3      1343MB  1997GB  1996GB  primary  ext4

# dmesg |grep -i Adaptec
Adaptec aacraid driver 1.2-0[30300]-ms
scsi 6:0:0:0: Direct-Access     Adaptec  RAID1-A          V1.0 PQ: 0 ANSI: 2
# lspci |grep -i RAID
02:00.0 RAID bus controller: Adaptec AAC-RAID (rev 09)
# lspci -v -s 02:00.0
02:00.0 RAID bus controller: Adaptec AAC-RAID (rev 09)
        Subsystem: Adaptec 5405G
        Flags: bus master, fast devsel, latency 0, IRQ 27
        Memory at d7200000 (64-bit, non-prefetchable) [size=2M]
        Expansion ROM at d7400000 [disabled] [size=512K]
        Capabilities: [98] Power Management version 2
        Capabilities: [a0] MSI: Enable- Count=1/2 Maskable- 64bit+
        Capabilities: [d0] Express Endpoint, MSI 00
        Capabilities: [90] Vital Product Data
        Capabilities: [100] Advanced Error Reporting
        Kernel driver in use: aacraid
        Kernel modules: aacraid


####2. arcconfコマンドでRAID環境概要を確認する

# /usr/Adaptec_Event_Monitor/arcconf getversion
Controllers found: 1
Controller #1
==============
Firmware           : 5.2-0 (18950)
Staged Firmware    : 5.2-0 (18950)
BIOS               : 5.2-0 (18950)
Driver             : 1.2-0 (30300)
Boot Flash         : 5.2-0 (18950)


Command completed successfully.

SoftLayerの時計マークが消えてOSログインした際には、まだ以下のようにRAIDはBuild中でした...

# /usr/Adaptec_Event_Monitor/arcconf getstatus 1
Controllers found: 1
Logical device Task:
   Logical device                 : 0
   Task ID                        : 100
   Current operation              : Build/Verify
   Status                         : In Progress
   Priority                       : High
   Percentage complete            : 59


Command completed successfully.

こちらは更に待った後の状態。無事にBuildは終了している。

# /usr/Adaptec_Event_Monitor/arcconf getstatus 1
Controllers found: 1
   Current operation              : None

Command completed successfully.

以下より、Device#0とDevice#1からRAID1が構成されていることが分かる。

# /usr/Adaptec_Event_Monitor/arcconf getconfig 1
Controllers found: 1
----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------
   Controller Status                        : Optimal
   Channel description                      : SAS/SATA
   Controller Model                         : Adaptec 5405Z
   Controller Serial Number                 : 1B3011B3440
   Controller World Wide Name               : 50000D1104243980
   Controller Alarm                         : Enabled
   Physical Slot                            : 2
   Temperature                              : 61 C/ 141 F (Normal)
   Installed memory                         : 512 MB
   Copyback                                 : Disabled
   Background consistency check             : Disabled
   Background consistency check period      : 30
   Automatic Failover                       : Enabled
   Global task priority                     : High
   Performance Mode                         : Default/Dynamic
   Host bus type                            : PCIe
   Host bus speed                           : 2500 MHz
   Host bus link width                      : 4 bit(s)/link(s)
   Stayawake period                         : Disabled
   Spinup limit internal drives             : 0
   Spinup limit external drives             : 0
   Defunct disk drive count                 : 0
   Logical devices/Failed/Degraded          : 1/0/0
   SSDs assigned to MaxCache pool           : 0
   Maximum SSDs allowed in MaxCache pool    : 8
   MaxCache Read Cache Pool Size            : 0.000 GB
   MaxCache flush and fetch rate            : 0
   MaxCache Read, Write Balance Factor      : 3,1
   NCQ status                               : Enabled
   Statistics data collection mode          : Enabled
   --------------------------------------------------------
   Controller Version Information
   --------------------------------------------------------
   BIOS                                     : 5.2-0 (18950)
   Firmware                                 : 5.2-0 (18950)
   Driver                                   : 1.2-0 (30300)
   Boot Flash                               : 5.2-0 (18950)
   --------------------------------------------------------
   Controller ZMM Information
   --------------------------------------------------------
   Status                                   : ZMM Optimal

----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
Logical device number 0
   Logical device name                      : RAID1-A
   Block Size of member drives              : 512 Bytes
   RAID level                               : 1
   Unique Identifier                        : 363F5BA9
   Status of logical device                 : Impacted
   Size                                     : 1904630 MB
   Parity space                             : 1904640 MB
   Read-cache setting                       : Enabled
   Read-cache status                        : On
   Write-cache setting                      : On when protected by battery/ZMM
   Write-cache status                       : On
   MaxCache read cache setting              : Enabled
   MaxCache read cache status               : Off
   Partitioned                              : Yes
   Protected by Hot-Spare                   : No
   Bootable                                 : Yes
   Failed stripes                           : No
   Power settings                           : Disabled
   --------------------------------------------------------
   Logical device segment information
   --------------------------------------------------------
   Segment 0                                : Present (Controller:1,Connector:0,Device:0)      WD-WMC1P0461099
   Segment 1                                : Present (Controller:1,Connector:0,Device:1)      WD-WMC1P0338863


----------------------------------------------------------------------
Physical Device information
----------------------------------------------------------------------
      Device #0
         Device is a Hard drive
         State                              : Online
         Block Size                         : 512 Bytes
         Supported                          : Yes
         Transfer Speed                     : SATA 3.0 Gb/s
         Reported Channel,Device(T:L)       : 0,0(0:0)
         Reported Location                  : Connector 0, Device 0
         Vendor                             : WDC
         Model                              : WD2000FYYZ-0
         Firmware                           : 01.01K02
         Serial number                      : WD-WMC1P0461099
         World-wide name                    : 50000D1104243992
         Reserved Size                      : 3163160 KB
         Used Size                          : 1904640 MB
         Unused Size                        : 64 KB
         Total Size                         : 1907729 MB
         Write Cache                        : Enabled (write-back)
         FRU                                : None
         S.M.A.R.T.                         : No
         S.M.A.R.T. warnings                : 0
         Power State                        : Full rpm
         Supported Power States             : Full rpm,Powered off,Reduced rpm
         SSD                                : No
         MaxCache Capable                   : No
         MaxCache Assigned                  : No
         NCQ status                         : Enabled
      Device #1
         Device is a Hard drive
         State                              : Online
         Block Size                         : 512 Bytes
         Supported                          : Yes
         Transfer Speed                     : SATA 3.0 Gb/s
         Reported Channel,Device(T:L)       : 0,1(1:0)
         Reported Location                  : Connector 0, Device 1
         Vendor                             : WDC
         Model                              : WD2000FYYZ-0
         Firmware                           : 01.01K02
         Serial number                      : WD-WMC1P0338863
         World-wide name                    : 50000D1104243990
         Reserved Size                      : 3163160 KB
         Used Size                          : 1904640 MB
         Unused Size                        : 64 KB
         Total Size                         : 1907729 MB
         Write Cache                        : Enabled (write-back)
         FRU                                : None
         S.M.A.R.T.                         : No
         S.M.A.R.T. warnings                : 0
         Power State                        : Full rpm
         Supported Power States             : Full rpm,Powered off,Reduced rpm
         SSD                                : No
         MaxCache Capable                   : No
         MaxCache Assigned                  : No
         NCQ status                         : Enabled
      Device #2
         Device is a Hard drive
         State                              : Ready
         Block Size                         : 512 Bytes
         Supported                          : Yes
         Transfer Speed                     : SATA 3.0 Gb/s
         Reported Channel,Device(T:L)       : 0,2(2:0)
         Reported Location                  : Connector 0, Device 2
         Vendor                             : WDC
         Model                              : WD2000FYYZ-0
         Firmware                           : 01.01K02
         Serial number                      : WD-WCC1P0881078
         World-wide name                    : 50000D1104243991
         Reserved Size                      : 3163160 KB
         Used Size                          : 0 MB
         Unused Size                        : 1904640 MB
         Total Size                         : 1907729 MB
         Write Cache                        : Enabled (write-back)
         FRU                                : None
         S.M.A.R.T.                         : No
         S.M.A.R.T. warnings                : 0
         Power State                        : Full rpm
         Supported Power States             : Full rpm,Powered off,Reduced rpm
         SSD                                : No
         MaxCache Capable                   : No
         MaxCache Assigned                  : No
         NCQ status                         : Enabled



Command completed successfully.
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?