From owner-freebsd-stable@FreeBSD.ORG Fri Dec 10 21:59:28 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A726B106566B for ; Fri, 10 Dec 2010 21:59:28 +0000 (UTC) (envelope-from me@pollux.local.net) Received: from smtp4-g21.free.fr (smtp4-g21.free.fr [212.27.42.4]) by mx1.freebsd.org (Postfix) with ESMTP id 3C9238FC14 for ; Fri, 10 Dec 2010 21:59:26 +0000 (UTC) Received: from pollux.local.net (unknown [82.246.30.233]) by smtp4-g21.free.fr (Postfix) with ESMTP id 80BB24C8107; Fri, 10 Dec 2010 22:59:19 +0100 (CET) Received: by pollux.local.net (Postfix, from userid 2000) id 0363628669; Fri, 10 Dec 2010 22:59:17 +0100 (CET) Date: Fri, 10 Dec 2010 22:59:17 +0100 From: Harald Weis To: freebsd-stable@freebsd.org Message-ID: <20101210215917.GA2447@pollux.local.net> Mail-Followup-To: freebsd-stable@freebsd.org, Adrian Wontroba , Paul Mather , Jeremy Chadwick References: <20101209213556.GA3322@pollux.local.net> <20101209221108.GA13256@icarus.home.lan> <8591B0F0-82B2-433C-AE0C-0D454B12E41B@gromit.dlib.vt.edu> <20101210165044.GA31790@swelter.hanley.stade.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101210165044.GA31790@swelter.hanley.stade.co.uk> User-Agent: Mutt/1.4.2.3i Cc: Jeremy Chadwick Subject: Re: umass: AutoSense failed X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Dec 2010 21:59:28 -0000 On Fri, Dec 10, 2010 at 04:50:45PM +0000, Adrian Wontroba wrote: > On Fri, Dec 10, 2010 at 09:40:05AM -0500, Paul Mather wrote: > > (reformatted) > > I get something similar to this happening on 8.2-PRERELEASE. In my > > case, it's not during boot probing or device attachment. Instead, it > > happens occasionally after boot. The devices concerned are Maxtor > > OneTouch external USB hard drives. Every now and then, I will get > > something akin to the following crop up in the console log: > > > > (da1:umass-sim1:1:0:0): AutoSense failed > > > > I have three of these Maxtor OneTouch drives attached to the system as > > part of a ZFS pool. When I get an "AutoSense failed" message, it is > > usually accompanied by the ZFS pool being marked as faulted. > > > > The Maxtor OneTouch drives are wont to spin down and go into a > > deep sleep after a period of inactivity and appear very slow to > > wake up again when I/O occurs. I have always assumed that the > > "AutoSense failed" is associated with this---that there is some kind > > of timeout in the FreeBSD stack that this device is exceeding. In > > fact, sometimes the devices fail to probe properly during boot when > > they are asleep. > > > > This is what the OneTouch normally probes as: > > > > da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 : > > da0Fixed Direct Access SCSI-4 device : 40.000MB/s transfers : 953869MB > > da0(1953525168 512 byte sectors: 255H 63S/T 121601C) > > > > > > Cheers, > > > > Paul. > > I had this happen while backing up to two successive previously reliable > UFS USB external disk drives. > > Plugging the USB cable into a motherboard USB socket at the back of the > computer rather than a front panel socket made the problem go away. > > This might cure the OP's problem too. Okay, that's easy to test. I just did it. The AutoSense failure occurs on two desktop computers, whether motherboard or not, and on three laptops. As I said, all PC's run 8.1-RELEASE. What I do not know is whether the Sony DSC (Digital Still Camera) has worked on 8.0-RELEASE. I didn't use it for some time, so I'm afraid I never tried it on 8.x. But I am sure it worked on all earlier releases. In my original post I have forgotten to mention that I never had any problems with all sorts of thumbdrives and USB disks. Fortunately, I can read the 256MB CF memory of the DSC on an Ubuntu laptop. Could it possibly be a DSC hardware problem which is ignored by Ubuntu, but not by FreeBSD? Anyway, I should now follow Jeremy's proposal and check with a livefs CD, but this will take a bit more time... But before, I'll plug the DSC into a MacPro which I can access over the weekend and report the result here. Thanks to all of you. Harald