From owner-freebsd-current@FreeBSD.ORG Sun Jun 14 15:49:43 2009 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 757271065670; Sun, 14 Jun 2009 15:49:43 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello087206192061.chello.pl [87.206.192.61]) by mx1.freebsd.org (Postfix) with ESMTP id ADD7D8FC20; Sun, 14 Jun 2009 15:49:42 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id B3FEC45E9C; Sun, 14 Jun 2009 17:49:39 +0200 (CEST) Received: from localhost (chello087206192061.chello.pl [87.206.192.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 5D16F4569A; Sun, 14 Jun 2009 17:49:34 +0200 (CEST) Date: Sun, 14 Jun 2009 17:49:38 +0200 From: Pawel Jakub Dawidek To: "James R. Van Artsdalen" Message-ID: <20090614154938.GC1848@garage.freebsd.pl> References: <920A69B1-4F06-477E-A13B-63CC22A13120@exscape.org> <3c1674c90906121401s19105167vf4535566321b45de@mail.gmail.com> <20090613150627.GB1848@garage.freebsd.pl> <4A3411EF.5000307@jrv.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mvpLiMfbWzRoNl4x" Content-Disposition: inline In-Reply-To: <4A3411EF.5000307@jrv.org> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 8.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.6 required=4.5 tests=BAYES_00,RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: freebsd-fs@FreeBSD.org, Kip Macy , FreeBSD Current , Thomas Backman Subject: Re: ZFS: Silent/hidden errors, nothing logged anywhere X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jun 2009 15:49:44 -0000 --mvpLiMfbWzRoNl4x Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jun 13, 2009 at 03:54:07PM -0500, James R. Van Artsdalen wrote: > Pawel Jakub Dawidek wrote: > > > > We do log such errors. Solaris uses FMA and for FreeBSD I use devd. You > > can find the following entry in /etc/devd.conf: > > > > notify 10 { > > match "system" "ZFS"; > > match "type" "checksum"; > > action "logger -p kern.warn 'ZFS: checksum mismatch, zpool=3D$p= ool path=3D$vdev_path offset=3D$zio_offset size=3D$zio_size'"; > > }; > > > > If you see nothing in your logs, there must be a bug with reporting the > > problem somewhere or devd is not running (it should be enabled by > > default). > > =20 >=20 > Looking at vsyslog(3), I don't think logger(1) can ever log with > facility KERN. LOG_KERN is 0, so this in vsyslog >=20 > /* Set default facility if none specified. */ > if ((pri & LOG_FACMASK) =3D=3D 0) > pri |=3D LogFacility; >=20 > will always change the KERN facility is to LogFacility, which defaults > to LOG_USER. > =20 > So the devd output is really going to user.warn and a syslog.conf line li= ke >=20 > kern.* /var/log/kernel.log >=20 > will capture kernel messages, but not the devd logger output, and if you > look in kernel.log you won't find the checksum errors. Could be, I'm most of the time just use *.* /var/log/all.log. We could easly log directly from inside the kernel, but this is just an example devd entry so one can replace it with, eg. mailing the problem to the system administrator or whatever. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --mvpLiMfbWzRoNl4x Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFKNRwSForvXbEpPzQRAlJwAKC/wgqzMzX+/LO2A4YqY8Rm6DAk6ACgrgQh ONb32i62rHj7RVg8J8PwZrE= =OCAq -----END PGP SIGNATURE----- --mvpLiMfbWzRoNl4x--