Sharing

2013年8月14日 星期三

LSISAS1068E SAS Controller

今天在管理的機器有 HDD 出了問題,所以 HWRAID 就自動重 build. 因為好奇所以想進去看了一下RAID card 型號,結果發現是不認識的東西,用 megacli 也不能操作. 查了一下, 發現是很久以前的 LSI SAS CHIP 是 SATA 


$ lspci | grep LSI
01:00.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1068E PCI-Express Fusion-MPT SAS (rev 08)


http://www.lsi.com/products/storagecomponents/Pages/LSISAS1068E.aspx
* 8-port SAS/SATA Controller
* Supports 1.5 and 3Gb/s SAS and SATA data transfer rates per port, full duplex
* Integrated RAID support (Only RAID0 and RAID1)


http://hwraid.le-vert.net/wiki/LSIFusionMPT
http://docs.oracle.com/cd/E19121-01/sf.x4100/819-1157-23/F_BIOS_RAID.html#0_77640
第一個操作的工具可以快速的看到目前 RAID 的狀態, 可以 state 是 "DEGRADED", 正常會是 "OPTIMAL"

$ mpt-status 
ioc0 vol_id 0 type IME, 8 phy, 1862 GB, state DEGRADED, flags ENABLED RESYNC_IN_PROGRESS
ioc0 phy 9 scsi_id 9 ATA      ST9500530NS      DA03, 465 GB, state ONLINE, flags NONE
ioc0 phy 8 scsi_id 1 ATA      ST9500530NS      DA03, 465 GB, state ONLINE, flags NONE
ioc0 phy 7 scsi_id 2 ATA      ST9500530NS      DA03, 465 GB, state ONLINE, flags NONE
ioc0 phy 0 scsi_id 8 ATA      ST9500530NS      DA03, 465 GB, state ONLINE, flags OUT_OF_SYNC
ioc0 phy 5 scsi_id 3 ATA      ST9500530NS      DA03, 465 GB, state ONLINE, flags NONE
ioc0 phy 4 scsi_id 5 ATA      ST9500530NS      DA03, 465 GB, state ONLINE, flags NONE
ioc0 phy 3 scsi_id 4 ATA      ST9500530NS      DA03, 465 GB, state ONLINE, flags NONE
ioc0 phy 2 scsi_id 6 ATA      ST9500530NS      DA03, 465 GB, state ONLINE, flags NONE

如果要看更多的資訊,可以用 lsiutil, 操作上是採用 interactive mode.

$ lsiutil

LSI Logic MPT Configuration Utility, Version 1.62, January 14, 2009

1 MPT Port found

     Port Name         Chip Vendor/Type/Rev    MPT Rev  Firmware Rev  IOC
 1.  /proc/mpt/ioc0    LSI Logic SAS1068E B3     105      011a0000     0

Select a device:  [1-1 or 0 to quit] 1

 1.  Identify firmware, BIOS, and/or FCode
 2.  Download firmware (update the FLASH)
 4.  Download/erase BIOS and/or FCode (update the FLASH)
 8.  Scan for devices
10.  Change IOC settings (interrupt coalescing)
13.  Change SAS IO Unit settings
16.  Display attached devices
20.  Diagnostics
21.  RAID actions
22.  Reset bus
23.  Reset target
42.  Display operating system names for devices
45.  Concatenate SAS firmware and NVDATA files
59.  Dump PCI config space
60.  Show non-default settings
61.  Restore default settings
66.  Show SAS discovery errors
69.  Show board manufacturing information
97.  Reset SAS link, HARD RESET
98.  Reset SAS link
99.  Reset port
 e   Enable expert mode in menus
 p   Enable paged mode
 w   Enable logging

Main menu, select an option:  [1-99 or e/p/w or 0 to quit] 21

 1.  Show volumes
 2.  Show physical disks
 3.  Get volume state
 4.  Wait for volume resync to complete
23.  Replace physical disk
26.  Disable drive firmware update mode
27.  Enable drive firmware update mode
30.  Create volume
31.  Delete volume
32.  Change volume settings
33.  Change volume name
50.  Create hot spare
51.  Delete hot spare
99.  Reset port
 e   Enable expert mode in menus
 p   Enable paged mode
 w   Enable logging

RAID actions menu, select an option:  [1-99 or e/p/w or 0 to quit] 3

Volume 0 is Bus 0 Target 0, Type IME (Integrated Mirroring Extended)

Volume 0 State:  degraded, enabled, resync in progress
Resync Progress:  total blocks 976562176, blocks remaining 55607808, 5%


最後可以看到正在做 Sync, 還剩 5% 就做完了

至於下一代的產品可以看這個連結
http://hwraid.le-vert.net/wiki/LSIFusionMPTSAS2
這邊可以看到有那些廠商在用這些 SAS CHIP
https://wiki.debian.org/LinuxRaidForAdmins

沒有留言: