ZFS v28 on -STABLE not using hot spare

Olivier Smedts olivier at gid0.org
Tue Jan 3 15:52:14 UTC 2012


2012/1/3 Johan Hendriks <joh.hendriks at gmail.com>:
> ZFS on FreeBSD does not have 'HOT' spares.
> They are cold, and human intervention is needed to replace a disk in a pool.
> There are some topics about it on the net.
>
> I opt for a warning, because a lot of users get a false security sence when
> using the spares.
> zpool should not accept the spare without a warning to the user that it is 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=revision&revision=222836
>
> 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 what
> 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 do
> 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

-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: olivier at gid0.org        - against HTML email & vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  "Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas."


More information about the freebsd-fs mailing list