zfs.conf revision 272693
11905Swollman# $FreeBSD: stable/10/etc/devd/zfs.conf 272693 2014-10-07 13:30:15Z avg $
21905Swollman#
31905Swollman# Sample ZFS problem reports handling.
41905Swollman
51905Swollmannotify 10 {
61905Swollman	match "system"		"ZFS";
71905Swollman	match "type"		"fs.zfs.checksum";
81905Swollman	action "logger -p kern.warn -t ZFS 'checksum mismatch, zpool=$pool path=$vdev_path offset=$zio_offset size=$zio_size'";
91905Swollman};
101905Swollman
111905Swollmannotify 10 {
121905Swollman	match "system"		"ZFS";
131905Swollman	match "type"		"fs.zfs.io";
141905Swollman	action "logger -p kern.warn -t ZFS 'vdev I/O failure, zpool=$pool path=$vdev_path offset=$zio_offset size=$zio_size error=$zio_err'";
151905Swollman};
161905Swollman
171905Swollmannotify 10 {
181905Swollman	match "system"		"ZFS";
191905Swollman	match "type"		"fs.zfs.data";
201905Swollman	action "logger -p kern.warn -t ZFS 'pool I/O failure, zpool=$pool error=$zio_err'";
211905Swollman};
221905Swollman
231905Swollmannotify 10 {
241905Swollman	match "system"		"ZFS";
251905Swollman	match "type"		"fs.zfs.zpool";
261905Swollman	action "logger -p kern.err -t ZFS 'failed to load zpool $pool'";
271905Swollman};
28
29notify 10 {
30	match "system"		"ZFS";
31	match "type"		"fs.zfs.vdev\..*";
32	action "logger -p kern.err -t ZFS 'vdev problem, zpool=$pool path=$vdev_path type=$type'";
33};
34
35notify 10 {
36	match "system"		"ZFS";
37	match "type"		"fs.zfs.io_failure";
38	action "logger -p kern.alert -t ZFS 'catastrophic pool I/O failure, zpool=$pool'";
39};
40
41notify 10 {
42	match "system"		"ZFS";
43	match "type"		"fs.zfs.probe_failure";
44	action "logger -p kern.err -t ZFS 'vdev probe failure, zpool=$pool path=$vdev_path'";
45};
46
47notify 10 {
48	match "system"		"ZFS";
49	match "type"		"fs.zfs.log_replay";
50	action "logger -p kern.err -t ZFS 'pool log replay failure, zpool=$pool'";
51};
52
53notify 10 {
54	match "system"		"ZFS";
55	match "type"		"fs.zfs.config_cache_write";
56	action "logger -p kern.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 kern.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 kern.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 kern.notice -t ZFS 'vdev state changed, pool_guid=$pool_guid vdev_guid=$vdev_guid'";
76};
77
78