All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Reed <mdr@sgi.com>
To: Andreas Moroder <andreas.moroder@sb-brixen.it>
Cc: James.Smart@Emulex.Com, linux-scsi@vger.kernel.org
Subject: Re: persistent scsi with udev
Date: Thu, 08 Feb 2007 09:08:10 -0600	[thread overview]
Message-ID: <45CB3CDA.9040704@sgi.com> (raw)
In-Reply-To: <45CB3141.2030707@emulex.com>

While you didn't explicitly mention which distro you're using, some already
have udev in their initrd.  If this applies in your case, you should be able
to change the root= parameter passed to the kernel to specify your root device
via a persistent name.  For example:

	root=/dev/disk/by-path/pci-0000:01:03.0-scsi-0:0:1:0p1

You can do the same in your /etc/fstab for the root device.

You can ALSO change the order in which modules are loaded via /etc/modprobe.conf,
or /etc/sysconfig/kernel, or something similar for your distro, so that the driver
for your root device is always loaded first.

I hope this helps.

Mike


James Smart wrote:
> You can see if a white paper we put together, which includes information
> on tapes, can help you. There's also a small section on "boot from SAN"
> which talks about configuring udev in initrd for boot devices. Although
> the content references distros, it should be applicable to the kernel
> generically.
> http://www.emulex.com/white/hba/wp_linux26udev.pdf
> 
> -- james s
> 
> 
> Andreas Moroder wrote:
>> Hello,
>>
>> we have a big problem with scsi device mapping.
>>
>> We have a LSI Megaraid controller and a qlogic HBA with a attached SAN
>>
>> When we boot the machine without the SAN then  the first disk on the
>> MEGARAID becomes \dev\sda
>>
>> When we boot with the SAN attached then the first disk in the san
>> becomes \dev\sda and the system stop.
>>
>> Is there a step by step tot availabe on how to configure the udev
>> files when two SCSI devices are installed in one machine ?
>>
>> Thanks
>> Andreas
>>
>> -
>> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2007-02-08 15:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-08 12:05 persistent scsi with udev Andreas Moroder
2007-02-08 14:18 ` James Smart
2007-02-08 15:08   ` Michael Reed [this message]
2007-02-08 15:47     ` Andreas Moroder
2007-02-08 15:48   ` Andreas Moroder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45CB3CDA.9040704@sgi.com \
    --to=mdr@sgi.com \
    --cc=James.Smart@Emulex.Com \
    --cc=andreas.moroder@sb-brixen.it \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.