zfs utils do not recommend or provide anything to discover errors

Bug #1547549 reported by Chad Miller on 2016-02-19
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
zfs-linux (Ubuntu)
High
Colin Ian King
Nominated for Wily by Colin Ian King
Nominated for Xenial by Colin Ian King

Bug Description

ZFS errors can go undetected by normally diligent users because it's new and werid and not part of any scheme we have for reporting errors like we do with SMART. When a disk is taken out of a ZFS pool for ZFS-internal criteria, nothing in the normal utilities that are installed will let a user know.

The ZFS event daemon will poll ZFS state and report errors to the root email address. (It's not as good as reporting errors into the GUI, but that's a feature and bug report for the Z-E-D. At least the admin user will get local email in the case of problems.)

The zfsutils-linux should Recommend zfs-zed.

Changed in zfs-linux (Ubuntu):
status: New → In Progress
importance: Undecided → High
Colin Ian King (colin-king) wrote :

Hi Chad, thanks for spotting that. I've uploaded the fix into ppa:colin-king/zfs-0.6.5.4-alpha - it's currently building but should be ready in a short while to test.

If you can verify it does as expected, then I can get it uploaded into xenial

Thanks

Changed in zfs-linux (Ubuntu):
status: In Progress → Incomplete
Richard Laager (rlaager) wrote :

Related to this, zfs-zed should email root by default, and I'm thinking it does not do so currently.

Richard Laager (rlaager) wrote :

I had been working on addressing this. I finally made time to finish my changes, which have been rebased on top of your (colin-king's) PPA. With these changes, zed works out-of-the-box, has all non-debugging scripts enabled, and emails root by default (just like mdadm has for years).

The upstream scripts expect zed-functions.sh in /etc/zfs/zed.d. I've installed to to /usr/lib and symlinked it instead. I don't think we really want that to be a conffile edited by users.

The attachment "zfs-linux.zed.debdiff.2" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Chad Miller (cmiller) wrote :

Richard, that looks really good. Thank you.

Changed in zfs-linux (Ubuntu):
status: Incomplete → In Progress
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package zfs-linux - 0.6.5.4-0ubuntu3

---------------
zfs-linux (0.6.5.4-0ubuntu3) xenial; urgency=medium

  * zfsutils-linux should Recommend zfs-zed (LP: #1547549)

 -- Colin Ian King <email address hidden> Fri, 19 Feb 2016 15:23:11 +0000

Changed in zfs-linux (Ubuntu):
status: In Progress → Fix Released
Richard Laager (rlaager) wrote :

Colin, recommending zfs-zed is not, by itself, sufficient to email root as this bug report asked for. The debdiff I attached would accomplish this. Are you rejecting my changes, do you want them in a separate bug report, or something else?

Colin Ian King (colin-king) wrote :

Ugh, I omitted that. I can't see how I made that mistake. I'll get that resolved tomorrow.

Changed in zfs-linux (Ubuntu):
status: Fix Released → In Progress
Colin Ian King (colin-king) wrote :

Fixed in 0.6.5.4-0ubuntu4

Richard Laager (rlaager) wrote :

The changelog says this:
Make zed work out-of-the box (LP: #1542276)

That's the wrong bug number.

Changed in zfs-linux (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers