From owner-freebsd-stable@FreeBSD.ORG Tue Jan 4 17:09:22 2011 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 636D110656C2 for ; Tue, 4 Jan 2011 17:09:22 +0000 (UTC) (envelope-from hirez@libeljournal.com) Received: from outbound-queue-1.mail.thdo.gradwell.net (outbound-queue-1.mail.thdo.gradwell.net [212.11.70.34]) by mx1.freebsd.org (Postfix) with ESMTP id 1ADE28FC1B for ; Tue, 4 Jan 2011 17:09:21 +0000 (UTC) Received: from outbound-edge-2.mail.thdo.gradwell.net (bonnie.gradwell.net [212.11.70.2]) by outbound-queue-1.mail.thdo.gradwell.net (Postfix) with ESMTP id 4EC5922127; Tue, 4 Jan 2011 16:50:22 +0000 (GMT) Received: from cpc2-chap5-0-0-cust256.aztw.cable.virginmedia.com (HELO propellor.libeljournal.com) (77.103.165.1) (smtp-auth username hirez, mechanism cram-md5) by outbound-edge-2.mail.thdo.gradwell.net (qpsmtpd/0.83) with (AES256-SHA encrypted) ESMTPSA; Tue, 04 Jan 2011 16:50:22 +0000 Received: from propellor.libeljournal.com (localhost [127.0.0.1]) by propellor.libeljournal.com (Postfix) with ESMTP id 1F0A817084; Tue, 4 Jan 2011 16:48:31 +0000 (GMT) X-Virus-Scanned: amavisd-new at libeljournal.com Received: from propellor.libeljournal.com ([127.0.0.1]) by propellor.libeljournal.com (propellor.libeljournal.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A56KaZkiXYa5; Tue, 4 Jan 2011 16:48:27 +0000 (GMT) Received: from ballard.uk.futurenet.com (propellor.libeljournal.com [172.16.0.2]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by propellor.libeljournal.com (Postfix) with ESMTPSA id 0D41217079; Tue, 4 Jan 2011 16:48:27 +0000 (GMT) Message-ID: <4D23504D.8060103@libeljournal.com> Date: Tue, 04 Jan 2011 16:52:29 +0000 From: John Hawkes-Reed User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Dan Langille References: <4D228F41.7040403@langille.org> In-Reply-To: <4D228F41.7040403@langille.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gradwell-MongoId: 4d234fce.3c9-24cb-2 X-Gradwell-Auth-Method: smtpauth X-Gradwell-Auth-Credentials: hirez Cc: freebsd-stable Subject: Re: ZFS - hot spares : automatic or not? 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: Tue, 04 Jan 2011 17:09:22 -0000 On 04/01/2011 03:08, Dan Langille wrote: > Hello folks, > > I'm trying to discover if ZFS under FreeBSD will automatically pull in a > hot spare if one is required. > > This raised the issue back in March 2010, and refers to a PR opened in > May 2009 > > * http://lists.freebsd.org/pipermail/freebsd-fs/2010-March/007943.html > * http://www.freebsd.org/cgi/query-pr.cgi?pr=134491 > > In turn, the PR refers to this March 2010 post referring to using devd > to accomplish this task. > > http://lists.freebsd.org/pipermail/freebsd-stable/2010-March/055686.html > > Does the above represent the the current state? > > I ask because I just ordered two more HDD to use as spares. Whether they > sit on the shelf or in the box is open to discussion. As far as our testing could discover, it's not automatic. I wrote some Ugly Perl that's called by devd when it spots a drive-fail event, which seemed to DTRT when simulating a failure by pulling a drive. -- JH-R