From owner-freebsd-fs@FreeBSD.ORG Tue Jan 3 15:52:14 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0097106566C for ; Tue, 3 Jan 2012 15:52:14 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 687238FC0C for ; Tue, 3 Jan 2012 15:52:14 +0000 (UTC) Received: by qcse13 with SMTP id e13so14368571qcs.13 for ; Tue, 03 Jan 2012 07:52:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.134.197 with SMTP id k5mr18467268qct.58.1325604449705; Tue, 03 Jan 2012 07:27:29 -0800 (PST) Received: by 10.229.217.207 with HTTP; Tue, 3 Jan 2012 07:27:29 -0800 (PST) In-Reply-To: <4F031BF7.8000900@gmail.com> References: <4F031654.1080200@icritical.com> <4F031BF7.8000900@gmail.com> Date: Tue, 3 Jan 2012 16:27:29 +0100 Message-ID: From: Olivier Smedts To: Johan Hendriks Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@freebsd.org Subject: Re: ZFS v28 on -STABLE not using hot spare X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jan 2012 15:52:14 -0000 2012/1/3 Johan Hendriks : > ZFS on FreeBSD does not have 'HOT' spares. > They are cold, and human intervention is needed to replace a disk in a po= ol. > There are some topics about it on the net. > > I opt for a warning, because a lot of users get a false security sence wh= en > using the spares. > zpool should not accept the spare without a warning to the user that it i= s a > cold spare and not a hot one. > > it looks like there is some work planned for a zfs deamon that should > overcome this problem on FreeBSD > > http://svnweb.freebsd.org/base?view=3Drevision&revision=3D222836 > > On Solaris there is also a deamon running that does the actual replace. > > It should not be to hard to make a script that checks every minute or wha= t > time interval you want and check if a pool is degraded, then check if > autoreplace is set for the pool, if so check if there is a spare, if so d= o > the actual replace. > Unfortunally i can not code :( > Maybe some one has a script lying around. ?? Or maybe some devd.conf lines to handle this automatically ? Cheers --=20 Olivier Smedts=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 _ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 ASCII ribbon campaign ( ) e-mail: olivier@gid0.org=A0 =A0 =A0 =A0 - against HTML email & vCards=A0 X www: http://www.gid0.org=A0 =A0 - against proprietary attachments / \ =A0 "Il y a seulement 10 sortes de gens dans le monde : =A0 ceux qui comprennent le binaire, =A0 et ceux qui ne le comprennent pas."