Alert for ZFS Degraded pool
-
On my VM I tried booting after removing disks in the pool from the VM. Everything works fine, and zpool status shows the pool being degraded as it should.
Can a feature be added to get a system alert (and e-mail if configured) when the zpool is degraded?
-
I too would like to see this. That or if we can get confirmation that this would appear in SNMP and preferable generate a trap.
-
It's possible but needs some work.
At the moment I don't have anything setup with ZFS and multiple disks, but I imagine it could be adapted from the gmirror code or perhaps changing the gmirror code so it checks gmirror and zfs rather than just one.
https://github.com/pfsense/pfsense/blob/master/src/etc/pfSense-rc#L399
https://github.com/pfsense/pfsense/blob/master/src/usr/local/sbin/gmirror_status_check.php