5

What is a "hot spare" with regard to ZFS RAIDZ on FreeNAS?

I'm hoping that it means an extra, attached disk that can automatically take over for a failed disk in the RAID ... ?

If so, how do I set that up?

2 Answers 2

7

Yes, that is exactly what a hot spare is. The hot spare drive would occupy a drive bay and could be assigned to one or more data pools (global spare), and would automatically start a rebuilding process in the event of a failed disk.

This is in contrast to a cold spare drive, that would sit outside of the server/enclosure in order to be swapped manually when there's a failure.

3
  • What exactly do I need to do to set it up to take over?
    – d0g
    Aug 18, 2012 at 21:32
  • I used zpool add raid-5x3 spare ada0, and now zpool status lists ada0 as a spare. But is that it? No need to format, create a volume, etc?
    – d0g
    Aug 18, 2012 at 21:56
  • Nope. Not much else to do. I also saw the note about spares not working properly in FreeNAS. I would check on that just to make sure... However, spares have always functioned well in my Solaris and Nexenta ZFS environments.
    – ewwhite
    Aug 18, 2012 at 21:58
2

the FreeNAS docs are the best place to get this information. Take a look: http://doc.freenas.org/index.php/Volumes

1
  • 2
    I don't trust those docs, because so much is out of date. There are many references to obsolete errors & procedures. One thing it says there is: "Use this option with caution as there is a known bug in the current FreeBSD implementation. This will be fixed by zfsd which will be implemented once it is committed to FreeBSD." Is that still the case?
    – d0g
    Aug 18, 2012 at 21:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .