From owner-freebsd-questions@FreeBSD.ORG Sat Feb 18 23:05:06 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 45597106567A for ; Sat, 18 Feb 2012 23:05:06 +0000 (UTC) (envelope-from gkontos.mail@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id E9DCA8FC16 for ; Sat, 18 Feb 2012 23:05:04 +0000 (UTC) Received: by vbbfa15 with SMTP id fa15so4281038vbb.13 for ; Sat, 18 Feb 2012 15:05:04 -0800 (PST) Received-SPF: pass (google.com: domain of gkontos.mail@gmail.com designates 10.52.88.235 as permitted sender) client-ip=10.52.88.235; Authentication-Results: mr.google.com; spf=pass (google.com: domain of gkontos.mail@gmail.com designates 10.52.88.235 as permitted sender) smtp.mail=gkontos.mail@gmail.com; dkim=pass header.i=gkontos.mail@gmail.com Received: from mr.google.com ([10.52.88.235]) by 10.52.88.235 with SMTP id bj11mr6967108vdb.119.1329606304413 (num_hops = 1); Sat, 18 Feb 2012 15:05:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=HFWhU+vCV3pUn8VuucE9CDcJvqSGSuimECXUXXvJ7kU=; b=sHxkB3JjrNgZQuBy+hWD37fHq4IiwdFD+HEUkBTdIM9aR0v7jb4LqT7zwBZ1MFR4W4 /SPsSWvs39wvdwpfvoE9qPrW4cV0cdRY4cWOy4xOj5GywxGzZflAx/5H54cCfYiAx2dl yR6O+AhRWGVLAVlw0HRBGNkvSINPxlvXL1ml8= MIME-Version: 1.0 Received: by 10.52.88.235 with SMTP id bj11mr5599337vdb.119.1329606303022; Sat, 18 Feb 2012 15:05:03 -0800 (PST) Received: by 10.220.38.67 with HTTP; Sat, 18 Feb 2012 15:05:02 -0800 (PST) In-Reply-To: <4F3F7EF5.80201@acm.org> References: <4F3F7EF5.80201@acm.org> Date: Sun, 19 Feb 2012 01:05:02 +0200 Message-ID: From: George Kontostanos To: Denis Fortin Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: ZFS question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Feb 2012 23:05:06 -0000 On Sat, Feb 18, 2012 at 12:35 PM, Denis Fortin wrote: > Good morning, > > On a small system using FreeBSD 9.0-RELEASE, ZFS is reporting an issue on= a > pool, that I am not certain is really an issue, but I don't know how to > investgate... > > Here is the situation: I have created a ZFS pool on an external 1TB Maxst= or > USB drive. > > The ZFS pool sees little or no activity, I haven't started using it for r= eal > yet. > > The drive spins down frequently because of lack of activity, and takes qu= ite > a few seconds to spin up. > > Now, I frequently get errors in the 'zpool status' thus (like, a couple o= f > times per day): > >> [denis@datasink] ~> zpool status -v >> =A0 pool: maxstor >> =A0state: ONLINE >> status: One or more devices has experienced an unrecoverable error. =A0A= n >> =A0 =A0 =A0 =A0 attempt was made to correct the error. =A0Applications a= re >> unaffected. >> action: Determine if the device needs to be replaced, and clear the erro= rs >> =A0 =A0 =A0 =A0 using 'zpool clear' or replace the device with 'zpool re= place'. >> =A0 =A0see: http://www.sun.com/msg/ZFS-8000-9P >> =A0scan: scrub repaired 0 in 0h0m with 0 errors on Sat Feb 18 08:49:41 2= 012 >> config: >> >> =A0 =A0 =A0 =A0 NAME =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0STATE =A0 =A0 READ WRITE >> CKSUM >> =A0 =A0 =A0 =A0 maxstor =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 ONLINE =A0 =A0 =A0 0 =A0 =A0 0 >> =A0 =A0 0 >> =A0 =A0 =A0 =A0 =A0 gptid/64a30ca9-56ad-11e1-80c4-000024ce7c30 =A0ONLINE= =A0 =A0 =A0 1 =A0 =A0 0 >> =A0 =A0 0 >> >> errors: No known data errors >> [denis@datasink] ~> zpool iostat -v maxstor >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0capacity =A0 =A0 operations >> =A0bandwidth >> pool =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0alloc =A0 free =A0 read =A0write =A0 read >> =A0write >> -------------------------------------- =A0----- =A0----- =A0----- =A0---= -- =A0----- >> =A0----- >> maxstor =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = 1.10M =A0 928G =A0 =A0 =A00 =A0 =A0 =A00 =A0 =A0455 >> =A01.11K >> =A0 gptid/64a30ca9-56ad-11e1-80c4-000024ce7c30 =A01.10M =A0 928G =A0 =A0= =A00 =A0 =A0 =A00 >> =A0455 =A01.11K >> -------------------------------------- =A0----- =A0----- =A0----- =A0---= -- =A0----- >> =A0----- > > I know that this sounds bad for the drive, but I cannot find anywhere in = my > logs (/var/log/messages, dmesg, etc) a reference to this supposed > 'unrecoverable error' that the drive has had, and the resilvering *always= * > works. > > I am wondering whether it might not simply be a timeout issue, that is: t= he > drive is taking too long to spin up, which causes a timeout and a read er= ror > to be reported, which then disappears completely once the drive has spun = up. > > Does anybody have a suggestion about how I could go about investigating t= his > issue? =A0Shouldn't there be a log of the 'unrecoverable error' somewhere= ? > > Thank you all, > > Denis > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" The power management settings put your drive to sleep after some time of inactivity. Unfortunately the only way I have found to adjust this is from a windows pc utility. (You can download it from their website) To solve the problem you can export the pool when you don't use it and import it back again. If that is not possible you can schedule a 5 minute cron job to query the status. Regards --=20 George Kontostanos Aicom telecoms ltd http://www.aisecure.net