ZFS devd messages

Andriy Gapon avg at FreeBSD.org
Mon Nov 25 12:48:43 UTC 2013


on 12/10/2013 03:51 Daniel O'Connor said the following:
> Hi,
> It seems that the ZFS messages no longer match entries in devd.conf, eg..
> notify 10 {
>         match "system"          "ZFS";
>         match "type"            "vdev";
>         action "logger -p kern.err 'ZFS: vdev failure, zpool=$pool type=$type'";
> };
> 
> Doesn't match anything because messages now look like..
> Processing event '!system=ZFS subsystem=ZFS type=resource.fs.zfs.removed  version=0 class=resource.fs.zfs.removed pool_guid=469710819 vdev_guid=215223839'
> 
> Does anyone have an updated set of rules handy?

I've come up with the following change:
http://people.freebsd.org/~avg/devd-zfs.diff

I will appreciate any testing and reviews.
Thanks!
-- 
Andriy Gapon


More information about the freebsd-stable mailing list