diff options
author | avg <avg@FreeBSD.org> | 2014-02-14 15:31:48 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2014-02-14 15:31:48 +0000 |
commit | 9872b563d1e92a8cbf67d1756c4fd0bfa85c5eab (patch) | |
tree | b3d8b1cd8fa4c409a685d737d8101aa48cde291b /etc/devd.conf | |
parent | 3cb7f1978f30bcb3d4eb060d26877354587de6ca (diff) | |
download | FreeBSD-src-9872b563d1e92a8cbf67d1756c4fd0bfa85c5eab.zip FreeBSD-src-9872b563d1e92a8cbf67d1756c4fd0bfa85c5eab.tar.gz |
move devd rules for zfs events into a separate file and fix stale event types
Also, extend with some new events.
Additionally, tag syslog messages with 'ZFS' instead of using explicit "ZFS: "
prefix in the messages themselves.
Tested by: Daniel O'Connor <doconnor@gsoft.com.au>
MFC after: 8 days
Sponsored by: HybridCluster
Diffstat (limited to 'etc/devd.conf')
-rw-r--r-- | etc/devd.conf | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/etc/devd.conf b/etc/devd.conf index 0c70817..12f6931 100644 --- a/etc/devd.conf +++ b/etc/devd.conf @@ -246,37 +246,6 @@ notify 10 { action "logger -p kern.emerg 'WARNING: system temperature too high, shutting down soon!'"; }; -# Sample ZFS problem reports handling. -notify 10 { - match "system" "ZFS"; - match "type" "zpool"; - action "logger -p kern.err 'ZFS: failed to load zpool $pool'"; -}; - -notify 10 { - match "system" "ZFS"; - match "type" "vdev"; - action "logger -p kern.err 'ZFS: vdev failure, zpool=$pool type=$type'"; -}; - -notify 10 { - match "system" "ZFS"; - match "type" "data"; - action "logger -p kern.warn 'ZFS: zpool I/O failure, zpool=$pool error=$zio_err'"; -}; - -notify 10 { - match "system" "ZFS"; - match "type" "io"; - action "logger -p kern.warn 'ZFS: vdev I/O failure, zpool=$pool path=$vdev_path offset=$zio_offset size=$zio_size error=$zio_err'"; -}; - -notify 10 { - match "system" "ZFS"; - match "type" "checksum"; - action "logger -p kern.warn 'ZFS: checksum mismatch, zpool=$pool path=$vdev_path offset=$zio_offset size=$zio_size'"; -}; - # User requested suspend, so perform preparation steps and then execute # the actual suspend process. notify 10 { |