From owner-freebsd-scsi Sun Oct 12 01:39:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA08846 for freebsd-scsi-outgoing; Sun, 12 Oct 1997 01:39:03 -0700 (PDT) (envelope-from owner-freebsd-scsi) Received: from hydrogen.nike.efn.org (resnet.uoregon.edu [128.223.170.28]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id BAA08841 for ; Sun, 12 Oct 1997 01:39:00 -0700 (PDT) (envelope-from gurney_j@efn.org) Received: (from jmg@localhost) by hydrogen.nike.efn.org (8.8.7/8.8.7) id BAA21725; Sun, 12 Oct 1997 01:36:18 -0700 (PDT) Message-ID: <19971012013618.36452@hydrogen.nike.efn.org> Date: Sun, 12 Oct 1997 01:36:18 -0700 From: John-Mark Gurney To: Joerg Wunsch Cc: scsi@FreeBSD.ORG Subject: Re: Trouble with dump on ncr References: <19971011091605.32335@mi.uni-koeln.de> <199710120615.AAA18578@pluto.plutotech.com> <19971012094515.RT52487@uriah.heep.sax.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 In-Reply-To: <19971012094515.RT52487@uriah.heep.sax.de>; from J Wunsch on Sun, Oct 12, 1997 at 09:45:15AM +0200 Reply-To: John-Mark Gurney Organization: Cu Networking X-Operating-System: FreeBSD 2.2.1-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ Sender: owner-freebsd-scsi@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk J Wunsch scribbled this message on Oct 12: > As Kenneth Merry wrote: > > > FWIW, that's what the new CAM SCSI code does. The da (i.e. sd) > > driver does a read capacity upon open. If the read capacity returns with > > 0x04, 0x02 ("Logical unit not ready, initializing cmd. required"), the error > > recovery code issues a start unit command to the drive. > > Hmm, why doing it at open time? Quite a number of people have been > asking for a disk auto-spindown in the past (for filesystems that are > seldom used). I'm using a crock of an auto-spindown in the od driver > (the device is spun down at close time, and spun up at open time), but > i think the more generic solution would be to trigger the spindown by > a period of disc inactivity. Then, simply try the next command, and > if the drive is not ready, attempt to start it, and retry. actually.. I'm about to get the CAM scsi code up and running on a test box of mine (ahc2842 w/ an IBM WDS-3200 !J S560)... and would VERY much like to have this hd auto spin down... right now it's open air and is quite loud... hmm... would a simple timeout that is rescheduled upon no remaining commands outstanding for the drive work? (I haven't looked at the CAM scsi code yet, so I don't know how this would work exactly) -- John-Mark Gurney Modem/FAX: +1 541 683 6954 Cu Networking Live in Peace, destroy Micro$oft, support free software, run FreeBSD