Linux系统下一个冷门的RAID卡ioc0及其监控mpt-status

  新接手了一台Linux服务器,准备检查是否有配置RAID。参考(http://mip.0834jl.com

  先查看是否有RAID卡:

  复制代码 代码如下:

  # dmesg|grep -i raid

  mptsas: ioc0: attaching raid volume, channel 1, id 0

  device-mapper: dm-raid45: initialized v0.2594l

  md: Autodetecting RAID arrays.

  很明显是有的,只是无法确定RAID卡的类型是ioc0还是dm-raid45,于是开始百度。后来找到了这样一个工具:mpt-status,而且在下载界面里,有这样几句话:

  mpt-status: get status of LSI 1030 RAID (mptlinux, fusion, mpt, ioc) controller

  This driver has many names. As best I understand their use:

  LSI 1030

  The make and model of the controller

  mptlinux

  The name of the driver distribution. /proc/mpt/version might say, for example, mptlinux-2.05.11.03.

  Fusion

  The trade name for the chipset (?). The driver distribution, though called mptlinux, actually lives in drivers/message/fusion.

  mpt

  Message Passing Technology; the prefix used for all things that related to the driver. The /proc device is /proc/mptctl, for example.

  ioc

  The name of the controller within Linux. For example the first controller is ioc0.

  大意是说LSI 1030 RAID卡有很多个名字,ioc是其中之一。这刚好与之前dmesg的结果吻合。因此基本上可以确定RAID卡的类型是ioc0,属于LSI的产品,可以用mpt-status来对其进行监控。

  mpt-status下载地址:http://sven.stormbind.net/mpt-status-rhel/

  接着下载安装:rpm -ihv mpt-status-1.2.0_RC7-3.i386.rpm

  建立字符设备:mknod /dev/mptctl c 10 220

  加载内核模块mptctl:modprobe mptctl

  查看RAID状态:

  复制代码 代码如下:

  # mpt-status

  ioc0 vol_id 0 type IM, 2 phy, 465 GB, state OPTIMAL, flags ENABLED

  ioc0 phy 1 scsi_id 8 ATA WDC WD5002ABYS-1 3B04, 465 GB, state ONLINE, flags NONE

  ioc0 phy 0 scsi_id 1 ATA WDC WD5002ABYS-1 3B04, 465 GB, state ONLINE, flags NONE

  可以看出,该RAID由两块465G的物理硬盘组成,状态良好。可问题是,RAID级别是多少(0,1,5...)呢?

  于是接着百度。

  但这次没有结果。

  后来在mpt-status的文档(/usr/share/doc/mpt-status-1.2.0_RC7/FAQ )里看到这样一句话:

  > 1) Could you tell me from example #1, #2 and #3 where can you see the Raid Level of each hard disk ?

  好激动,这不就是我要问的问题吗?再看看答案:

  The raid level is not visible, would you like to get this information as well? Or do you want to extract the health state of each disk?

  尼玛,回答跟没回答一样...

转载于:https://www.cnblogs.com/HanaKana/p/10772298.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值