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 03-05-2007, 11:41 AM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
Question megaraid problems


I'm working on a rather old server (2 Pentium II 350 + 256 MBs of ram). I tried to update to ubuntu dapper, but I can't make it boot because the support for megaraid is broken. I want to use another kernel that had megaraid support built in (not modular). The ones I have at hand only have it by modules (knoppix 5.0, a 2.6.20 experimental kernel from debian). I even tried downloading the source and configure it by hand, but when I try to include the megaraid support (in menuconfig) I always get a message that says that there's a dependency that is "mocular" so megaraid will be built modularized. :-S What can I do to solve it?

Right now, the box can't boot.

I tried booting with knoppix 5.0 and copying the kernel / modules. The box starts to boot, but it fails miserably because megaraid is modular. Any "express" ideas I can work on?
 
Old 03-05-2007, 12:54 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
I had the same problem here, also with a Megaraid controller, on older hardware. I wound up running mkinitrd, and putting the module in there, so it would load at boot time. Seems to work well.
 
Old 03-05-2007, 02:24 PM   #3
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
Tell me about it... cause I have never done that.

What I did to reboot it (just a while ago) was to build a kernel with megaraid legacy support included and ext3 included too. It has just booted... but I'd like to hear about other ways as well.
 
Old 03-05-2007, 02:40 PM   #4
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Is this device what is also known as FakeRaid? If so, there is hope for you with the package called DMRAID. I notice that the DMRAID pages mention Megaraid. Here is the ubuntu help page that I used to install Debian Etch to a Promise FastTrak66. If your Megaraid is the same sort of device (and I think it is) then this page should work for you, as well.

https://help.ubuntu.com/community/FakeRaidHowto
 
Old 03-05-2007, 03:19 PM   #5
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
In my case it's not a "fake" raid. It's a real one on a SCSI controller:
0000:02:09.0 SCSI storage controller: Adaptec AHA-2940U2/U2W / 7890/7891

from dmesg:
Code:
megaraid: found 0x8086:0x1960:bus 2:slot 6:func 1
scsi0:Found MegaRAID controller at 0xd080c000, IRQ:18
megaraid: [O41F:1.28] detected 1 logical drives.
megaraid: channel[0] is raid.
scsi0 : LSI Logic MegaRAID O41F 254 commands 16 targs 4 chans 7 luns
megasas: 00.00.03.05 Mon Oct 02 11:21:32 PDT 2006
scsi0: scanning scsi channel 0 for logical drives.
scsi 0:0:0:0: Direct-Access     MegaRAID LD0 RAID0  8682R O41F PQ: 0 ANSI: 2
.
.
.
SCSI device sda: 17780736 512-byte hdwr sectors (9104 MB)
sda: Write Protect is off
sda: Mode Sense: 00 00 00 00
sda: asking for cache data failed
sda: assuming drive cache: write through
SCSI device sda: 17780736 512-byte hdwr sectors (9104 MB)
sda: Write Protect is off
sda: Mode Sense: 00 00 00 00
sda: asking for cache data failed
sda: assuming drive cache: write through
 sda: sda1 sda2 sda3 sda4 < sda5 sda6 sda7 >
sd 0:0:0:0: Attached scsi disk sda
9 GBs. :S It's too small.... but gets the job done. ;-)
 
Old 03-05-2007, 03:40 PM   #6
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
So, what they've done is to add a chip to a 2940 controller then? It's very strange that a configured hardware raid wouldn't boot without loading some software first, but, ah well. Good luck!
 
Old 03-07-2007, 01:30 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by eantoranz
Tell me about it... cause I have never done that.

What I did to reboot it (just a while ago) was to build a kernel with megaraid legacy support included and ext3 included too. It has just booted... but I'd like to hear about other ways as well.
The server I did this on was SuSE. I edited the /etc/sysconfig/kernel file, and there's a line marked "INITRD_MODULES", and I added the megaraid_old, megaraid, jbd, and ext3 modules there, like this:

INITRD_MODULES="megaraid_old megaraid jbd ext3"

I ran mkinitrd, and it rebuilt my ramdisk image in /boot/initrd (symlink to my real image). Reboots worked fine from that point on. You can also run the command from the command-line, and specify the modules using the -m switch, which will accomplish the same thing.
 
  


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
LSI Megaraid SCSI problems humbletech99 Linux - Hardware 0 08-09-2006 09:52 AM
Recognising megaraid as a module tomhiggins SUSE / openSUSE 0 06-27-2006 05:12 AM
AMI/LSI MegaRAID help whysyn Linux - Hardware 2 10-17-2003 12:07 PM
RAID 1 with MegaRAID PCI0649 Tero Linux - Hardware 0 09-09-2003 03:04 AM
RH 7.1 with MegaRAID on Intel mb440lx seanpatterson Linux - Software 0 08-15-2001 02:29 PM

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

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