LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-25-2010, 10:57 PM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Rep: Reputation: 51
How to know Hardware RAID through commandline?


Say, I have configured Hardware RAID. Is there any way I can know that through login to linux box?
 
Old 02-25-2010, 11:10 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
HW RAID will just look like an ordinary drive device, only very large, while soft raid will have special volume labels and use mdadmin. So just look for them.

The point of HW RAID is that the controller does all the raid stuff and presents the entire usit to the OS as a single drive which the OS accesses like any other drive.

You may be thinking of fake raid - the kind you get built in to some mobos.
These will use a special driver specific to the board, so look for it and dmraid. You can also discover the mobo name and look it up online
 
Old 02-25-2010, 11:24 PM   #3
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
I dint understand your point..
So You mean We can know about Software RAID not the Hardware RAID. Correct?
 
Old 02-26-2010, 12:09 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Pretty much - though if /dev/hdf turns out to be 1024 terabytes it is kind of a hint.
Similarly, if you know that it is RAID, but you want to know which kind, the absence of software raid would also be a clue.

What are you trying to do?
 
Old 02-26-2010, 12:52 AM   #5
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Just in search of command which can give clue so that I neednot to go to Bios.
 
Old 02-26-2010, 01:01 AM   #6
mesiol
Member
 
Registered: Nov 2008
Location: Lower Saxony, Germany
Distribution: CentOS, RHEL, Solaris 10, AIX, HP-UX
Posts: 731

Rep: Reputation: 137Reputation: 137
Hye,

to get information about the physical disks in your hardware RAID, the vendor of the controller should provide you with some kind of management tool. For example Dell and HP provides such software as an Add-on for Linux. Check what hardware RAID you are using and check on vendors homepage if such a tool is available there.
 
Old 02-26-2010, 01:57 AM   #7
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Just in search of command which can give clue so that I need not to go to Bios.
Yes, but, what do you need one for?
If you installed it, then you already know.
If you are troubleshooting someone elses, then you should look at the bios anyway.
I ask because it sounds like you are trying to do something which has another method.

You have to try some sleuthing to discover the nature of installed raid (or install the vendors raid management tools ... but you need to knew it is raid before you can do that.)

dmraid(8) is useful for discovering software raid too.

dmraid -r

lists all discovered raid devices with formats and levels. HW raid won't count. If a fake raid was not set up via dmraid, then it may not show either - it may use some other software.

soft raid usually has device files with names like md0 and md1 - so

ls /dev/md*

should discover them.
Fakeraid arrays do not have systematic names. If you are lucky the volumes will have "ARRAY" in their names.

fdisk -l

will also provide clues - usually it fails to find a partition table on raid drives.

lsmod

should list any special drivers for fake raid.

Basically, for fake raid, you should go into bios: it is so much easier.

Last edited by Simon Bridge; 02-26-2010 at 02:01 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
scripting commandline args to switches - network hardware psychobyte Linux - Software 1 01-06-2010 11:18 AM
Fake raid , software, hardware raid. Are any transportable to new motherboard OuldeFauder Linux - Hardware 6 11-06-2009 08:33 PM
LXer: Benchmarking hardware RAID vs. Linux kernel software RAID LXer Syndicated Linux News 0 07-15-2008 04:50 PM
how detect raid n harddisk specs from commandline n0_0b Linux - Hardware 0 02-22-2008 12:26 PM


All times are GMT -5. The time now is 06:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration