LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 08-30-2010, 05:47 AM   #1
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 37
How to find which raid is configured(without restart)


Is there a way to find the raid type without restarting the machine?

I m using linux operating system.
 
Old 08-30-2010, 06:04 AM   #2
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707

Rep: Reputation: 55
Code:
cat /proc/mdstat
 
Old 08-30-2010, 06:33 AM   #3
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,008

Rep: Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193
@vinaytp - is that only for soft or hard raid?
 
Old 08-30-2010, 06:35 AM   #4
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707

Rep: Reputation: 55
Quote:
Originally Posted by grail View Post
@vinaytp - is that only for soft or hard raid?
It is for Software RAID.
 
Old 08-30-2010, 06:44 AM   #5
pinga123
Member
 
Registered: Sep 2009
Posts: 684

Original Poster
Blog Entries: 2

Rep: Reputation: 37
Its a hardware raid.
 
Old 08-30-2010, 07:09 AM   #6
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,008

Rep: Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193
An important thing to have missed out of your question because I was curious as I too have a hardware driven raid and this does not work.
 
Old 08-30-2010, 07:41 AM   #7
goldenbarb
Member
 
Registered: Aug 2010
Distribution: Fedora, Centos, Debian
Posts: 49

Rep: Reputation: 7
Quote:
Originally Posted by pinga123 View Post
Its a hardware raid.
Code:
lshw | less -p RAID

lspci | less -p RAID
 
Old 08-30-2010, 07:52 AM   #8
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,008

Rep: Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193
Firstly, thanks for -p to less ... hadn't used it before

I find that both tell me about my RAID hardware (which is cool), but neither seem to tell me, unless I missed it, what type of raid I am running?

As an example, my laptop returns the following:
Code:
lshw | less -p RAID
*-storage
             description: RAID bus controller
             product: Mobile 82801 SATA RAID Controller
             vendor: Intel Corporation
             physical id: 1f.2
             bus info: pci@0000:00:1f.2
             version: 02
             width: 32 bits
             clock: 66MHz
             capabilities: storage bus_master cap_list
             configuration: driver=ahci latency=0
             resources: irq:29 ioport:6eb0(size=8) ioport:6eb8(size=4) ioport:6ec0(size=8) ioport:6ec8(size=4) ioport:6ee0(size=32) memory:fed1c800-fed1cfff

lspci | less -p RAID
00:1f.2 RAID bus controller: Intel Corporation Mobile 82801 SATA RAID Controller (rev 02)
 
Old 08-30-2010, 08:40 AM   #9
valen_tino
Member
 
Registered: Jan 2008
Posts: 105

Rep: Reputation: 28
Usually the manufacturer of the RAID controller will provide a software with which you can view/control the hardware RAID configuration. I would suggest going this route if possible.
 
Old 08-30-2010, 09:08 AM   #10
goldenbarb
Member
 
Registered: Aug 2010
Distribution: Fedora, Centos, Debian
Posts: 49

Rep: Reputation: 7
Quote:
Originally Posted by grail View Post
Firstly, thanks for -p to less ... hadn't used it before
You're welcome
Quote:
I find that both tell me about my RAID hardware (which is cool), but neither seem to tell me, unless I missed it, what type of raid I am running?
I suppose that is onboard raid controller.

What's your motherboard?
 
Old 08-30-2010, 09:39 AM   #11
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Rep: Reputation: 34
Also how can I see the faulty hardware raid through CLI

Any solution will be appreciated
Thanks
 
Old 08-30-2010, 10:44 AM   #12
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,008

Rep: Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193
My machine in this case is a Dell XPS 1730 (or M1730 depending on where you look). The raid is turned on in the BIOS and then it has interface
for setting it up when you boot. So I know I can get the details then, I was just curious (as per the question) if it were possible to tell
whilst the machine is running.

I do notice that when my machine starts I often see an error message flash up about dm-0 or dm-1 from inotify. Not really sure what they are about as they
flash very quickly and I do not seem to see it in a log anywhere
 
Old 08-31-2010, 10:20 AM   #13
goldenbarb
Member
 
Registered: Aug 2010
Distribution: Fedora, Centos, Debian
Posts: 49

Rep: Reputation: 7
I believe motherboard specification should contain all information about RAID.
 
Old 08-31-2010, 11:18 PM   #14
pinga123
Member
 
Registered: Sep 2009
Posts: 684

Original Poster
Blog Entries: 2

Rep: Reputation: 37
Quote:
Originally Posted by goldenbarb View Post
Code:
lshw | less -p RAID

lspci | less -p RAID
there is no such command as lshw in my distribution .
Distribution details.
Code:
# lsb_release -a
LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: OracleVMserver
Description:    Oracle VM server release 2.2.0
Release:        2.2.0
Codename:       n/a
I m posting the output of lspci as lspci | less -p RAID returned pattern not found.

Code:
# lspci
00:00.0 Host bridge: Intel Corporation 5520 I/O Hub to ESI Port (rev 13)
00:01.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Por
t 1 (rev 13)
00:02.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Por
t 2 (rev 13)
00:03.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Por
t 3 (rev 13)
00:07.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Por
t 7 (rev 13)
00:09.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Por
t 9 (rev 13)
00:13.0 PIC: Intel Corporation 5520/5500/X58 I/O Hub I/OxAPIC Interrupt Controll
er (rev 13)
00:14.0 PIC: Intel Corporation 5520/5500/X58 I/O Hub System Management Registers
 (rev 13)
00:14.1 PIC: Intel Corporation 5520/5500/X58 I/O Hub GPIO and Scratch Pad Regist
ers (rev 13)
00:14.2 PIC: Intel Corporation 5520/5500/X58 I/O Hub Control Status and RAS Regi
sters (rev 13)
00:14.3 PIC: Intel Corporation 5520/5500/X58 I/O Hub Throttle Registers (rev 13)
00:16.0 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Tec
hnology Device (rev 13)
00:16.1 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Tec
hnology Device (rev 13)
00:16.2 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Tec
hnology Device (rev 13)
00:16.3 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Tec
hnology Device (rev 13)
00:16.4 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Tec
hnology Device (rev 13)
00:16.5 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Tec
hnology Device (rev 13)
00:16.6 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Tec
hnology Device (rev 13)
00:16.7 System peripheral: Intel Corporation 5520/5500/X58 Chipset QuickData Tec
hnology Device (rev 13)
00:1a.0 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Contro
ller #4
00:1a.1 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Contro
ller #5
00:1a.2 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Contro
ller #6
00:1a.7 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Contr
oller #2
00:1d.0 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Contro
ller #1
00:1d.1 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Contro
ller #2
00:1d.2 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Contro
ller #3
00:1d.7 USB Controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Contr
oller #1
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90)
00:1f.0 ISA bridge: Intel Corporation 82801JIR (ICH10R) LPC Interface Controller
00:1f.2 SATA controller: Intel Corporation 82801JI (ICH10 Family) SATA AHCI Cont
roller
00:1f.3 SMBus: Intel Corporation 82801JI (ICH10 Family) SMBus Controller
01:00.0 Ethernet controller: Intel Corporation 82575EB Gigabit Network Connectio
n (rev 02)
01:00.1 Ethernet controller: Intel Corporation 82575EB Gigabit Network Connectio
n (rev 02)
07:00.0 Ethernet controller: Intel Corporation 82575EB Gigabit Network Connectio
n (rev 02)
07:00.1 Ethernet controller: Intel Corporation 82575EB Gigabit Network Connectio
n (rev 02)
0d:00.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1068E PCI-Express
 
Old 09-01-2010, 05:28 AM   #15
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,008

Rep: Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193Reputation: 3193
Quote:
lspci | less -p RAID returned pattern not found.
To me this would seem to imply there is no raid on the machine you ran it on.
 
  


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
Backup solution on RAID configured system konzo Linux - Software 1 07-26-2010 10:38 AM
Cannot find kernel version in /usr/src/linux-2.6.21.5, is it configured? evelasco Linux - Newbie 3 07-04-2010 03:52 PM
Does this server have RAID configured correctly? Nunawading Linux - Server 2 10-05-2009 02:24 AM
Atheros configured, but can't find any network beli0135 Linux - Wireless Networking 16 08-11-2008 03:54 AM
How to find out no. of HBA's configured and their info? mghiya Linux - Enterprise 2 03-07-2006 06:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:11 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