Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Aug 1999 10:51:03 -0600 (MDT)
From:      "Kenneth D. Merry" <ken@kdm.org>
To:        clash@tasam.com (Joe Gleason)
Cc:        freebsd-scsi@FreeBSD.ORG
Subject:   Re: Defect Lists + camcontrol commands
Message-ID:  <199908181651.KAA20599@panzer.kdm.org>
In-Reply-To: <007401bee953$197c0c70$0286860a@tasam.com> from Joe Gleason at "Aug 18, 1999 04:23:14 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Joe Gleason wrote...
> Please excuse my ignorance on the topic of scsi stuff, but I would like to
> avoid learning the hard way. ;-)
> 
> I ran:
> camcontrol defects da0 -f phys -G
> and the result was "Got 0 defects."
> 
> Then I run:
> camcontrol defects da0 -f phys -P
> and the result was "Got 428 defects:"
> (I left out the list of defects because it is probably not important)
> 
> It is my understanding that this is completely normal, because the -G shows
> that there are no new defects and the 428 defects that are there were there
> when the drive was in the factory.  It this correct?

Right.

> Is this a normal number of defects?

It depends on how big your disk is.  The best way to find out is to take a
survey of a bunch of disks of the same size.  Find out the average number
of defects, and then you'll have a better idea of whether that's a lot of
defects.

Presumably the factory quality control processes will spit out a disk with
too many defects, although you can't presume too much there.

In general, you should be more concerned about increasing numbers of
defects on the grown defect list.

> On a slightly diffrent tangent:
> 
> I am aware that it is possible to pass commands to scsi devices for certain
> cool things.  I have a command (thanks to Kenneth Merry a while ago) that
> shows me the current drive temp from it's internal probes:
> 
> camcontrol cmd -n da -u 0 -c "4D 0 76 0 0 0 0 0 20 0" -i 32 "s9 i1"
> 
> Is there anywhere I can find a list of such command strings and what they
> do? (other than the ones in the camcontrol man page)
> Are they generally vendor specific?

The temperature byte in the log page on IBM disks is vendor specific.  I
don't know of another drive vendor that sticks readable temperature
sensors on their drives.  

Most things aren't vendor specific, though.  To figure out what you can
do with a disk, you have to look through the drive manuals or the SCSI
specs:

http://www.t10.org/

Quantum and Seagate post drive manuals on their web sites for most all of
their disks.  That's very handy thing sometimes.  IBM, on the other hand,
does not put SCSI manuals for most of their disks on their web site.  You
have to get them from a distributor, which is a pain.  They do post manuals
for their discontinued models, but that's not as useful.

Ken
-- 
Kenneth Merry
ken@kdm.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908181651.KAA20599>