1820171 Members
4019 Online
109620 Solutions
New Discussion юеВ

linux + hardware raid

 
joseph wholey
Regular Advisor

linux + hardware raid

How can I determine if my local disk is being mirrored using Hardware raid? Where would I see this?

3 REPLIES 3
Stuart Browne
Honored Contributor

Re: linux + hardware raid

That depends on the hardware RAID controller unfortunately.

Start off by giving us the output of 'dmesg', and the content of '/proc/scsi/scsi', and the device name of the disk you want to check (/dev/sd?).

From there, we'll point you in the direction you need to look next.
One long-haired git at your service...
Hemmetter
Esteemed Contributor

Re: linux + hardware raid

Hi Joseph,

We need more information:
* What kernel is running?
* What controller is used?
try:# lspci
* What driver is used?
try:# lsmod

Sometimes you can retrieve raid-state from
/proc

e.g.: for MYLEX-Controller:

# grep /proc/rd/c*/current_state

Sample output:

***** DAC960 RAID Driver Version 2.4.11 of 11 October 2001 *****
Configuring Mylex AcceleRAID 352 PCI RAID Controller
0:7 Vendor: MYLEX Model: AcceleRAID 352 Revision: 0600
1:7 Vendor: MYLEX Model: AcceleRAID 352 Revision: 0600
/dev/rd/c0d0: RAID-1, Online, 29360128 blocks
/dev/rd/c0d1: RAID-1, Online, 41697280 blocks
/dev/rd/c0d2: RAID-1, Online, 71057408 blocks

##################################################

Another way on systems with LSI Megaraid or Dell Expandable RAID:

download "megarc" from www.lsilogic.com

# megarc -ldInfo -a0 -L0


**********************************************************************
MEGARC MegaRAID Configuration Utility(LINUX)-1.11(12-07-2004)
By LSI Logic Corp.,USA
**********************************************************************
[Note: For SATA-2, 4 and 6 channel controllers, please specify
Ch=0 Id=0..15 for specifying physical drive(Ch=channel, Id=Target)]

Type ? as command line arg for help


Finding Devices On Each MegaRAID Adapter...
Scanning Ha 0, Chnl 1 Target 15

*******Information Of Logical Drive 0*******

Logical Drive : 0( Adapter: 0 ): Status: OPTIMAL
---------------------------------------------------
SpanDepth :01 RaidLevel: 1 RdAhead : No Cache: DirectIo
StripSz :064KB Stripes : 2 WrPolicy: WriteBack

Logical Drive 0 : SpanLevel_0 Disks
Chnl Target StartBlock Blocks Physical Target Status
---- ------ ---------- ------ ----------------------
0 00 0x00000000 0x017a0000 ONLINE
0 03 0x00000000 0x017a0000 ONLINE

##############################################


rgds
HGH
George Liu_4
Trusted Contributor

Re: linux + hardware raid

lspci will show if there is "RAID" controller. Combined with dmesg, you are pretty sure to confirm if Hardware raid is in place.