1. 程式人生 > 其它 >PMC相關RAID卡資訊檢視方法

PMC相關RAID卡資訊檢視方法

PMC相關RAID卡資訊檢視方法


摘要

昨天簡單整理了LSI相關裝置的資訊
今天計劃學習下PMC相關的RAID卡資訊.
也就是偶昨天storcli 檢視 controller為0 的情況.
感覺部分伺服器大部分使用LSI 小部分私用PMC的raid卡

Raid卡的簡介

跟摘要裡面說的一樣, 我這邊遇到的Raid卡主要有兩種
LSI 還有 PMC
其中LSI的歷程: 
惠普的晶片製造->安捷倫->私有化改名安華高->收購LSI->收購博通(改名博通)
PMC的歷程: 
Microchip 收購 Microsemi 
Microsemi 收購 PMC
所以現在PMC的Raid卡其實是屬於 Microchip的. 

舉個例子LSI的Raid卡一般名字是 9361-8i
如果是PMC的Raid卡可能是 PM8204 Raid卡
比如浪潮的 Inspur 8204 使用的應該就是MicroChip公司的晶片.
他們公司的工具就可以使用.

資源下載

注意 部分內容學習自: https://blog.yelvlab.cn/archives/622/
下載地址: 
https://storage.microsemi.com/en-us/support/raid/sas_raid/asr-3152-8i/

注意其他的RAID卡可能需要再選擇其他路徑 我這邊下載的主要有
注意需要選擇 Storage Manager Downloads 下載
https://storage.microsemi.com/en-us/downloads/storage_manager/sm/productid=asr-3152-8i&dn=microsemi+adaptec+smartraid+3152-8i.php

# 注意下面部分是 驅動的下載地址
https://download.adaptec.com/raid/aac/windows/smartpqi_ws08-w7_x64_v6.102.0.1026_cert.zip
https://download.adaptec.com/raid/aac/windows/smartpqi_x100_windows_drivers_x64_v1010.52.0.1012_cert.zip
https://download.adaptec.com/raid/aac/linux/smartpqi_vmware_drivers_v4252.0.103_cert.tgz
https://download.adaptec.com/raid/aac/linux/smartpqi_linux_drivers_v2.1.20-035.tgz

Linux下安裝

linux的安裝包最為龐大.選擇具體版本就可以進行安裝了.
rpm -ivh kmodxxxx
注意安裝完之後檔案路徑為:
/usr/Arcconf

arrconf的簡單使用

cd /usr/Arcconf
./arcconf list 1
# 注意控住器的資訊主要如下: 
Controllers found: 1
----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------
   Controller ID             : Status, Slot, Mode, Name, SerialNumber, WWN
----------------------------------------------------------------------
   Controller 1:             : Optimal, Slot 0, RAID (Hide RAW), INSPUR PM8204-2GB, RAN218GM2546B10, 56C92BF00771565E

Array Information
----------------------------------------------------------------------
   Array ID                  : Status (Interface, TotalSize MB, FreeSpace MB)
----------------------------------------------------------------------
   Array 0                   : Ok (SATA SSD, 21977044 MB, 1 MB)

----------------------------------------------------------------------
Logical device information
----------------------------------------------------------------------
   Logical ID                : Status (RAID, Interface, Size MB) Name
----------------------------------------------------------------------
   Logical 0                 : Optimal (10, Data, 10988328 MB) 1


檢視Raid卡的配置

 ./arcconf getconfig 1 ad

 Controllers found: 1
----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------
   Controller Status                          : Optimal
   Controller Mode                            : RAID (Hide RAW)
   Channel description                        : SCSI
   Controller Model                           : INSPUR PM8204-2GB
   Vendor ID                                  : 0x9005
   Device ID                                  : 0x028F
   Subsystem Vendor ID                        : 0x1BD4
   Subsystem Device ID                        : 0x004B
   Controller Serial Number                   : RAN218GM2546B10
   Controller World Wide Name                 : 56C92BF00771565E
   Physical Slot                              : 0
   Negotiated PCIe Data Rate                  : PCIe 3.0 x8(7880 MB/s)
   PCI Address (Domain:Bus:Device:Function)   : 0:17:0:0
   Number of Ports                            : 2
   Internal Port Count                        : 2
   External Port Count                        : 0
   Defunct disk drive count                   : 0
   NCQ status                                 : Enabled
   Queue Depth                                : Automatic
   Monitor and Performance Delay              : 60 minutes
   Elevator Sort                              : Enabled
   Degraded Mode Performance Optimization     : Disabled
   Latency                                    : Disabled
   Statistics data collection mode            : Disabled
   Post Prompt Timeout                        : 0 seconds
   Boot Controller                            : False
   Primary Boot Volume                        : None
   Secondary Boot Volume                      : None
   Driver Name                                : smartpqi
   Driver Supports SSD I/O Bypass             : Yes
   NVMe Supported                             : No
   NVMe Configuration Supported               : No
   Manufacturing Part Number                  : Not Applicable
   Manufacturing Spare Part Number            : Not Applicable
   Manufacturing Wellness Log                 : Not Applicable
   Manufacturing SKU Number                   : Not Applicable
   Manufacturing Model                        : Not Applicable
   NVRAM Checksum Status                      : Passed
   Sanitize Lock Setting                      : None
   Expander Minimum Scan Duration             : 0 seconds
   Expander Scan Time-out                     : 120 seconds
   Reboot Required Reasons                    : Not Available

關於Cache部分的處理

   Cache Properties                           
   -------------------------------------------------------------------
   Cache Status                               : Not Configured
   Cache Serial Number                        : Not Applicable
   Cache memory                               : 1808 MB
   Read Cache Percentage                      : Not Applicable
   Write Cache Percentage                     : Not Applicable
   No-Battery Write Cache                     : Disabled
   Wait for Cache Room                        : Disabled
   Write Cache Bypass Threshold Size          : 1040 KB
   
   maxCache Properties                        
   -------------------------------------------------------------------
   maxCache Version                           : 4
   maxCache RAID5 WriteBack Enabled           : Enabled

先進行簡單的寫入測試

命令:
 dd if=/dev/zero of=test bs=8k count=10000 oflag=direct
結果: 
記錄了10000+0 的讀入
記錄了10000+0 的寫出
81920000位元組(82 MB)已複製,0.738322 秒,111 MB/秒

命令:
 dd if=test of=/dev/null bs=8k count=10000 iflag=direct
結果:
記錄了10000+0 的讀入
記錄了10000+0 的寫出
81920000位元組(82 MB)已複製,1.49706 秒,54.7 MB/秒

設定一下raid的快取比率

命令報錯了. 好像還需要別的命令.
./arcconf setcache 1 cacheratio 10 90
Controllers found: 1
No Logical device(s) is configured with controller caching.

Command aborted.
學習下命令: 
./arcconf SETCACHE 1 LOGICALDRIVE 0 con
./arcconf setcache 1 cacheratio 10 90

發現命令依舊報錯:
./arcconf SETCACHE 1 LOGICALDRIVE 0 con
Controllers found: 1
The specified operation cannot be performed as SSD I/O bypass has been enabled on array 0.

Command aborted.

放棄 !-_-!