xref: /freebsd/sbin/devd/zfs.conf (revision 3ab798a100954100810c665289fd43b4c6e85245)
144e1285cSBrad Davis# $FreeBSD$
244e1285cSBrad Davis#
344e1285cSBrad Davis# Sample ZFS problem reports handling.
444e1285cSBrad Davis
544e1285cSBrad Davisnotify 10 {
644e1285cSBrad Davis	match "system"		"ZFS";
7*3ab798a1SAlexander Motin	match "type"		"ereport.fs.zfs.checksum";
844e1285cSBrad Davis	action "logger -p local7.warn -t ZFS 'checksum mismatch, zpool=$pool path=$vdev_path offset=$zio_offset size=$zio_size'";
944e1285cSBrad Davis};
1044e1285cSBrad Davis
1144e1285cSBrad Davisnotify 10 {
1244e1285cSBrad Davis	match "system"		"ZFS";
13*3ab798a1SAlexander Motin	match "type"		"ereport.fs.zfs.io";
1444e1285cSBrad Davis	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'";
1544e1285cSBrad Davis};
1644e1285cSBrad Davis
1744e1285cSBrad Davisnotify 10 {
1844e1285cSBrad Davis	match "system"		"ZFS";
19*3ab798a1SAlexander Motin	match "type"		"ereport.fs.zfs.data";
2044e1285cSBrad Davis	action "logger -p local7.warn -t ZFS 'pool I/O failure, zpool=$pool error=$zio_err'";
2144e1285cSBrad Davis};
2244e1285cSBrad Davis
2344e1285cSBrad Davisnotify 10 {
2444e1285cSBrad Davis	match "system"		"ZFS";
25*3ab798a1SAlexander Motin	match "type"		"ereport.fs.zfs.zpool";
2644e1285cSBrad Davis	action "logger -p local7.err -t ZFS 'failed to load zpool $pool'";
2744e1285cSBrad Davis};
2844e1285cSBrad Davis
2944e1285cSBrad Davisnotify 10 {
3044e1285cSBrad Davis	match "system"		"ZFS";
31*3ab798a1SAlexander Motin	match "type"		"ereport.fs.zfs.vdev\..*";
3244e1285cSBrad Davis	action "logger -p local7.err -t ZFS 'vdev problem, zpool=$pool path=$vdev_path type=$type'";
3344e1285cSBrad Davis};
3444e1285cSBrad Davis
3544e1285cSBrad Davisnotify 10 {
3644e1285cSBrad Davis	match "system"		"ZFS";
37*3ab798a1SAlexander Motin	match "type"		"ereport.fs.zfs.io_failure";
3844e1285cSBrad Davis	action "logger -p local7.alert -t ZFS 'catastrophic pool I/O failure, zpool=$pool'";
3944e1285cSBrad Davis};
4044e1285cSBrad Davis
4144e1285cSBrad Davisnotify 10 {
4244e1285cSBrad Davis	match "system"		"ZFS";
43*3ab798a1SAlexander Motin	match "type"		"ereport.fs.zfs.probe_failure";
4444e1285cSBrad Davis	action "logger -p local7.err -t ZFS 'vdev probe failure, zpool=$pool path=$vdev_path'";
4544e1285cSBrad Davis};
4644e1285cSBrad Davis
4744e1285cSBrad Davisnotify 10 {
4844e1285cSBrad Davis	match "system"		"ZFS";
49*3ab798a1SAlexander Motin	match "type"		"ereport.fs.zfs.log_replay";
5044e1285cSBrad Davis	action "logger -p local7.err -t ZFS 'pool log replay failure, zpool=$pool'";
5144e1285cSBrad Davis};
5244e1285cSBrad Davis
5344e1285cSBrad Davisnotify 10 {
5444e1285cSBrad Davis	match "system"		"ZFS";
55*3ab798a1SAlexander Motin	match "type"		"ereport.fs.zfs.config_cache_write";
5644e1285cSBrad Davis	action "logger -p local7.warn -t ZFS 'failed to write zpool.cache, zpool=$pool'";
5744e1285cSBrad Davis};
5844e1285cSBrad Davis
5944e1285cSBrad Davis
6044e1285cSBrad Davisnotify 10 {
6144e1285cSBrad Davis	match "system"		"ZFS";
6244e1285cSBrad Davis	match "type"		"resource.fs.zfs.removed";
6344e1285cSBrad Davis	action "logger -p local7.notice -t ZFS 'vdev is removed, pool_guid=$pool_guid vdev_guid=$vdev_guid'";
6444e1285cSBrad Davis};
6544e1285cSBrad Davis
6644e1285cSBrad Davisnotify 10 {
6744e1285cSBrad Davis	match "system"		"ZFS";
6844e1285cSBrad Davis	match "type"		"resource.fs.zfs.autoreplace";
6944e1285cSBrad Davis	action "logger -p local7.info -t ZFS 'autoreplace is configured for vdev, pool_guid=$pool_guid vdev_guid=$vdev_guid'";
7044e1285cSBrad Davis};
7144e1285cSBrad Davis
7244e1285cSBrad Davisnotify 10 {
7344e1285cSBrad Davis	match "system"		"ZFS";
7444e1285cSBrad Davis	match "type"		"resource.fs.zfs.statechange";
7544e1285cSBrad Davis	action "logger -p local7.notice -t ZFS 'vdev state changed, pool_guid=$pool_guid vdev_guid=$vdev_guid'";
7644e1285cSBrad Davis};
7744e1285cSBrad Davis
78