ZFS handling of autopreplace
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:
- Check if the boot pool is degraded, and if so, whether a spare has been switched in and resilvering completed.
- Offline the failed disk to ensure the boot pool doesn't have issues next time the system reboots.
Original idea first post here: https://forum.pfsense.org/index.php?topic=126597.0
Updated by gavin penney over 5 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
Updated by Jim Pingle over 3 years ago
- Category set to Web Interface