144e1285cSBrad Davis# 244e1285cSBrad Davis# Sample ZFS problem reports handling. 344e1285cSBrad Davis 444e1285cSBrad Davisnotify 10 { 544e1285cSBrad Davis match "system" "ZFS"; 63ab798a1SAlexander Motin match "type" "ereport.fs.zfs.checksum"; 7*df9e12caSWarner Losh action "logger -p local7.warn -t ZFS checksum mismatch, zpool=$pool path=$vdev_path offset=$zio_offset size=$zio_size"; 844e1285cSBrad Davis}; 944e1285cSBrad Davis 1044e1285cSBrad Davisnotify 10 { 1144e1285cSBrad Davis match "system" "ZFS"; 123ab798a1SAlexander Motin match "type" "ereport.fs.zfs.io"; 13*df9e12caSWarner Losh 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"; 1444e1285cSBrad Davis}; 1544e1285cSBrad Davis 1644e1285cSBrad Davisnotify 10 { 1744e1285cSBrad Davis match "system" "ZFS"; 183ab798a1SAlexander Motin match "type" "ereport.fs.zfs.data"; 19*df9e12caSWarner Losh action "logger -p local7.warn -t ZFS pool I/O failure, zpool=$pool error=$zio_err"; 2044e1285cSBrad Davis}; 2144e1285cSBrad Davis 2244e1285cSBrad Davisnotify 10 { 2344e1285cSBrad Davis match "system" "ZFS"; 243ab798a1SAlexander Motin match "type" "ereport.fs.zfs.zpool"; 25*df9e12caSWarner Losh action "logger -p local7.err -t ZFS failed to load zpool $pool"; 2644e1285cSBrad Davis}; 2744e1285cSBrad Davis 2844e1285cSBrad Davisnotify 10 { 2944e1285cSBrad Davis match "system" "ZFS"; 303ab798a1SAlexander Motin match "type" "ereport.fs.zfs.vdev\..*"; 31*df9e12caSWarner Losh action "logger -p local7.err -t ZFS vdev problem, zpool=$pool path=$vdev_path type=$type"; 3244e1285cSBrad Davis}; 3344e1285cSBrad Davis 3444e1285cSBrad Davisnotify 10 { 3544e1285cSBrad Davis match "system" "ZFS"; 363ab798a1SAlexander Motin match "type" "ereport.fs.zfs.io_failure"; 37*df9e12caSWarner Losh action "logger -p local7.alert -t ZFS catastrophic pool I/O failure, zpool=$pool"; 3844e1285cSBrad Davis}; 3944e1285cSBrad Davis 4044e1285cSBrad Davisnotify 10 { 4144e1285cSBrad Davis match "system" "ZFS"; 423ab798a1SAlexander Motin match "type" "ereport.fs.zfs.probe_failure"; 43*df9e12caSWarner Losh action "logger -p local7.err -t ZFS vdev probe failure, zpool=$pool path=$vdev_path"; 4444e1285cSBrad Davis}; 4544e1285cSBrad Davis 4644e1285cSBrad Davisnotify 10 { 4744e1285cSBrad Davis match "system" "ZFS"; 483ab798a1SAlexander Motin match "type" "ereport.fs.zfs.log_replay"; 49*df9e12caSWarner Losh action "logger -p local7.err -t ZFS pool log replay failure, zpool=$pool"; 5044e1285cSBrad Davis}; 5144e1285cSBrad Davis 5244e1285cSBrad Davisnotify 10 { 5344e1285cSBrad Davis match "system" "ZFS"; 543ab798a1SAlexander Motin match "type" "ereport.fs.zfs.config_cache_write"; 55*df9e12caSWarner Losh action "logger -p local7.warn -t ZFS failed to write zpool.cache, zpool=$pool"; 5644e1285cSBrad Davis}; 5744e1285cSBrad Davis 5844e1285cSBrad Davis 5944e1285cSBrad Davisnotify 10 { 6044e1285cSBrad Davis match "system" "ZFS"; 6144e1285cSBrad Davis match "type" "resource.fs.zfs.removed"; 62*df9e12caSWarner Losh action "logger -p local7.notice -t ZFS vdev is removed, pool_guid=$pool_guid vdev_guid=$vdev_guid"; 6344e1285cSBrad Davis}; 6444e1285cSBrad Davis 6544e1285cSBrad Davisnotify 10 { 6644e1285cSBrad Davis match "system" "ZFS"; 6744e1285cSBrad Davis match "type" "resource.fs.zfs.autoreplace"; 68*df9e12caSWarner Losh action "logger -p local7.info -t ZFS autoreplace is configured for vdev, pool_guid=$pool_guid vdev_guid=$vdev_guid"; 6944e1285cSBrad Davis}; 7044e1285cSBrad Davis 7144e1285cSBrad Davisnotify 10 { 7244e1285cSBrad Davis match "system" "ZFS"; 7344e1285cSBrad Davis match "type" "resource.fs.zfs.statechange"; 74*df9e12caSWarner Losh action "logger -p local7.notice -t ZFS vdev state changed, pool_guid=$pool_guid vdev_guid=$vdev_guid"; 7544e1285cSBrad Davis}; 7644e1285cSBrad Davis 77