From: Patrick Caulfield <pcaulfie@redhat.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: [PATCH] [RFC] persistent readable names
Date: Thu, 06 Oct 2005 08:07:36 +0100 [thread overview]
Message-ID: <4344CD38.2030004@redhat.com> (raw)
In-Reply-To: <20051005223824.GA27219@us.ibm.com>
Patrick Mansfield wrote:
> Here is some /dev, lsscsi and scsi_id output on a SLES9 system (rpm
> udev-021-36.55). by-path is basically pci and scsi bus_id's; by-id is
> basically scsi_id plus partition output.
>
> [Uh oh, the by-path output looks broken! It should be scsi-1:0:0:0 pointing to sdc not scsi-0:0:0:0, but this shows the /dev structure.]
>
> I hope this clears things up:
>
> elm3a47:~ # ls -l /dev/disk/by-path | grep sdc
> lrwxrwxrwx 1 root root 9 Oct 5 08:18 pci-0000:01:01.1-scsi-0:0:0:0 -> ../../sdc
> lrwxrwxrwx 1 root root 10 Oct 5 08:18 pci-0000:01:01.1-scsi-0:0:0:0p1 -> ../../sdc1
> lrwxrwxrwx 1 root root 10 Oct 5 08:18 pci-0000:01:01.1-scsi-0:0:0:0p2 -> ../../sdc2
> lrwxrwxrwx 1 root root 10 Oct 5 08:18 pci-0000:01:01.1-scsi-0:0:0:0p3 -> ../../sdc3
>
> elm3a47:~ # ls -l /dev/disk/by-id | grep sdc
> lrwxrwxrwx 1 root root 9 Oct 5 08:18 320000004cf311121 -> ../../sdc
> lrwxrwxrwx 1 root root 10 Oct 5 08:18 320000004cf311121p1 -> ../../sdc1
> lrwxrwxrwx 1 root root 10 Oct 5 08:18 320000004cf311121p2 -> ../../sdc2
> lrwxrwxrwx 1 root root 10 Oct 5 08:18 320000004cf311121p3 -> ../../sdc3
>
> elm3a47:~ # lsscsi | grep sdc
> [1:0:0:0] disk IBM-ESXS ST318453FC F B953 /dev/sdc
>
> elm3a47:~ # ls -l /sys/block/sdc/device
> lrwxrwxrwx 1 root root 0 Oct 5 08:18 /sys/block/sdc/device -> ../../devices/pci0000:00/0000:00:1f.0/0000:01:01.1/host1/1:0:0:0
>
> elm3a47:~ # scsi_id -g -s /block/sdc
> 320000004cf311121
>
Those are the names I'm trying to free people from.
OK, multipath1 - multipath5000 aren't exactly friendly (but how else are you
going to name 5000 disks - there aren't that many Simpsons characters!) but
they're are a /lot/ easier to deal with than those I can see there.
--
patrick
next prev parent reply other threads:[~2005-10-06 7:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-05 14:14 [PATCH] [RFC] persistent readable names Patrick Caulfield
2005-10-05 15:09 ` Christophe Varoqui
2005-10-05 18:07 ` Patrick Mansfield
2005-10-05 21:27 ` Christophe Varoqui
2005-10-05 22:38 ` Patrick Mansfield
2005-10-06 7:07 ` Patrick Caulfield [this message]
2005-10-06 15:54 ` Patrick Mansfield
2005-10-06 7:04 ` Patrick Caulfield
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=4344CD38.2030004@redhat.com \
--to=pcaulfie@redhat.com \
--cc=dm-devel@redhat.com \
/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.