ZFS hot spares

Pawel Jakub Dawidek pjd at FreeBSD.org
Tue Mar 9 09:18:24 UTC 2010

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 
> version: hot spares.   There is a PR open at 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=134491, but there hasn't been 
> any motion/thoughts posted on it since its creation almost one year ago.
> I'm aware that on Solaris, hot spare replacement is handled by a few 
> Solaris-specific daemons, zfs-retire and zfs-diagnose, which both plug 
> into the Solaris FMA (Fault Management Architecture).  Have there been 
> any thoughts on porting these over or getting something similar running 
> within FreeBSD?  With all of the recent SATA/SAS CAM hotplug work now 
> committed, it would be nice to have automatic replacement of hot spares 
> with a future hot-replacement of the failed drive.
> On the other side, I'd be interested in hearing if anyone has had 
> success in rolling their own scripted solution: i.e. something which 
> polls 'zpool status' looking for failed drives and performing hot-spare 
> 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.

Pawel Jakub Dawidek                       http://www.wheelsystems.com
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20100309/a9568819/attachment.pgp

More information about the freebsd-stable mailing list