Bug 221943 - 404.status-zfs: Never mask a unhealthy ZFS pool
Summary: 404.status-zfs: Never mask a unhealthy ZFS pool
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2017-08-30 16:46 UTC by wout
Modified: 2018-08-05 04:55 UTC (History)
0 users

See Also:


Attachments
Proposed patch to fix 404.status-zfs (327 bytes, patch)
2017-08-30 16:46 UTC, wout
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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:

daily_show_success="NO"
daily_show_info="NO"

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?