The next unpopular RAID card ioc0 and its monitoring mpt-status_linux Linux system

Source: Internet
Author: User
Tags dmesg

A new Linux server is being taken, ready to check for configuration raid.

check for a RAID card first:

Copy Code code as follows:

# Dmesg|grep-i raid
Mptsas:ioc0:attaching RAID volume, Channel 1, ID 0
Device-mapper:dm-raid45:initialized v0.2594l
Md:autodetecting RAID arrays.

Obviously there is, just can't determine the type of RAID card is ioc0 or DM-RAID45, so began Baidu. Then found a tool: Mpt-status, and in the download interface, there are a few words:

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 this related to the driver. The/proc device Is/proc/mptctl, for example.
IoC
The name of the controller within Linux. For example the the ' controller is ioc0.

The effect is that the LSI 1030 RAID card has many names, and IOC is one of them. This coincides with the results of the previous DMESG. So basically you can determine the type of RAID card is IOC0, LSI products, you can use Mpt-status to monitor it.

Mpt-status Download Address: http://sven.stormbind.net/mpt-status-rhel/

Then download the installation: RPM-IHV mpt-status-1.2.0_rc7-3.i386.rpm

Build character device: Mknod/dev/mptctl c 10 220
Load kernel module Mptctl:modprobe mptctl

To View RAID status:

Copy Code code as follows:

# 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

As you can see, this raid consists of two pieces of 465G physical hard drives, which are in good condition. But the question is, what is the raid level (0,1,5 ...)? )?

So then Baidu.

But this time there is no result.

Later, in Mpt-status's document (/USR/SHARE/DOC/MPT-STATUS-1.2.0_RC7/FAQ), I saw this sentence:

> 1) could #1, #2 and #3 where can you have the Raid level of each hard disk?

So excited, isn't that the question I'm going to ask? And look at the answer:

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

NI, the answer is the same as no answer ...

Then look down. Finally, at the end of the document, the answer was given:

> is=?
Integrated Striping (RAID 0)
> im=?
Integrated mirroring (RAID 1)

That is, the type of the Mpt-status output represents the raid level. As in the previous example:

IOC0 vol_id 0 Type IM, 2 PHY, 465 GB, State OPTIMAL, Flags ENABLED

Represents RAID1.

Finally, attach the Mpt-status rpm package.

Mpt-status Download Address: http://sven.stormbind.net/mpt-status-rhel/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.