LinuxQuestions.org
Visit Jeremy's Blog.
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 11-18-2002, 03:28 AM   #1
drthornt
Member
 
Registered: May 2001
Location: Toronto
Distribution: RH 7.2
Posts: 33

Rep: Reputation: 15
physical scsi channel mapping to scsiX device node mapping, how to configure manually


I have and ncr scsi card and and aic78xx scsi card.
They each have drives attached to them.

when I installed the system looked like this:

scsi0 : ncr53c8xx-3.4.3b-20010512
scsi1 : Adaptec AIC7XXX Rev 6.2.8
scsi2 : Adaptec AIC7XXX Rev 6.2.8
sda
sdb

(no drives attached to ncr53x8xx)

so now I have added some drives to the config and it looks like this:

scsi0 : ncr53c8xx-3.4.3b-20010512
sda
sdb
scsi1 : Adaptec AIC7XXX Rev 6.2.8
scsi2 : Adaptec AIC7XXX Rev 6.2.8
sdc
sdd

and of course it won't boot cause the kernel thinks it's on /dev/sda.

My questions:

what's the most painless way of fixing this problem?

Why am I having so much trouble telling the kernel to make the adaptec card be scsi0 and scsi1 and the ncr card to be scsi2?

I have tried altering my modules.conf in several different ways:

there's the classic but elegant:

alias scsi_hostadapter aic7xxx

and no other scsi dirrectives..

then I tried the full-on:

alias scsi_hostadapter0 aic7xxx
alias scsi_hostadapter1 ncr53x8xx

tangents have included:

alias scsi0 aic7xxx
alias scsi1 aic7xxx
alias scsi2 ncr53x8xx

and

alias ncr53x8xx off

As an aside I have to admit that I am having trouble finding any examples of how to tell the kernel to do what you want it to do in this respect.
 
Old 11-18-2002, 06:23 AM   #2
siddiqu
Member
 
Registered: Mar 2001
Location: India
Posts: 332

Rep: Reputation: 30
Nice one...


are u updated the initrd after changing the modules.conf ??

Open the initrd image and check the sequence.


I think it will solve ur issue..







Siddiqu.T
 
Old 11-18-2002, 11:12 AM   #3
drthornt
Member
 
Registered: May 2001
Location: Toronto
Distribution: RH 7.2
Posts: 33

Original Poster
Rep: Reputation: 15
initrd is an image of a ram disk with the drivers required to boot, I know that.

However, I did not know that the initrd dictated how to use the drivers and I don't know how it does that (is there a modules.conf in it?).

How do I "Open the initrd image and check the sequence." ?

Last edited by drthornt; 11-18-2002 at 11:14 AM.
 
Old 02-09-2003, 12:50 PM   #4
drthornt
Member
 
Registered: May 2001
Location: Toronto
Distribution: RH 7.2
Posts: 33

Original Poster
Rep: Reputation: 15
This just in...

I figured out how to fix my problem

there is a file in the initrd called linuxrc that dictates which drivers should be loaded ( and in what order). It's just a shell script.
I moved the modprobe for the aic card above the modprobe dor the ncr card and voila, I get sda1 to be the drive on the AIC controller. Which is exactly what I wanted.

The tricky part was getting inside the initrd.

I "reverse engineered the creation of the initrd by examining /sbin/mkinitrd which is just a sheel script that automates the creation of an initrd.
So i had to unzip the file and mount it via loopback dev but once I had /sbin/mkinitrd in front of me it was just a step by step process.

If anyone care I can write it out.
 
  


Reply


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
Linux device mapping npuetz Linux - General 1 05-26-2005 06:55 AM
mmap64 wrong physical mapping mark02k Programming 0 10-20-2004 10:45 AM
LUN device mapping jdepaul Linux - Hardware 0 08-02-2004 03:42 PM
Securing network by manually mapping mac to ip cmisip Linux - Security 3 11-04-2003 11:26 AM
Memory mapping a device PLEASE HELP!!!! mpalmer Linux - Newbie 1 08-16-2001 04:09 PM


All times are GMT -5. The time now is 03:07 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration