From owner-freebsd-fs@FreeBSD.ORG Sat Jun 13 21:42:08 2009 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6388E106566C for ; Sat, 13 Jun 2009 21:42:08 +0000 (UTC) (envelope-from james-freebsd-current@jrv.org) Received: from mail.jrv.org (adsl-70-243-84-13.dsl.austtx.swbell.net [70.243.84.13]) by mx1.freebsd.org (Postfix) with ESMTP id DDB908FC0C for ; Sat, 13 Jun 2009 21:42:07 +0000 (UTC) (envelope-from james-freebsd-current@jrv.org) Received: from kremvax.housenet.jrv (kremvax.housenet.jrv [192.168.3.124]) by mail.jrv.org (8.14.3/8.14.3) with ESMTP id n5DKsSFh004688; Sat, 13 Jun 2009 15:54:28 -0500 (CDT) (envelope-from james-freebsd-current@jrv.org) Authentication-Results: mail.jrv.org; domainkeys=pass (testing) header.from=james-freebsd-current@jrv.org DomainKey-Signature: a=rsa-sha1; s=enigma; d=jrv.org; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:cc:subject: references:in-reply-to:content-type:content-transfer-encoding; b=Rm+QLpCCRguURyjTmcVo6LrmhyESylQ8+DSWeuSQaKTRam68FMJgJBnk/Y7h+gPYl AjnIxKPpNIxyPqE4ZUpe/E14Dg3TpwN0rVR3i5TKdCu7BMmhGN0fPWh7dmXWOHVZSWB xvMTdG1hL5q4xkMIIxPRYROqelPSyHAObDG6whk= Message-ID: <4A3411EF.5000307@jrv.org> Date: Sat, 13 Jun 2009 15:54:07 -0500 From: "James R. Van Artsdalen" User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <920A69B1-4F06-477E-A13B-63CC22A13120@exscape.org> <3c1674c90906121401s19105167vf4535566321b45de@mail.gmail.com> <20090613150627.GB1848@garage.freebsd.pl> In-Reply-To: <20090613150627.GB1848@garage.freebsd.pl> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org, Kip Macy , FreeBSD Current , Thomas Backman Subject: Re: ZFS: Silent/hidden errors, nothing logged anywhere X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jun 2009 21:42:08 -0000 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=$pool path=$vdev_path offset=$zio_offset size=$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). > Looking at vsyslog(3), I don't think logger(1) can ever log with facility KERN. LOG_KERN is 0, so this in vsyslog /* Set default facility if none specified. */ if ((pri & LOG_FACMASK) == 0) pri |= LogFacility; will always change the KERN facility is to LogFacility, which defaults to LOG_USER. So the devd output is really going to user.warn and a syslog.conf line like kern.* /var/log/kernel.log will capture kernel messages, but not the devd logger output, and if you look in kernel.log you won't find the checksum errors.