Hardware Raid

Posted on 2009-12-23
Last Modified: 2012-05-08
We have configured Raid 1 with two hard disks. We can check the hardware raid status by raidctl -l devicename in solaris .How to check the hardware RAID status in redhat linux?
Question by:linuxraja
    LVL 68

    Expert Comment

    You need a software provided by the manufacturer of your RAID controller.

    Author Comment

    Its Sun x4200 server
    LVL 76

    Expert Comment

    Check on Sun's site for software for the linux flavor you use.
    The below article seems to ask this question, but requires that you have access to the resource

    You might be able to use ipmitool to query the status of the RAID.
    LVL 46

    Expert Comment

    I have one of my old Redhat boxes set up for software RAID1, using 2 partitions (one for /, the other for /boot).  To check, just enter cat /proc/mdstat
    the [UU] means everything good and the 2 disks are synced up.

    [root@boss root]# cat /proc/mdstat
    Personalities : [raid1]
    read_ahead 1024 sectors
    md0 : active raid1 sdb1[1] sda1[0]
          48064 blocks [2/2] [UU]
    md1 : active raid1 sdb2[1] sda2[0]
          35222400 blocks [2/2] [UU]
    unused devices: <none>
    [root@boss root]#


    LVL 6

    Expert Comment

    Check out "mdadm"

    It is front-end management utility for the raid device.
    LVL 76

    Expert Comment

    mdadm uses software RAID as you pointed out, the asker uses hardware RAID and needs the tool/utility that can talk to the LSI SAS RAID controller to determine the condition of the RAID.
    LVL 46

    Accepted Solution

    Sorry, was first to respond with checking status of RAID1 before original poster entered anything about a RAID controller..

    In case of the LSI RAID, you can get health and configuration via a commercial product, smartmon-ux, here is output for what it looks like on LSI RAID in LINUX:  
    Full link to the LSI RAID reporting function is below, sample output follows:

    [root@w13 /scratch/common]# ./smartmon-ux -zd
    SMARTMon-UX [Release 1.38, Build 30-OCT-2008] - Copyright 2001-2008 SANtools(R), Inc.


    Discovered LSILOGIC Logical Volume S/N "" on RAID (Not Enabling SMART) (69618 MB)
    1 volume is active, 2 physical disks are
    Volume 0 is Bus 0 Target 4, Type IM (Integrated Mirroring)
    Volume Name:
    Volume WWID:  0a0cade5ed79d4ab
    Volume State:  degraded, enabled
    Volume Settings:  write caching disabled, auto configure
    Volume draws from Hot Spare Pools:  0
    Volume Size 69618 MB, Stripe Size 0 KB, 2 Members
    Volume Device:
     Member 1 is PhysDisk 0 at (Bus 0 Target 5)

    Discovered HP DF072BAFDT S/N "BJL4P86004TB0862" at Bus 0 Target 5 (70007 MB)  state=online PhysDisk=0
    Discovered HP DF072BABUD S/N "J2YD2PCA" at Bus 0 Target 8 (70007 MB)  state=missing, out of sync PhysDisk=1

    Volume 0 State:  degraded, enabled
    Volume 1 State:  optimal, disabled

    Note you can get health through the BIOS, but that doesn't do you much good if you want it online.  the smartmon-ux program may be overkill, but it will do the job and runs from the O/S.
    LVL 6

    Expert Comment

    There is an LSI controller utility available for download on their site. I've used it on FreeBSD, but not in any Linux. I do recall seeing the utility posted though for Linux.

    Author Closing Comment


    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now