All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Mansfield <patmans@us.ibm.com>
To: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: James Bottomley <James.Bottomley@SteelEye.com>,
	SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] SCSI device/adapter/bus address correlation?
Date: Fri, 3 Sep 2004 11:09:43 -0700	[thread overview]
Message-ID: <20040903180942.GA28970@beaverton.ibm.com> (raw)
In-Reply-To: <200409030844.41174.bjorn.helgaas@hp.com>

On Fri, Sep 03, 2004 at 08:44:40AM -0600, Bjorn Helgaas wrote:
> On Thursday 02 September 2004 5:36 pm, James Bottomley wrote:
> > On Thu, 2004-09-02 at 19:19, Bjorn Helgaas wrote:
> > > Not being a real SCSI person, I'm sure there's some clever way I'm
> > > supposed to figure out which disk is /dev/sda.  But sometimes it's
> > > not clear from the kernel boot messages, particularly for drivers
> > > that don't print the PCI address of the adapter.
> > 
> > You do it like this:
> > 
> > jejb@gsyprf11> ls -l /sys/block/sda/device
> > lrwxrwxrwx  1 root root 0 Aug 22 10:57 /sys/block/sda/device ->
> > ../../devices/parisc0/parisc0:0/pci0000:00/0000:00:01.1/host1/1:0:15:0/
> 
> Thanks, I knew there must be a cool way.  That doesn't help if you're
> trying to figure out the correct "root=" to boot your box, of course...

What exactly is the "root=" problem? You mean device names changing?

Also lsscsi gives simple easy to read output. 

http://www.torque.net/scsi/lsscsi.html

[elm3a211 patman]$ lsscsi
[0:0:0:0]    enclosu IBM      EXP700           9319  -       
[0:0:1:0]    disk    IBM-ESXS ST318453FC    F  B953  /dev/sda
[0:0:2:0]    disk    IBM-ESXS ST318453FC    F  B953  /dev/sdb
[0:0:3:0]    enclosu IBM      EXP700           9319  -       
[0:0:4:0]    disk    IBM-ESXS ST318453FC    F  B953  /dev/sdc
[0:0:5:0]    disk    IBM-ESXS ST318453FC    F  B953  /dev/sdd

I[elm3a211 patman]$ lsscsi -g
[0:0:0:0]    enclosu IBM      EXP700           9319  -         /dev/sg0
[0:0:1:0]    disk    IBM-ESXS ST318453FC    F  B953  /dev/sda  /dev/sg1
[0:0:2:0]    disk    IBM-ESXS ST318453FC    F  B953  /dev/sdb  /dev/sg2
[0:0:3:0]    enclosu IBM      EXP700           9319  -         /dev/sg3
[0:0:4:0]    disk    IBM-ESXS ST318453FC    F  B953  /dev/sdc  /dev/sg4
[0:0:5:0]    disk    IBM-ESXS ST318453FC    F  B953  /dev/sdd  /dev/sg5

I don't know if it works right with udev (i.e. I think it only prints
default kernel names, just those found under sysfs, so if you don't user
default kernels names with udev it might not show the correct /dev name).

-- Patrick Mansfield
-
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

  parent reply	other threads:[~2004-09-03 18:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-02 23:19 [PATCH] SCSI device/adapter/bus address correlation? Bjorn Helgaas
2004-09-02 23:36 ` James Bottomley
2004-09-02 23:58   ` Christoph Hellwig
2004-09-03 14:44   ` Bjorn Helgaas
2004-09-03 14:49     ` Olaf Hering
2004-09-03 18:09     ` Patrick Mansfield [this message]
2004-09-03 20:13       ` Bjorn Helgaas
2004-09-03 21:42         ` Olaf Hering
     [not found] <20040903204400.26701.76199.Mailman@linux.us.dell.com>
2004-09-03 20:57 ` Matt Domsch

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=20040903180942.GA28970@beaverton.ibm.com \
    --to=patmans@us.ibm.com \
    --cc=James.Bottomley@SteelEye.com \
    --cc=bjorn.helgaas@hp.com \
    --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.