Bug 221943

Summary: 404.status-zfs: Never mask a unhealthy ZFS pool
Product: Base System Reporter: wout
Component: miscAssignee: freebsd-bugs mailing list <bugs>
Status: New ---    
Severity: Affects Some People Keywords: patch
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   
Description Flags
Proposed patch to fix 404.status-zfs none

Description wout 2017-08-30 16:46:05 UTC
Created attachment 185929 [details]
Proposed patch to fix 404.status-zfs

/etc/periodic/daily/404.status-zfs can detect unhealthy pools, but returns rc=1 when one is found.

This prevents sending the periodic output when you hide success and info messages:


Other disk status periodic scripts, such as 406.status-gmirror and 401.status-graid return rc=3 in this case, so the information is never masked in the periodic output.

See also bug #173614, comment #1
Comment 1 wout 2018-07-27 13:48:53 UTC
Anyone has input on this?