From owner-freebsd-stable@FreeBSD.ORG Tue Mar 9 09:18:24 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 1A87F106575E; Tue, 9 Mar 2010 09:18:23 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello089077043238.chello.pl [89.77.43.238]) by mx1.freebsd.org (Postfix) with ESMTP id 28EDD8FC0C; Tue, 9 Mar 2010 09:18:22 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 903B045C9F; Tue, 9 Mar 2010 10:18:20 +0100 (CET) Received: from localhost (pdawidek.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 86E5B45C9B; Tue, 9 Mar 2010 10:18:15 +0100 (CET) Date: Tue, 9 Mar 2010 10:18:16 +0100 From: Pawel Jakub Dawidek To: Steve Polyack Message-ID: <20100309091815.GB3155@garage.freebsd.pl> References: <4B953C92.5080606@comcast.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="s9fJI615cBHmzTOP" Content-Disposition: inline In-Reply-To: <4B953C92.5080606@comcast.net> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 9.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=4.5 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-fs@freebsd.org, Michel Bouissou , freebsd-stable Subject: Re: ZFS hot spares 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, 09 Mar 2010 09:18:24 -0000 --s9fJI615cBHmzTOP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 08, 2010 at 01:06:10PM -0500, Steve Polyack wrote: > ZFS in FreeBSD lacks at least one major feature from the Solaris=20 > version: hot spares. There is a PR open at=20 > http://www.freebsd.org/cgi/query-pr.cgi?pr=3D134491, but there hasn't bee= n=20 > any motion/thoughts posted on it since its creation almost one year ago. >=20 > I'm aware that on Solaris, hot spare replacement is handled by a few=20 > Solaris-specific daemons, zfs-retire and zfs-diagnose, which both plug=20 > into the Solaris FMA (Fault Management Architecture). Have there been=20 > any thoughts on porting these over or getting something similar running= =20 > within FreeBSD? With all of the recent SATA/SAS CAM hotplug work now=20 > committed, it would be nice to have automatic replacement of hot spares= =20 > with a future hot-replacement of the failed drive. >=20 > On the other side, I'd be interested in hearing if anyone has had=20 > success in rolling their own scripted solution: i.e. something which=20 > polls 'zpool status' looking for failed drives and performing hot-spare= =20 > replacements automatically. Currently FreeBSD's ZFS sends various events to devd. It should be possible to implement some scripts (or maybe reuse zfs-retire/zfs-diagnose?) to perform 'zpool replace' when disk disappears, etc. This shouldn't be very hard modulo bugs in FreeBSD/ZFS as this functionality, because unused, wasn't tested. --=20 Pawel Jakub Dawidek http://www.wheelsystems.com pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --s9fJI615cBHmzTOP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkuWElcACgkQForvXbEpPzQuMACfTjbHEMV5MsAbZmmP7rK4yw0y aIMAoO1gVToaXGpeGNsUwvS3SPC5KuzC =bzbO -----END PGP SIGNATURE----- --s9fJI615cBHmzTOP--