Feature #7812


ZFS handling of autopreplace

Added by Stilez y almost 7 years ago. Updated almost 5 years ago.

Web Interface
Target version:
Start date:
Due date:
% Done:


Estimated time:
Plus Target Version:
Release Notes:


This idea was posted on the forum. It doesn't look hard and if an install needs ZFS (not just reinstall + use a saved config) then such a user will probably value this as well.

The idea can be summed up as follows:

The GUI includes two controls related to ZFS: a list of disks or storage devices, and an option to enable/disable autoreplace. The list of disks gives their status (pool name, "SPARE", "FAILED", etc) with icons for actions like attach/detach next to them, for manual maintenance.

If autoreplace is enabled in the UI then autoreplace=on is set on the pool. In addition a script is periodically run with this effect:

  1. Check if the boot pool is degraded, and if so, whether a spare has been switched in and resilvering completed.
    If so.....
  2. Offline the failed disk to ensure the boot pool doesn't have issues next time the system reboots.

Original idea first post here:

Actions #1

Updated by gavin penney almost 7 years ago

ideally, there ought to be a page for managing zfs, like there is for geom mirrors(albiet pretty limited), or at least a package to add it in

such an interface could have buttons for adding mirrors, instead of using autoreplace (autoreplace on anything is often a good way for the less experienced to erase a disk they actually wanted to keep)

this could also be a prime location for adding boot environments, or at least a snapshot button

Actions #2

Updated by Jim Pingle almost 5 years ago

  • Category set to Web Interface

Also available in: Atom PDF