linux查看RAID信息

RAID分为软RAID和硬RAID

软RAID查看

cat /proc/mdstat

硬RAID查看

在启动画面进raid卡查看

IM(RAID1)、IME(RAID1E)、IS(RAID0)

在系统中查看

# dmesg |grep -i raid

[ 6.346983] megaraid_sas 0000:03:00.0: PCI INT A -> GSI 33 (level, low) -> IRQ 33
[ 6.346992] megaraid_sas 0000:03:00.0: setting latency timer to 64
[ 6.470380] scsi0 : LSI SAS based MegaRAID driver
[ 25.827254] md: Autodetecting RAID arrays.

proc中的RAID信息

# cat /proc/scsi/scsi

Attached devices:
Host: scsi0 Channel: 00 Id: 32 Lun: 00
Vendor: DP Model: BACKPLANE Rev: 1.07
Type: Enclosure ANSI SCSI revision: 05
Host: scsi0 Channel: 02 Id: 00 Lun: 00
Vendor: DELL Model: PERC 6/i Rev: 1.22
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi0 Channel: 02 Id: 01 Lun: 00
Vendor: DELL Model: PERC 6/i Rev: 1.22
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: TEAC Model: DVD-ROM DV-28SW Rev: R.2A
Type: CD-ROM ANSI SCSI revision: 05

查看RAID卡型号

# lspci | grep RAID
03:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 1078 (rev 04)

可以发现上面这台服务器的RAID卡是LSI的,服务器是DELL的,要查看更详尽的信息就需要针对RAID卡在系统里面装驱动了,如去LSI,或DELL网站可以找到对应的驱动。

http://www.lsi.com/support/pages/download-search.aspx

搜到megaCLI可以试一下

http://www.lsi.com/downloads/Public/Obsolete/Obsolete%20Common%20Files/1.01.39_Linux_Cli.zip

通过DELL对应驱动查看

http://www.dell.com/support/drivers/us/en/04/Product/poweredge-r710

网上还有通用工具,如megasasctl,很久没有更新了,也可以试一下

http://sourceforge.net/projects/megactl/files/

更多可参考:http://hwraid.le-vert.net/wiki/LSIMegaRAIDSAS

dmesg 显示时间

dmesg -T

发表评论

电子邮件地址不会被公开。 必填项已用*标注

This site uses Akismet to reduce spam. Learn how your comment data is processed.