From owner-freebsd-stable@freebsd.org Tue May 10 15:11:34 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8FF15B36A27 for ; Tue, 10 May 2016 15:11:34 +0000 (UTC) (envelope-from ler@lerctr.org) Received: from thebighonker.lerctr.org (thebighonker.lerctr.org [IPv6:2001:470:1f0f:3ad:223:7dff:fe9e:6e8a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "thebighonker.lerctr.org", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 698E61B26; Tue, 10 May 2016 15:11:34 +0000 (UTC) (envelope-from ler@lerctr.org) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lerctr.org; s=lerami; h=Message-ID:References:In-Reply-To:Subject:Cc:To:From:Date: Content-Type:MIME-Version:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=W7h92LOY/8td41Om8E0skWdlnLuX7veX0CYMKmm2YyM=; b=Ty/3HwW7lE5inrMoswXq7Ruw3G fnlPDj1Lyl79iHrXLfZU5j+vxQivVfPJ3tLLKckkib6tyzPQ4aQoAcHyGjHHUEAoa9+ZCPHDKNvYq 3o1+0A2ZDtSA+oVvuWNX9FGwyglwNaehHMOj0ZzsGIqR8D3E4wEXC88skz8ww7uqpi2s=; Received: from thebighonker.lerctr.org ([2001:470:1f0f:3ad:223:7dff:fe9e:6e8a]:47564 helo=webmail.lerctr.org) by thebighonker.lerctr.org with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87 (FreeBSD)) (envelope-from ) id 1b09Jt-0002jj-Li; Tue, 10 May 2016 10:11:33 -0500 Received: from proxy.na.alcatel-lucent.com ([135.245.48.72]) by webmail.lerctr.org with HTTP (HTTP/1.1 POST); Tue, 10 May 2016 10:11:33 -0500 MIME-Version: 1.0 Date: Tue, 10 May 2016 10:11:33 -0500 From: Larry Rosenman To: Alan Somers Cc: Freebsd stable , asomers@gmail.com Subject: Re: Noisy (empty) CD In-Reply-To: References: <8ad69116e60d5a37e04e8b1b975e1637@thebighonker.lerctr.org> <0b381a7eb2a3f9c70060af24946cb756@thebighonker.lerctr.org> Message-ID: <11b02508468e3b3510146fac33a12bef@thebighonker.lerctr.org> X-Sender: ler@lerctr.org User-Agent: Roundcube Webmail/1.1.4 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2016 15:11:34 -0000 On 2016-05-10 10:07, Alan Somers wrote: > On Tue, May 10, 2016 at 8:59 AM, Larry Rosenman wrote: > > On 2016-05-10 09:56, Alan Somers wrote: > > On Tue, May 10, 2016 at 8:28 AM, Larry Rosenman wrote: > Is there work going on to silence this when the cd drive is empty? > > May 10 09:26:46 thebighonker devd: Processing event '!system=CAM subsystem=periph type=error device=cd0 serial="" cam_status="0xcc" scsi_status=2 scsi_sense="70 02 3a 01" CDB="00 00 00 00 00 00 " ' > May 10 09:27:16 thebighonker last message repeated 10 times > > thebighonker.lerctr.org [1] /home/ler $ uname -aKU > FreeBSD thebighonker.lerctr.org [1] 10.3-STABLE FreeBSD 10.3-STABLE #40 r299365: Tue May 10 09:14:53 CDT 2016 root@thebighonker.lerctr.org:/usr/obj/usr/src/sys/GENERIC amd64 1003501 1003501 > thebighonker.lerctr.org [1] /home/ler $ > > Yes. In the long term, scottl is trying to quell messages like that. In the short term, you can easily silence it with /etc/syslog.conf rules. In fact, it shouldn't even there with the default syslog.conf. Have you modified yours? Can you please share the modifications? > > -Alan # $FreeBSD: stable/10/etc/syslog.conf 260519 2014-01-10 17:56:23Z asomers $ # # Spaces ARE valid field separators in this file. However, # other *nix-like systems still insist on using tabs as field # separators. If you are sharing this file between systems, you # may want to use only tabs as field separators here. # Consult the syslog.conf(5) manpage. *.err;kern.warning;auth.notice;mail.crit /dev/console *.info;authpriv.none;kern.debug;lpr.info [2];mail.crit;news.err;cron.none;local0.none;local1.none /var/log/messages security.* /var/log/security auth.info [3];authpriv.info [4] /var/log/auth.log #auth.info [3];authpriv.info [4] |exec /usr/local/sbin/sshit mail.info [5] /var/log/maillog mail.debug /var/log/debug.maillog local1.* /var/log/cisco.log lpr.info [2] /var/log/lpd-errs ftp.info [6] /var/log/xferlog cron.* /var/log/cron # Uncomment this if you wish to see messages produced by devd #!devd #*.>=notice /var/log/devd.log *.=debug /var/log/debug.log *.emerg * # uncomment this to log all writes to /dev/console to /var/log/console.log console.info [7] /var/log/console.log # uncomment this to enable logging of all log messages to /var/log/all.log # touch /var/log/all.log and chmod it to mode 600 before it will work *.* /var/log/all.log # uncomment this to enable logging to a remote loghost named loghost #*.* @loghost # uncomment these if you're running inn #news.crit /var/log/news/news.crit #news.err /var/log/news/news.err #news.notice /var/log/news/news.notice local0.* /var/log/pg-prod.log #!startslip #*.* /var/log/slip.log #!ppp #*.* /var/log/ppp.log The messages you're seeing are printed by devd at loglevel info, and I see that you're directing *.info to /var/log/messages. If you change that to the default "*.notice" then you won't see the offending messages, or if you prefix the line with "!-devd" like this: !-devd *.info;authpriv.none;kern.debug;lpr.info [2];mail.crit;news.err;cron.none;local0.none;local1.none /var/log/messages In the latter case, I recommend that you enable /var/log/devd.log at level notice. -Alan Done and THANKS. thebighonker.lerctr.org /home/ler $ cat /etc/syslog.conf # $FreeBSD: stable/10/etc/syslog.conf 260519 2014-01-10 17:56:23Z asomers $ # # Spaces ARE valid field separators in this file. However, # other *nix-like systems still insist on using tabs as field # separators. If you are sharing this file between systems, you # may want to use only tabs as field separators here. # Consult the syslog.conf(5) manpage. *.err;kern.warning;auth.notice;mail.crit /dev/console !-devd *.info;authpriv.none;kern.debug;lpr.info;mail.crit;news.err;cron.none;local0.none;local1.none /var/log/messages security.* /var/log/security auth.info;authpriv.info /var/log/auth.log #auth.info;authpriv.info |exec /usr/local/sbin/sshit mail.info /var/log/maillog mail.debug /var/log/debug.maillog local1.* /var/log/cisco.log lpr.info /var/log/lpd-errs ftp.info /var/log/xferlog cron.* /var/log/cron # Uncomment this if you wish to see messages produced by devd !devd *.>=notice /var/log/devd.log *.=debug /var/log/debug.log *.emerg * # uncomment this to log all writes to /dev/console to /var/log/console.log console.info /var/log/console.log # uncomment this to enable logging of all log messages to /var/log/all.log # touch /var/log/all.log and chmod it to mode 600 before it will work *.* /var/log/all.log # uncomment this to enable logging to a remote loghost named loghost #*.* @loghost # uncomment these if you're running inn #news.crit /var/log/news/news.crit #news.err /var/log/news/news.err #news.notice /var/log/news/news.notice local0.* /var/log/pg-prod.log #!startslip #*.* /var/log/slip.log #!ppp #*.* /var/log/ppp.log thebighonker.lerctr.org /home/ler $ -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 E-Mail: ler@lerctr.org US Mail: 17716 Limpia Crk, Round Rock, TX 78664-7281 Links: ------ [1] http://thebighonker.lerctr.org [2] http://lpr.info [3] http://auth.info [4] http://authpriv.info [5] http://mail.info [6] http://ftp.info [7] http://console.info