Date: Tue, 9 Mar 2010 10:18:16 +0100 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: Steve Polyack <korvus@comcast.net> Cc: freebsd-fs@freebsd.org, Michel Bouissou <michel.bouissou@bioclinica.com>, freebsd-stable <freebsd-stable@FreeBSD.org> Subject: Re: ZFS hot spares Message-ID: <20100309091815.GB3155@garage.freebsd.pl> In-Reply-To: <4B953C92.5080606@comcast.net> References: <4B953C92.5080606@comcast.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100309091815.GB3155>