2014-02-14 15:31:48 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# Sample ZFS problem reports handling.
|
|
|
|
|
|
|
|
notify 10 {
|
|
|
|
match "system" "ZFS";
|
|
|
|
match "type" "fs.zfs.checksum";
|
2017-10-05 12:38:26 +00:00
|
|
|
action "logger -p local7.warn -t ZFS 'checksum mismatch, zpool=$pool path=$vdev_path offset=$zio_offset size=$zio_size'";
|
2014-02-14 15:31:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
notify 10 {
|
|
|
|
match "system" "ZFS";
|
|
|
|
match "type" "fs.zfs.io";
|
2017-10-05 12:38:26 +00:00
|
|
|
action "logger -p local7.warn -t ZFS 'vdev I/O failure, zpool=$pool path=$vdev_path offset=$zio_offset size=$zio_size error=$zio_err'";
|
2014-02-14 15:31:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
notify 10 {
|
|
|
|
match "system" "ZFS";
|
|
|
|
match "type" "fs.zfs.data";
|
2017-10-05 12:38:26 +00:00
|
|
|
action "logger -p local7.warn -t ZFS 'pool I/O failure, zpool=$pool error=$zio_err'";
|
2014-02-14 15:31:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
notify 10 {
|
|
|
|
match "system" "ZFS";
|
|
|
|
match "type" "fs.zfs.zpool";
|
2017-10-05 12:38:26 +00:00
|
|
|
action "logger -p local7.err -t ZFS 'failed to load zpool $pool'";
|
2014-02-14 15:31:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
notify 10 {
|
|
|
|
match "system" "ZFS";
|
|
|
|
match "type" "fs.zfs.vdev\..*";
|
2017-10-05 12:38:26 +00:00
|
|
|
action "logger -p local7.err -t ZFS 'vdev problem, zpool=$pool path=$vdev_path type=$type'";
|
2014-02-14 15:31:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
notify 10 {
|
|
|
|
match "system" "ZFS";
|
|
|
|
match "type" "fs.zfs.io_failure";
|
2017-10-05 12:38:26 +00:00
|
|
|
action "logger -p local7.alert -t ZFS 'catastrophic pool I/O failure, zpool=$pool'";
|
2014-02-14 15:31:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
notify 10 {
|
|
|
|
match "system" "ZFS";
|
|
|
|
match "type" "fs.zfs.probe_failure";
|
2017-10-05 12:38:26 +00:00
|
|
|
action "logger -p local7.err -t ZFS 'vdev probe failure, zpool=$pool path=$vdev_path'";
|
2014-02-14 15:31:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
notify 10 {
|
|
|
|
match "system" "ZFS";
|
|
|
|
match "type" "fs.zfs.log_replay";
|
2017-10-05 12:38:26 +00:00
|
|
|
action "logger -p local7.err -t ZFS 'pool log replay failure, zpool=$pool'";
|
2014-02-14 15:31:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
notify 10 {
|
|
|
|
match "system" "ZFS";
|
|
|
|
match "type" "fs.zfs.config_cache_write";
|
2017-10-05 12:38:26 +00:00
|
|
|
action "logger -p local7.warn -t ZFS 'failed to write zpool.cache, zpool=$pool'";
|
2014-02-14 15:31:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
notify 10 {
|
|
|
|
match "system" "ZFS";
|
|
|
|
match "type" "resource.fs.zfs.removed";
|
2017-10-05 12:38:26 +00:00
|
|
|
action "logger -p local7.notice -t ZFS 'vdev is removed, pool_guid=$pool_guid vdev_guid=$vdev_guid'";
|
2014-02-14 15:31:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
notify 10 {
|
|
|
|
match "system" "ZFS";
|
|
|
|
match "type" "resource.fs.zfs.autoreplace";
|
2017-10-05 12:38:26 +00:00
|
|
|
action "logger -p local7.info -t ZFS 'autoreplace is configured for vdev, pool_guid=$pool_guid vdev_guid=$vdev_guid'";
|
2014-02-14 15:31:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
notify 10 {
|
|
|
|
match "system" "ZFS";
|
|
|
|
match "type" "resource.fs.zfs.statechange";
|
2017-10-05 12:38:26 +00:00
|
|
|
action "logger -p local7.notice -t ZFS 'vdev state changed, pool_guid=$pool_guid vdev_guid=$vdev_guid'";
|
2014-02-14 15:31:48 +00:00
|
|
|
};
|
|
|
|
|