LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-24-2008, 02:30 PM   #1
JMCraig
Member
 
Registered: Feb 2003
Location: Utah, USA
Distribution: Red Hat EL/CentOS, Ubuntu/Debian
Posts: 113

Rep: Reputation: 15
LSI SAS RAID driver for Debian


Hi Folks,

Anyone know where I can get a runnable version of this driver (or some more detailed instructions on building/installing it from source than what LSI provides--not enough for me to follow: too much is just assemed)?

The MB in question (with built-in RAID controller):
Supermicro H8DM3-2
Controller:
LSI SAS 1068E

LSI provides source code for their drivers (congratulations to them on that most excellent decision); the source is available here:

http://www.lsi.com/storage_home/prod...te=1&locale=EN

Anyone know of available binary or have some useful tips to go with the rather vague instructions on building the driver from source?

OK. With the help of a colleague, we built the driver and tried to install it in the kernel. Here's what /var/log/kern.log had to say about how that went:

Apr 29 06:35:27 localhost kernel: mptbase: no version for "struct_module" found: kernel tainted.
Apr 29 06:35:27 localhost kernel: Fusion MPT base driver 4.00.21.00
Apr 29 06:35:27 localhost kernel: Copyright (c) 1999-2007 LSI Corporation
Apr 29 06:40:22 localhost kernel: mptsas: Unknown symbol scsi_is_sas_phy_local
Apr 29 06:40:39 localhost kernel: mptsas: Unknown symbol scsi_is_sas_phy_local
Apr 29 06:40:53 localhost kernel: Fusion MPT SPI Host driver 4.00.21.00
Apr 29 06:41:01 localhost kernel: Fusion MPT misc device (ioctl) driver 4.00.21.00
Apr 29 06:41:01 localhost kernel: mptctl: Registered with Fusion MPT base driver
Apr 29 06:41:01 localhost kernel: mptctl: /dev/mptctl @ (major,minor=10,220)
Apr 29 06:41:03 localhost kernel: mptsas: Unknown symbol scsi_is_sas_phy_local
Apr 29 06:41:55 localhost kernel: mptctl: Deregistered /dev/mptctl @ (major,minor=10,220)

Presumably the "kernel tainted" just means that it's a non-standard module, but the scsi_is_sas_phy_local problem prevents it from loading and won't work. The kernel happily loads an earlier version of the "Fusion MPT" driver, but that one can't see the controller and

modinfo mptsas
suggest that the module supports 0050, 5504, 0056, 0058 and 0062

The controller is supposedly a model LSI calls a 1068e--but lspci reports:
02:00.0 SCSI storage controller: LSI Logic / Symbios Logic Unknown device 0059 (rev 04)

The kernel version in question is:

2.6.18-6-amd64 #1 SMP Sun Feb 10 17:50:19 UTC 2008 x86_64 GNU/Linux

Any suggestions most gratefully accepted.

John

Last edited by JMCraig; 04-29-2008 at 06:46 PM. Reason: More info/tried building driver; won't load properly
 
Old 06-30-2008, 04:14 PM   #2
JMCraig
Member
 
Registered: Feb 2003
Location: Utah, USA
Distribution: Red Hat EL/CentOS, Ubuntu/Debian
Posts: 113

Original Poster
Rep: Reputation: 15
Apparently were using source for kernel version that was ahead of the Etch kernel. Ended up messing up the install trying to load Lenny and discovering that it wouldn't handle the DB version I needed to run. Rats. Gave up on it while dealing with higher priority stuff.

Last edited by JMCraig; 06-30-2008 at 04:14 PM. Reason: More info
 
Old 07-02-2008, 12:55 PM   #3
JMCraig
Member
 
Registered: Feb 2003
Location: Utah, USA
Distribution: Red Hat EL/CentOS, Ubuntu/Debian
Posts: 113

Original Poster
Rep: Reputation: 15
Possible approach to solution

Hi Folks,

In case it may help anyone, see my post in the Red Hat distro forum from 2 Jul 2008:
http://www.linuxquestions.org/questi...operly-652651/

It's quite possible that the same fix would work with Debian--or another recent distro, for that matter.

John
 
Old 07-02-2008, 02:00 PM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
I would also have recommended updating your pci-ids database,

update-pciids

Might have detect that controller properly then, instead of showing as 'Unknown device'
 
Old 09-29-2008, 03:07 PM   #5
tiburcillo
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Rep: Reputation: 0
The update-pciids command certainly helped.
Now the card is at least recognised:

02:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 8208ELP/8208ELP (rev 08)
Subsystem: Intel Corporation Unknown device 3002
Flags: bus master, fast devsel, latency 0, IRQ 10
I/O ports at ee00 [size=256]
Memory at fd9fc000 (64-bit, non-prefetchable) [size=16K]
Memory at fd9e0000 (64-bit, non-prefetchable) [size=64K]
[virtual] Expansion ROM at fd600000 [disabled] [size=2M]
Capabilities: [50] Power Management version 2
Capabilities: [68] Express Endpoint IRQ 0
Capabilities: [98] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
Capabilities: [b0] MSI-X: Enable- Mask- TabSize=1


Still struggling with the driver though...
 
Old 09-29-2008, 03:40 PM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Hmm looks like that card uses the megasr driver rather than the mptsas which I thought it would use..

Ahh it's a software based controller not a hardware based controller.. That's why it uses a diffrent driver..

Driver How-to: http://gentoo-wiki.com/HARDWARE_LSI_...ID5_Controller

Driver Source: http://www.lsi.com/support/downloads.../linux/RH5.zip
 
Old 09-30-2008, 02:09 PM   #7
tiburcillo
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Rep: Reputation: 0
Ok I've installed SLES10 SP1 (supported OS according to LSI site). I installed the driver rpm package but when i do fdisk -l, i still can't see the drives attached to the controller.
I just want to use it as sata controller, no raid. Anything else I need to take care of?
 
Old 09-30-2008, 03:29 PM   #8
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
you installed it, but is it loaded ?

lsmod

if it's not loaded did you try loading it ?

modprobe megasr

did you read the installation instruction PDF from the LSI website ?
 
Old 10-01-2008, 04:27 AM   #9
tiburcillo
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Rep: Reputation: 0
I finally managed to load it, but only by reinstalling SLES 10 SP1. At the the start of the installation you have to press F5 and load the closed source driver from USB.
Then the controller is recognized. Performance however is very poor.
I guess next time i'll buy 3Ware or something to avoid all this misery. :/
 
Old 10-01-2008, 07:20 AM   #10
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
LSI makes great products, but you have a fakeraid controller, where the CPU is doing part of the work of the RAID. It's not so much the manufacturer of the card, but the Specs of the card, and the level of RAID you are trying to run. You will pay a premium for a true hardware RAID controller ($225-300 easy) however, but I think it's worth it if you are serious.
 
Old 12-19-2011, 03:43 PM   #11
JMCraig
Member
 
Registered: Feb 2003
Location: Utah, USA
Distribution: Red Hat EL/CentOS, Ubuntu/Debian
Posts: 113

Original Poster
Rep: Reputation: 15
Current State of Affairs w/ LSI 1608-based controllers

In case anyone comes looking for info on these LSI 1608 or 1608e RAID controllers (either on-the-MB or on a card), the current mptsas drivers available in recent Linux distros still have not worked for me (but I'm dealing with an on-the-MB controller and the ones on actual cards may behave differently, for all I know).

With CentOS 5.5 or Ubuntu 10.04 LTS,
lspci shows the controller on the board as:

02:00.0 SCSI storage controller: LSI Logic / Symbios Logic MegaRAID SAS 8208ELP

The Fusion MPT drivers supplied with either of these OS's have not worked. The LSI MegaRAID driver (megasr) loads up as a driver (using the linux dd style pre-install driver load option for CentOS). There does not seem to be a driver that'll work with Ubuntu 10.04 LTS (or any distros other than RH or Suse or their derivatives--the RH drives work fine with CentOS, unsurprisingly).

The best site for downloading the drivers and other tools I've found is:

kb.lsi.com/Download15865.apx

There's support for RH/CentOS versions up through 5.4 and Suse up through 11.

There are MPT drivers available for download on this page, but they are only for the earliest versions of the two distros: e.g. RH 5.0 or 5.1. I was not able to see if these worked; too much trouble trying to deal with the driver files (.dd of a floppy image, but the box has no floppy drive and I messed around with it for a while trying to get the files to work from a USB drive and had to quit to work on more pressing problems).

There's also firmware updates for the controller, but applying these did not make the distro-supplied mptsas driver functional (in my fairly cursory testing).

So, if you want this to work, as far as I've been able to determine, you'll need the MegaRAID (megasr) driver which is available for some versions/distros at the above link. Even though the info on the 1608 controller chip says it works with Fusion MPT drivers, that has not been my experience. The source for the megasr module is not available, as of this writing, so you can't compile it for newer versions or other distros.
 
  


Reply

Tags
1608, lsi, megaraid, mpt, raid


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
RHEL 5 LSI megasr SAS RAID does not find VolGroup after install thetawave84 Linux - Newbie 1 01-17-2008 03:12 AM
LSI Logic SAS based MegaRAID. HDD not seing. azastro Fedora - Installation 0 12-27-2007 03:31 PM
LSI 1068 SATA/SAS controller on DELL 690 hashbrown Mandriva 2 08-31-2006 08:21 PM
Loading LSI/Dell PERC SAS driver under Openfiler (CentOS) MitchD Linux - Hardware 0 07-30-2006 06:35 AM
Symbios/Lsi scsi controller driver, not a raid acummings Linux - Hardware 1 11-18-2004 11:47 PM

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

All times are GMT -5. The time now is 07:29 AM.

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