From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: /dev/disk/by-id incomplete and unhelpful for SATA drives
Date: Thu, 22 Dec 2005 04:35:27 +0000 [thread overview]
Message-ID: <20051222043527.GA13175@vrfy.org> (raw)
In-Reply-To: <doc5jl$acv$1@sea.gmane.org>
On Wed, Dec 21, 2005 at 09:57:52PM +0000, Chris Paulson-Ellis wrote:
> Kay Sievers wrote:
> >On Wed, Dec 21, 2005 at 06:05:17PM +0000, Chris Paulson-Ellis wrote:
> >
> >>[snip]
> >>http://bugs.gentoo.org/show_bug.cgi?id\x109582
> >>
> >>I'm currently running udev-078 on vanilla 2.6.15-rc6
> >>[snip]
> >
> >Maxtor has a long history of doing broken serial numbers, they even
> >shipped disks with serials like: "M0000000000000000000". Regarding
> >this, the first suspect here is the disk itself.
>
> I'm not suprised. I've also found Maxtor to be a manafacturer of poor
> quality drives. I hope Seagate know what they're buying! This doesn't
> explain why one of the drives is missing altogether from by-id, while
> the other drive of the same model is present, albeit with a duff name.
Sure, both disks have the same "serial number", which will create the
same links, so the last one wins and replaces the links of the other
disk.
> >Are the examples with the sata/pata in the bug:
> > /dev/disk
> > |-- by-id
> > | |-- ata-Maxtor_4D080H4_D41S8XWE -> ../../hde
> >
> >
> > /dev/disk
> > |-- by-id
> > | |-- scsi-0ATA_Maxtor_6Y160M0_Linux_ATA-SCSI_simulator -> ../../sdb
> >
> >from the same disk model in a different box, or is it a different disk
> >model?
>
> Different models (PATA/SATA). The drive models shown in the first part
> of the by-id name are correct.
Ok.
> >What does:
> > scsi_id -g -p0x80 -x -s /block/sda
> > scsi_id -g -p0x83 -x -s /block/sda
> >print?
>
> It looks like you're on to something (though I don't understand what);
> The first command reveals the correct serial number...
These are the pages requested from the disk which contain all the
product information. It's defined by the SCSI standard.
> # scsi_id -g -p0x80 -x -s /block/sda
> ID_VENDOR=ATA
> ID_MODEL=Maxtor_6Y160M0
> ID_REVISION=YAR5
> ID_SERIAL=SATA_Maxtor_6Y160M0_Y4DCTR3E
> ID_TYPE=disk
> ID_BUS=scsi
> # scsi_id -g -p0x83 -x -s /block/sda
> ID_VENDOR=ATA
> ID_MODEL=Maxtor_6Y160M0
> ID_REVISION=YAR5
> ID_SERIAL
TA_Maxtor_6Y160M0_Linux_ATA-SCSI_simulator
> ID_TYPE=disk
> ID_BUS=scsi
>
>
> >Any chance to check the failing disk on an interface in pata mode, so
> >you get a hd* entry instead?
>
> I thought the SATA as PATA driver had been replaced by libata? It may be
> hard to change them anyway as they are in a pre-existing RAID array
> which may not appreciate the change of naming! I'll give it a go if the
> above is not sufficient.
No, the page 0x80 is fine, I hope. Try if putting:
vendor="ATA",options=-p 0x80
in:
/etc/scsi_id.config
helps.
Kay
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id\x16865&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next prev parent reply other threads:[~2005-12-22 4:35 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-21 18:05 /dev/disk/by-id incomplete and unhelpful for SATA drives Chris Paulson-Ellis
2005-12-21 18:55 ` Kay Sievers
2005-12-21 21:57 ` Chris Paulson-Ellis
2005-12-22 4:35 ` Kay Sievers [this message]
2005-12-22 11:24 ` Chris Paulson-Ellis
2005-12-22 18:35 ` Bill Nottingham
2005-12-22 21:08 ` David Liontooth
2005-12-22 22:48 ` Chris Paulson-Ellis
2005-12-23 0:12 ` Chris Paulson-Ellis
2006-01-06 1:36 ` patman
2006-01-06 2:57 ` Douglas Gilbert
2006-01-06 12:39 ` [PATCH] " Douglas Gilbert
2006-01-06 13:34 ` Chris Paulson-Ellis
2006-01-06 18:58 ` Patrick Mansfield
2006-01-06 19:46 ` Patrick Mansfield
2006-01-06 23:44 ` Douglas Gilbert
2006-03-06 20:08 ` Jeff Garzik
2006-03-07 17:05 ` Douglas Gilbert
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=20051222043527.GA13175@vrfy.org \
--to=kay.sievers@vrfy.org \
--cc=linux-hotplug@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).