Operating System - Linux
1820635 Members
1825 Online
109626 Solutions
New Discussion юеВ

I just want to view RAID status via command line

 
W Sanders_1
Frequent Advisor

I just want to view RAID status via command line

I am looking for the simple command line tool that will display status of the Smart Array 5i on a DL380, analogous to the Dell "omreport" command. Cpqacuxe does not give me this info and I do not want to run HPSIM.

Does such a tool exist?

Thanks.
"There is no truth to the rumor that all employees are going to be required to have lobotomies ... at least at the prices we were quoted" -Dilbert
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: I just want to view RAID status via command line

Would help to know your Linux distribution.

This may help with RH

/bin/cat /proc/mdstat
mdadm -D /dev/md0


These two commands are the basis for raid reporting. If you man mdadm, you should be able to develop the commands you need.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Eric van Dijken
Trusted Contributor

Re: I just want to view RAID status via command line

Not sure if this is what you want, but the PSP (Proliant Support Pack) has a CLI tool, called "hpacucli".

# hpacucli controller all show status

Smart Array 5i in Slot 0
Controller Status: OK
Cache Status: OK
Watch, Think and Tinker.
TwoProc
Honored Contributor

Re: I just want to view RAID status via command line

Not a direct answer to your question - but interesting to note that "cat /proc/driver/cciss" will tell you what drives you've got for that controller, their raid level, and size (but not status)...
We are the people our parents warned us about --Jimmy Buffett
W Sanders_1
Frequent Advisor

Re: I just want to view RAID status via command line

Thanks Eric - that's what I'm looking for. Do you know which RPM it's in? I installed everything but the NIC drivers and agents and a file called "hpacucli" was not added to the system.

I'm running RHEL3 BTW, the /proc/mdstat device is there but that's SW RAID.
"There is no truth to the rumor that all employees are going to be required to have lobotomies ... at least at the prices we were quoted" -Dilbert
Vitaly Karasik_1
Honored Contributor

Re: I just want to view RAID status via command line

You should install hpacucli-7.20-16.linux.rpm (http://h18004.www1.hp.com/support/files/server/us/download/21618.html), after installation just run /usr/sbin/hpacucli
Eric van Dijken
Trusted Contributor

Re: I just want to view RAID status via command line

The RPM is: hpacucli-7.20-16.linux.rpm
Which comes from the Proliant Support Pack (PSP) psp-7.20.rhel3.linux.en.tar.gz.

Which can be found at:
http://h18000.www1.hp.com/products/servers/management/psp/index.html

Other usefull commands are:
"hpacucli ctrl slot=0 logicaldrive all show status" and "hpacucli ctrl slot=0 physicaldrive all show status"


Watch, Think and Tinker.
W Sanders_1
Frequent Advisor

Re: I just want to view RAID status via command line

Thanks Eric and Vitaly, the PSP 7.11, which is available elsewhere on hp.com, does not contain the hpacucli program. The 7.20 version does.

"There is no truth to the rumor that all employees are going to be required to have lobotomies ... at least at the prices we were quoted" -Dilbert