From owner-freebsd-scsi Wed Aug 18 9:51:57 1999 Delivered-To: freebsd-scsi@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id F153214F0E for ; Wed, 18 Aug 1999 09:51:54 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id KAA20599; Wed, 18 Aug 1999 10:51:03 -0600 (MDT) (envelope-from ken) Message-Id: <199908181651.KAA20599@panzer.kdm.org> Subject: Re: Defect Lists + camcontrol commands In-Reply-To: <007401bee953$197c0c70$0286860a@tasam.com> from Joe Gleason at "Aug 18, 1999 04:23:14 am" To: clash@tasam.com (Joe Gleason) Date: Wed, 18 Aug 1999 10:51:03 -0600 (MDT) Cc: freebsd-scsi@FreeBSD.ORG From: "Kenneth D. Merry" X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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