LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-25-2010, 11:08 AM   #1
pgb205
Member
 
Registered: Nov 2007
Posts: 129

Rep: Reputation: 15
Question How does Linux sees hardware RAID


I'm trying to figure out if a box is running just a single sda disk
or if it actually has hardware RAID setup and Linux just sees this virtual sda disk which is actually composed of several drives hidden behind the card.

for software raid i know that doing mount command would show something like

/home mounted on /dev/mapper/ddfadasdf34234234234

and for nvidia card it would say something like
/home mounted on /dev/mapper/nvidia_34324234234

but in my case i just see /dev/sda1 mounted on /home

cat /proc/scsci/scsi however see several drives being on the system,
dmesg shows the same. But I only see this one drive when doing mount.
So basically I have conflicting information.

What would be the sure way to figure out if i do have a raid array and
if so what raid level I'm running.

thanks
 
Old 01-25-2010, 12:01 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Linux should see a hardware raid as /dev/sdx where x could be any letter.

At a guess, I am assuming the distribution you installed already had the raid drivers in it for the raid you are running and thus is able to actually query the raid card itself as to what is attached to it. I am not sure on a certain way to check what kind of raid array and raid level you are running on a hardware raid for Linux, likely you would need tools from the manufacturer, one example being MegaRAID from LSI for LSI hardware raids.

Last edited by r3sistance; 01-25-2010 at 12:07 PM. Reason: clarification.
 
Old 01-25-2010, 12:06 PM   #3
pgb205
Member
 
Registered: Nov 2007
Posts: 129

Original Poster
Rep: Reputation: 15
so then it's consistent that i see /dev/sdx in /dev with the fact that dmesg reports that i have raid.

thanks for replying

Quote:
Originally Posted by r3sistance View Post
Linux should see a hardware raid as /dev/sdx where x could be any letter.

It might be that the version of linux you installed had the Raid Drives in it and thus is able to actually query the raid card itself as to what it attached. I am not sure on a certain way to check what kind of raid array and raid level you are running on a hardware raid for Linux, likely you would need tools from the manufacturer, one example being MegaRAID from LSI for LSI hardware raids.
 
Old 01-25-2010, 03:05 PM   #4
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
It's no problem, I have had to set up several linux servers with hardware raids before, LSI and 3ware (who are now owned by LSI...). I have also seen a host/fake(adaptec) raid, software raid and on one occasion an embedded raid, hardware raid always gives just a normal device where the other three all seem to give mapped devices on top of showing individual devices in /dev/ for mapped devices and all hard drives.

I should have put earlier, the reason for this is that with hardware raid, the raid controller is on the raid card itself and all raid processing is handled by the raid controller. On the other hand for software, embedded and host/fake there is no hardware raid controller and the raid processing is passed on to the CPU. There maybe mobos with hardware raid controllers on them but I am yet to see them, if they ever come around, hardware embedded raid would be some what nice. however given that most decent hardware raid cards seem to cost as much, if not more then most mid-high end motherboards...

anyways, naturally due to the way Hardware Raid works, it's a lot more efficient as it adds no real additional load to the CPU and gives the best performance ratings. I would advise myself, to only ever use Hardware or Software raid, host/fake has caused me issues in the passed is not really any better then software raid, I generally haven't dealt with embedded raid but it's effectively the same as host/fake raid.

Last edited by r3sistance; 01-25-2010 at 03:07 PM.
 
  


Reply



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
linux sees hw raid disks in wrong order whilst grub sees correctly wilibird Linux - Hardware 12 01-12-2010 05:42 PM
LXer: Benchmarking hardware RAID vs. Linux kernel software RAID LXer Syndicated Linux News 0 07-15-2008 03:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:55 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
Open Source Consulting | Domain Registration