xref: /freebsd/sbin/devd/zfs.conf (revision 5bb3134a8c21cb87b30e135ef168483f0333dabb)
1# $FreeBSD$
2#
3# Sample ZFS problem reports handling.
4
5notify 10 {
6	match "system"		"ZFS";
7	match "type"		"ereport.fs.zfs.checksum";
8	action "logger -p local7.warn -t ZFS checksum mismatch, zpool=$pool path=$vdev_path offset=$zio_offset size=$zio_size";
9};
10
11notify 10 {
12	match "system"		"ZFS";
13	match "type"		"ereport.fs.zfs.io";
14	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";
15};
16
17notify 10 {
18	match "system"		"ZFS";
19	match "type"		"ereport.fs.zfs.data";
20	action "logger -p local7.warn -t ZFS pool I/O failure, zpool=$pool error=$zio_err";
21};
22
23notify 10 {
24	match "system"		"ZFS";
25	match "type"		"ereport.fs.zfs.zpool";
26	action "logger -p local7.err -t ZFS failed to load zpool $pool";
27};
28
29notify 10 {
30	match "system"		"ZFS";
31	match "type"		"ereport.fs.zfs.vdev\..*";
32	action "logger -p local7.err -t ZFS vdev problem, zpool=$pool path=$vdev_path type=$type";
33};
34
35notify 10 {
36	match "system"		"ZFS";
37	match "type"		"ereport.fs.zfs.io_failure";
38	action "logger -p local7.alert -t ZFS catastrophic pool I/O failure, zpool=$pool";
39};
40
41notify 10 {
42	match "system"		"ZFS";
43	match "type"		"ereport.fs.zfs.probe_failure";
44	action "logger -p local7.err -t ZFS vdev probe failure, zpool=$pool path=$vdev_path";
45};
46
47notify 10 {
48	match "system"		"ZFS";
49	match "type"		"ereport.fs.zfs.log_replay";
50	action "logger -p local7.err -t ZFS pool log replay failure, zpool=$pool";
51};
52
53notify 10 {
54	match "system"		"ZFS";
55	match "type"		"ereport.fs.zfs.config_cache_write";
56	action "logger -p local7.warn -t ZFS failed to write zpool.cache, zpool=$pool";
57};
58
59
60notify 10 {
61	match "system"		"ZFS";
62	match "type"		"resource.fs.zfs.removed";
63	action "logger -p local7.notice -t ZFS vdev is removed, pool_guid=$pool_guid vdev_guid=$vdev_guid";
64};
65
66notify 10 {
67	match "system"		"ZFS";
68	match "type"		"resource.fs.zfs.autoreplace";
69	action "logger -p local7.info -t ZFS autoreplace is configured for vdev, pool_guid=$pool_guid vdev_guid=$vdev_guid";
70};
71
72notify 10 {
73	match "system"		"ZFS";
74	match "type"		"resource.fs.zfs.statechange";
75	action "logger -p local7.notice -t ZFS vdev state changed, pool_guid=$pool_guid vdev_guid=$vdev_guid";
76};
77
78