Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Feb 2012 01:05:02 +0200
From:      George Kontostanos <gkontos.mail@gmail.com>
To:        Denis Fortin <fortin@acm.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ZFS question
Message-ID:  <CA%2BdUSypyy-=CedMrqpS7wz4MJUAkFUg7Gexh3aYmmCoqT5fmqw@mail.gmail.com>
In-Reply-To: <4F3F7EF5.80201@acm.org>
References:  <4F3F7EF5.80201@acm.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Feb 18, 2012 at 12:35 PM, Denis Fortin <fortin@acm.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BdUSypyy-=CedMrqpS7wz4MJUAkFUg7Gexh3aYmmCoqT5fmqw>