2014-02-14 16:31:48 +01:00
|
|
|
#
|
|
|
|
# Sample ZFS problem reports handling.
|
|
|
|
|
|
|
|
notify 10 {
|
|
|
|
match "system" "ZFS";
|
2019-12-18 19:43:44 +01:00
|
|
|
match "type" "ereport.fs.zfs.checksum";
|
2020-10-09 17:29:05 +02:00
|
|
|
action "logger -p local7.warn -t ZFS checksum mismatch, zpool=$pool path=$vdev_path offset=$zio_offset size=$zio_size";
|
2014-02-14 16:31:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
notify 10 {
|
|
|
|
match "system" "ZFS";
|
2019-12-18 19:43:44 +01:00
|
|
|
match "type" "ereport.fs.zfs.io";
|
2020-10-09 17:29:05 +02: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 16:31:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
notify 10 {
|
|
|
|
match "system" "ZFS";
|
2019-12-18 19:43:44 +01:00
|
|
|
match "type" "ereport.fs.zfs.data";
|
2020-10-09 17:29:05 +02:00
|
|
|
action "logger -p local7.warn -t ZFS pool I/O failure, zpool=$pool error=$zio_err";
|
2014-02-14 16:31:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
notify 10 {
|
|
|
|
match "system" "ZFS";
|
2019-12-18 19:43:44 +01:00
|
|
|
match "type" "ereport.fs.zfs.zpool";
|
2020-10-09 17:29:05 +02:00
|
|
|
action "logger -p local7.err -t ZFS failed to load zpool $pool";
|
2014-02-14 16:31:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
notify 10 {
|
|
|
|
match "system" "ZFS";
|
2019-12-18 19:43:44 +01:00
|
|
|
match "type" "ereport.fs.zfs.vdev\..*";
|
2020-10-09 17:29:05 +02:00
|
|
|
action "logger -p local7.err -t ZFS vdev problem, zpool=$pool path=$vdev_path type=$type";
|
2014-02-14 16:31:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
notify 10 {
|
|
|
|
match "system" "ZFS";
|
2019-12-18 19:43:44 +01:00
|
|
|
match "type" "ereport.fs.zfs.io_failure";
|
2020-10-09 17:29:05 +02:00
|
|
|
action "logger -p local7.alert -t ZFS catastrophic pool I/O failure, zpool=$pool";
|
2014-02-14 16:31:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
notify 10 {
|
|
|
|
match "system" "ZFS";
|
2019-12-18 19:43:44 +01:00
|
|
|
match "type" "ereport.fs.zfs.probe_failure";
|
2020-10-09 17:29:05 +02:00
|
|
|
action "logger -p local7.err -t ZFS vdev probe failure, zpool=$pool path=$vdev_path";
|
2014-02-14 16:31:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
notify 10 {
|
|
|
|
match "system" "ZFS";
|
2019-12-18 19:43:44 +01:00
|
|
|
match "type" "ereport.fs.zfs.log_replay";
|
2020-10-09 17:29:05 +02:00
|
|
|
action "logger -p local7.err -t ZFS pool log replay failure, zpool=$pool";
|
2014-02-14 16:31:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
notify 10 {
|
|
|
|
match "system" "ZFS";
|
2019-12-18 19:43:44 +01:00
|
|
|
match "type" "ereport.fs.zfs.config_cache_write";
|
2020-10-09 17:29:05 +02:00
|
|
|
action "logger -p local7.warn -t ZFS failed to write zpool.cache, zpool=$pool";
|
2014-02-14 16:31:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
notify 10 {
|
|
|
|
match "system" "ZFS";
|
|
|
|
match "type" "resource.fs.zfs.removed";
|
2020-10-09 17:29:05 +02:00
|
|
|
action "logger -p local7.notice -t ZFS vdev is removed, pool_guid=$pool_guid vdev_guid=$vdev_guid";
|
2014-02-14 16:31:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
notify 10 {
|
|
|
|
match "system" "ZFS";
|
|
|
|
match "type" "resource.fs.zfs.autoreplace";
|
2020-10-09 17:29:05 +02:00
|
|
|
action "logger -p local7.info -t ZFS autoreplace is configured for vdev, pool_guid=$pool_guid vdev_guid=$vdev_guid";
|
2014-02-14 16:31:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
notify 10 {
|
|
|
|
match "system" "ZFS";
|
|
|
|
match "type" "resource.fs.zfs.statechange";
|
2020-10-09 17:29:05 +02:00
|
|
|
action "logger -p local7.notice -t ZFS vdev state changed, pool_guid=$pool_guid vdev_guid=$vdev_guid";
|
2014-02-14 16:31:48 +01:00
|
|
|
};
|
|
|
|
|